TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #721 · 26.12

Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #dev

Hashtags

Резултати

Намерени 12 подобни публикации

Търсене: #aospa

当前筛选 #aospa清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #280 · 14.04.2024 г., 15:40

Paranoid Android Uvite - Official | Android 14 | Nothing Phone (2) ✍️ Details: • Version: Uvite Beta 2.1 • Device: #Pong • Released: 15/04/24 🔽 Download: Here 😅 Support Threads: TG | XDA ⚙️ Installation: Here (Based on 2.5.3 firmware) 📕Tags: #AOSPA#Official#U#CLO#stayparanoid ✨Changelogs: Beta 2: * Updated blobs and firmware to 2.5.3 * Integrated the April 2024 security patch. * Fingerprint sensor is way snappier now. * Upstreamed kernel to latest CLO and ACK tags. * Battery backup is improved by a lot. * Certain improvements are done to the glyph interface. * Improved statusbar and rounded corner paddings. Beta 2.1: - Hotfix to fix safetynet cts profile ✍️Notes: - Flash the NOS 2.5.3 firmware via fastboot preferably if not on that firmware. - OTA system is not ready yet, so the next build will need to be flashed manually. 😎 Maintainer: @gotenksIN | @kunmun36 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #251 · 20.02.2024 г., 07:59

Paranoid Android Uvite - Official | Android 14 | Nothing Phone (2) ✍️ Details: • Version: Uvite Beta 1 • Device: #Pong • Released: 20/2/24 🔽 Download: Here 😅 Support Threads: TG | XDA 📕Tags#AOSPA#Official#U#stayparanoid#CLO ✨Changelogs: - Initial public build. ⚙️Installation: ✔️Make sure you have the latest platform-tools and Google USB Drivers installed. Proceed with the fastboot package installation as follows 1. Reboot to bootloader. 2. Execute this for flashing the ROM: fastboot update --skip-reboot path/to/aospa_zip 3. Enter Recovery. 4. Go to Wipe Data \ Factory Reset to format. 5. Reboot to System. ✍️Notes: - This is based on NOS 2.5.2, flash the firmware via fastboot preferably if not on that firmware. - This build does not have OTA, so the next build will need to be flashed manually. 🏆Credits: - Fabian for PA Glyph Implementation. - Hellboy for his assistance in improving FOD dimming. - Contributors from Pong TG Community. 😎 Maintainer: @gotenksIN | @kunmun36 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #333 · 24.06.2024 г., 05:44

Paranoid Android Uvite - Official | Android 14 | Nothing Phone (2) ✍️ Details: • Version: Uvite Beta 3.1 • Device: #Pong • Released: 24/06/24 🔽 Download: Here 🆘 Support Threads: TG | XDA ⚙️ Installation: Here 🔖Tags: #AOSPA#Official#U#CLO#stayparanoid#NothingPhone2 ✨Changelogs: - Merged latest ACK tag for kernel and newer CLO tag for kernel DTS - Various improvements to battery life - Improvements for fingerprint sensor ✍️Notes: - OTA system is not ready yet, so the next build will need to be flashed manually 😎 Maintainer: @gotenksIN | @kunmun36 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #329 · 19.06.2024 г., 15:36

Paranoid Android Uvite - Official | Android 14 | Nothing Phone (2) ✍️ Details: • Version: Uvite Beta 3 • Device: #Pong • Released: 19/06/24 🔽 Download: Here 🆘 Support Threads: TG | XDA ⚙️ Installation: Here 🔖Tags: #AOSPA#Official#U#CLO#stayparanoid#NothingPhone2 ✨Changelogs: - Updated blobs and firmware to 2.5.6 - Merged latest CLO and ACK tags for kernel - Improved stability and system performance ✍️Notes: - OTA system is not ready yet, so the next build will need to be flashed manually 😎 Maintainer: @gotenksIN | @kunmun36 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #588 · 06.04.2025 г., 08:31

