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

Резултати

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

Търсене: #wahhabi

当前筛选 #wahhabi清除筛选

🇵🇸 This is not just a Palestinian corpse. Today's situation in Palestine is the result of the betrayal of all Islamic countries. No one attacks a child who has a guardian. Palestine is alone. This is not just a Palestinian corpse. I see the dead bodies of the Zionist governments of Turkey, Pakistan, Afghanistan, Saudi Arabia, Egypt, with Salafi, #Wahhabi, and #Deobandi#Brotherhood ideas. https://t.me/YediotNewsChat

Graduates of #Deoband and #Wahhabi schools killed 12 people last night. In the terrorist attack on a police station in the Sistan region of Iran, 12 people were martyred and many were injured. The headquarters of the Jaish-ul-Adl terrorist group is in #Pakistan. They have been taught to be kind to infidels, but if you kill 5 Muslims, you will go to heaven. The funds of these groups are provided by America and Israel. Pakistan is a breeding ground for #Sunni terrorists. https://t.me/YediotNewsChat

The picture of the dead body of one of the #Sunni terrorists who invaded Iran's border post last night. They were wearing the uniform of the Iranian military forces. The rest of the #Wahhabi terrorists fled to Pakistan. They hide in the deserts of Pakistan for the next surprise attack on Muslims. Pakistan is the center of production of Wahhabi terrorists. The Wahhabis came to power in #Saudi_Arabia in 1922 by the #British. https://t.me/YediotNewsChat

Saya mencari di Telegram dan melihat #Wahhabi (ISIS) sangat aktif di Telegram dan memiliki banyak saluran. Banyak Muslim mengikuti Wahhabisme. Pusat pemikiran menyimpang ini adalah Takfiri di Arab Saudi. Negara-negara Arab mempunyai jumlah penduduk yang sedikit, namun mempunyai sumber daya minyak yang banyak. Mereka menjual emas hitam (minyak) dengan harga murah dan membeli barang-barang berbahan minyak dengan harga tinggi. Konsumerisme; Peniruan terhadap Barat adalah hal biasa di kalangan umat Islam. Karena maraknya media #Zionis, ketidaktahuan dan takhayul telah menyebar di negara-negara Islam. Pemerintahan mereka lebih bersifat diktator dan bukan demokrasi. Penguasa mereka hanya meninggalkan kekuasaan ketika mereka sudah mati. Persahabatan Muslim dengan Yahudi dan Kristen dilarang dalam Al-Qur'an; Namun para penguasa Arab berteman dengan non-Muslim dan berdansa dengan mereka. Mereka menghunus pedang melawan umat Islam dan membunuh saudara-saudara mereka. Pemikiran menyimpang ini berakar pada abad pertama Hijriah. Abu Bakar dan Umar juga mengganggu keluarga Nabi. Allah berfirman dalam Al-Qur'an, Surat Shuri: Wahai kaum muslimin, berbuat baiklah terhadap keluarga Nabi, namun kaum muslimin membantai seluruh keluarga Nabi. Pemikiran liar yang terlihat di negara-negara Islam saat ini adalah akibat dari kudeta yang dilakukan Abu Bakar dan Omar terhadap penerus Nabi (Ali). Teroris seperti bin Salman bin Laden, Saddam dan #Erdogan diperkenalkan sebagai tokoh utama dunia Islam. Orang-orang munafik yang diam-diam bekerja sama dengan Zionis namun menyerang umat Islam di Palestina, Irak, Lebanon, Suriah, Iran dan Yaman. Pemerintah #Arab_Saudi, #Turki, Bahrain, Kuwait, Qatar, Mesir, Yordania, Pakistan dan Afghanistan dengan mempromosikan ide-ide menyimpang seperti Ikhwanul Muslimin dan Wahhabisme; Deobandi berperang dengan negara-negara yang ingin merdeka (Yaman, Palestina, Suriah, Irak dan Iran). Orang-orang yang berjalan di jalan tiba-tiba meledak. Karena beberapa Wahhabi meledakkan diri mereka sendiri untuk masuk surga!!!! Semoga Tuhan mengutuk Israel, US, dan pendukungnya. Karena mereka menghitamkan wajah Islam dan menampilkan Islam yang diinginkan US. https://t.me/YediotNewsChat

The first Wahhabi terrorist captured by the Artsakh defense forces of Armenia. #Azerbaijan President #Alif and #Erdogan in #Turkey denied the presence of ISIS terrorists in the war with #Armenia. This #Wahhabi gunman confirms that he was trained by the Turkish military and was sent to Artsakh by Turkey with the promise of $2,000. According to his confessions, about 200 other terrorists were fighting with him on the same front against the Armenian forces. He says that a total of 2,000 Wahhabi terrorists were sent to the battle lines with the defense forces of Artsakh to strengthen the Azerbaijani army. He says: He has been ordered to cut off the heads of Armenians, and for each head he cuts off, he receives an extra hundred dollars. https://t.me/YediotNewsChat

#Saudi_Arabia opens the first liquor store Reuters and France news agencies claimed that the Kingdom of Saudi Arabia is preparing to open the first liquor store in the city of Riyadh. According to the document, a copy of which was seen by Reuters, customers must register through a mobile app and after receiving a code from the State Department, they can purchase their monthly quotas at a special store. Saudi Arabia is the largest #Wahhabi center in the world. They pay for Wahhabi schools in #Pakistan, #Afghanistan by selling oil. Graduates of these schools join #terrorist groups such as al-Qaeda, Taliban, #Daesh, Al-Nusra, Jaish al-Adl and blow themselves up among other Muslims to go to heaven. Mohammed bin Salman, the leader of Saudi Arabia, follows the path of Atatürk in #Turkey. Drinking alcohol is forbidden in Islam. https://t.me/YediotNewsChat

The name of this religious school is "Darul Uloom #Deoband". This huge place is located in India. #Zionists pump deviant Islamic thoughts day and night and produce thousands of terrorists. After graduation, they join terrorist groups like #Taliban, #Al-Qaeda, #ISIS. #Mufti, #Maulvi and #Mamusta are taught that if you kill 5 Muslims, you will go to heaven. What is the result of these schools? Have they been able to improve the critical situation of #Afghanistan and #Pakistan? Graduates of these schools spread war, poverty and ignorance among Muslims. Did #Hindus who worship cows and burn Muslims alive set up these schools for the growth of Islam? Did the Hindus unite with Islam or did they establish it to fight between Islamic groups? Why don't these groups (Deobandi, #Salafi, #Wahhabi) fight with USA and Israel? https://t.me/YediotNewsChat