Paranoid Android - Unofficial | Android 15 | Nothing Phone (2) 📔Details: • Version: Vauxite (Alpha) • Device: #Pong • Updated: 06/04/25 🔽 Download: Here 🆘 Bug Reports: Here 🔖Tags: #AOSPA#Unofficial#V#CLO#stayparanoid#NothingPhone2 ✨Changelogs: - Update to LA.QSSI.15.0.r1-14800-qssi.0 (includes March SPL) - Remove Light theme QS for now - Fixes for left volume panel - Upgrading from Uvite no longer clears fingerprints - Improvements to performance and system stability ⚙️Installation: 1. Make sure OEM unlocking is turned on from dev options in your current ROM. 2. Reboot to bootloader 3. Unlock critical partitions using: fastboot flashing unlock_critical (The build ships fw if your are wondering why) 4. Execute this for flashing the ROM: fastboot -w (wipes data) fastboot update path/to/aospa zip 5. Wait for boot to finish ✍️ Note: - "While feedback is appreciated, please do not explicitly mention me, I can read chat on my own thanks" - "It should automatically start passing play integrity sometime soon as well" - Firmware is included. No need to flash seperately. - Dirty flashing from previous build is possible. 👤 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #568 · 27.02.2025 г., 18:49

Paranoid Android - Unofficial | Android 15 | Nothing Phone (2) 📔Details: • Version: Vauxite (Alpha) • Device: #Pong • Updated: 28/02/25 🔽 Download: Fastboot Build 🆘 Bug Reports: Here 🔖Tags: #AOSPA#Unofficial#V#CLO#stayparanoid#NothingPhone2 ✨Changelogs: 04/03 - Update to LA.QSSI.15.0.r1-14000-qssi.0 (includes Feb SPL) - Improvements to performance and system stability 28/02 - Add light theme for QS - Improved UI in ThemePicker for custom options - Add Circle to Search - Misc Launcher improvements 27/02 - Merge KERNEL.PLATFORM.1.0.r3-05800-kernel.0 - Improved UI performance and power consumption ⚙️Installation: 1. Reboot to bootloader 2. Execute this for flashing the ROM: fastboot -w (wipes data) fastboot update path/to/aospa zip 3. Wait for boot to finish ✍️ Note: - "While feedback is appreciated, please do not explicitly mention me, I can read chat on my own thanks" - Firmware is included. No need to flash seperately. - Dirty flashing from previous build is possible. 👤 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #534 · 28.01.2025 г., 13:07

Paranoid Android Vauxite - Unofficial | Android 15 | Nothing Phone (2) 📔Details: • Version: Vauxite (Alpha) • Device: #Pong • Updated: 05/02/25 🔽 Download: Fastboot Build 🆘 Bug Reports: Here 🔖Tags: #AOSPA#Unofficial#V#CLO#stayparanoid#NothingPhone2 ✨Changelogs: 05/02: - Merge KERNEL.PLATFORM.1.0.r3-05700-kernel.0 - Update kernel to android12-5.10 November 2024 release 8 03/02 - Update to LA.QSSI.15.0.r1-13300-qssi.0 (includes Jan SPL) 30/01 - Build kernel inline with ROM, rebased on LA.VENDOR.1.0.r1-26900-WAIPIO.QSSI15.0 28/01 - Some kernel stuff - Add more information to Battery Information page - Add PowerOffAlarmService - Allow adding/removing tiles with one click ⚙️Installation: 1. Reboot to bootloader 2. Execute this for flashing the ROM: fastboot -w (wipes data) fastboot update path/to/aospa zip 3. Wait for boot to finish ✍️ Note: - "While feedback is appreciated, please do not explicitly mention me, I can read chat on my own thanks" - Firmware is included. No need to flash seperately. - Dirty flashing from previous build is possible. 👤 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #519 · 21.01.2025 г., 15:02

Paranoid Android Vauxite - Unofficial | Android 15 | Nothing Phone (2) 📔Details: • Version: Vauxite (Alpha) • Device: #Pong • Updated: 22/01/25 🔽 Download: Fastboot Build 🆘 Bug Reports: Here 🔖Tags: #AOSPA#Unofficial#V#CLO#stayparanoid#NothingPhone2 ✨Changelogs: 22/1 - Improved power consumption during video playback - Utilise ADSP-backed Charge Control mechanism (thanks to @arter97) - Statusbar Icon related fixes - Improve scrolling - Add Screen Off UDFPS (In Settings -> Security -> Fingerprint) - Add custom vibration patterns - Perform prox sensor checks for single/double tap - Fix haptics while ending call 21/1 - Update proprietary files to Update to Pong-V3.0-250113-1723 - UDFPS layout related fixes (in biometric prompt, lockscreen etc) - Fix Statusbar, Navbar theme in Settings - Other minor fixes ⚙️Installation: 1. Reboot to bootloader 2. Execute this for flashing the ROM: fastboot -w (wipes data) fastboot update path/to/aospa zip 3. Wait for boot to finish ✍️ Note: - "While feedback is appreciated, please do not explicitly mention me, I can read chat on my own thanks" - Firmware is included. No need to flash seperately. - Dirty flash from previous build is possible. 😎 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #512 · 13.01.2025 г., 17:35

Paranoid Android Vauxite - Unofficial | Android 15 | Nothing Phone (2) 📔Details: • Version: Vauxite (Alpha) • Device: #Pong • Updated: 20/01/25 🔽 Download: [Fastboot | Recovery] Build 🆘 Support: Here 🔖Tags: #AOSPA#Unofficial#V#CLO#stayparanoid#NothingPhone2 ✨Changelogs: 20/01 - Add Wifi/Mobile Data tiles - Fix NFC tile reliability - Add Face Unlock 15/01 - Added Status Bar Tuner - Show Bluetooth devices' battery level in status bar 13/01 - Recovery is now just as capable as it was in Uvite - Added pocket mode - Fixed few random issues 10/1 - Updated system side blobs - Moved to latest NOS3.0 blobs & firmware ⚙️Installation: 1. Reboot to bootloader 2. Execute this for flashing the ROM: fastboot -w (wipes data) fastboot update path/to/aospa zip 3. Wait for boot to finish Dirty flash from previous update is possible using: fastboot update path/to/aospa zip ✍️ Note: - "While feedback is appreciated, please do not explicitly mention me, I can read chat on my own thanks" - Firmware is included. No need to flash seperately. 😎 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #740 · 06.05.2026 г., 07:29

Paranoid Android - Unofficial | Android 16 | Nothing Phone (2) 📔Details: • Version: Beryl (Alpha) • Device: #Pong • Updated: 13/05/26 🔽 Download: Here | Sideload 🆘 Bug Reports: Here 🔖Tags: #AOSPA#Unofficial#Baklava#CLO#NothingPhone2#Beryl ✨ Changelogs - Fixed upstream tethering apex failing to boot - Improvements to performance and system stability ⚙️Installation: 1. fastboot flashing unlock_critical (skip if already unlocked) 2. Execute this for flashing the ROM: fastboot -w fastboot update path/to/aospa zip 3. Wait for boot to finish ✍️ Note: - Firmware is included. No need to flash seperately. - Clean flash is recommended 👤 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #736 · 02.05.2026 г., 05:06

Paranoid Android - Unofficial | Android 16 | Nothing Phone (2) 📔Details: • Version: Beryl (Alpha) • Device: #Pong • Updated: 04/05/26 🔽 Download: Here 🆘 Bug Reports: Here ✨ Changelogs: Here 🔖Tags: #AOSPA#Unofficial#Baklava#CLO#NothingPhone2#Beryl ⚙️Installation: 1. fastboot flashing unlock_critical (skip if already unlocked) 2. Execute this for flashing the ROM: fastboot -w fastboot update path/to/aospa zip 3. Wait for boot to finish ✍️ Note: - Firmware is included. No need to flash seperately. - Clean flash is recommended 👤 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #700 · 19.12.2025 г., 14:30

Paranoid Android - Unofficial | Android 16 | Nothing Phone (2) 📔Details: • Version: Beryl (Alpha) • Device: #Pong • Updated: 19/12/25 🔽 Download: Here 🆘 Bug Reports: Here 🔖Tags: #AOSPA#Unofficial#Baklava#CLO#NothingPhone2#Beryl ✨Changelogs: - Based on current QSSI16 and V4.0-251119-1654 - Improvements to performance and system stability - While feedback is appreciated, please do not explicitly mention me, I can read chat on my own thanks ⚙️Installation: 1. fastboot flashing unlock_critical (skip if already unlocked) 2. Execute this for flashing the ROM: fastboot -w fastboot update path/to/aospa zip 3. Wait for boot to finish ❗️Known bugs: - UW camera does not show up in aperture - Left volume panel isn't aligned in landscape ✍️ Note: - Firmware is included. No need to flash seperately. - Clean flash is recommended 👤 Dev: @gotenksIN 🔔Updates : @NothingPhone2Updates 💬Chat : @NothingPhone2