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

Резултати

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

Търсене: #intermediate

当前筛选 #intermediate清除筛选
English Speakers

@English_Speakers · Post #4542 · 06.05.2021 г., 00:42

#intermediate 📌 made my day Meaning 👉 To cause one to feel very happy; to be a very positive highlight of one's day. Example When my neighbors surprised me with homemade chocolate chip cookies, it is really made my day. @English_Speakers

English Speakers

@English_Speakers · Post #4479 · 17.03.2021 г., 17:59

#Intermediate @English_Speakers 📌 When the cat a way the mice will play غاب القط فالعب يا فار people being supervised often do things they are not supposed to do when the supervising person is not around (expression often used in a humorous way about employer and employees, parents and children, etc.) 👉Example: "“His parents are away for the weekend.” “I see—while the cat's away.” @English_Speakers

New Psychedelics compounds search. Why? Deal with First gen psychedelic issues: - they were not created specifically to threat a particular disorder even if can do it with a certain efficacy - they have cardiotoxicity related to 5ht2b mechanism - long action duration length for therapy New hopes and ideas: - decouple halucenogetic from therapeutic effect - potentially reaching even newer states of mind - targetly engineered experience without so complex set and setting What? - Kanna alcaloids for premature ejaculation 😅 - BPL-003 for Treatment Resistant Depression (TRD). - IHCH-7113 Non halucenogetic psychedelic for depression - Ele-101 for depression and Alcohol Use Disorder (AUD). How? 1. AI assisted search - Predictive AI. Train on structure to properties (need big dataset of both) - Generative AI. Evolutionary machines 2. Natural compounds search and enchantment - Research existing less popular natural compounds rom indigenous communities - Enchance properties (Increase a half life, change blood barrier penetration, etc.. 3. Future approaches - computational chemistry (compounds VS receptors ) - test on brain organoids Skill level: #intermediate https://youtu.be/BQoIozpBU5Y

https://podcasts.google.com/feed/aHR0cHM6Ly9mZWVkcy5saWJzeW4uY29tLzgxODk1L3Jzcw/episode/NjgxMmNkZTUtYThmZi00OWIxLThkMmMtZGU5NGM4MDQ2YjRl?ep=14 Why MDMA analogs? 1. Safer options for mory risky categories of people: People with Cardiac deseas history People over the age of 65 2. Other medical application apart form PTD Social anxiety for Autism Parkinson's desease 3. Other impoovements Shorter therapy duration More cheaper production Skill level: #intermediate

Researchers Are Mapping DMT Dimensions Through DMTx Tech Seems like DMTX is finally started and we will see more exciting news from various labs all over the world. Any friends anesthesiologists?😁 "But that doesn’t mean we can’t have some kind of mapping. One can think about Level mapping for example, so do different levels of intensity experience reliably take you to different types of spaces? Is there a progression? I mean people talk already, about you know, moving to the waiting room and then the dome. There has already been developed in a very informal sense, a certain kind of mapping of the space.” Skill level #intermediate https://psychedelicspotlight.com/researchers-are-mapping-out-new-dimensions-through-dmtx-technology/

English With Natives*

@sirjimmy · Post #31213 · 10.10.2024 г., 05:11

1️⃣How often does he work? Everyday All day Rarely 2️⃣What is he starting to think about? Playing basketball Watching TV His health Work 3️⃣What decision is made to get more exercise? Running or Jogging Doing more outdoor activities Going to the local gym 4️⃣What type of lessons are they considering? Dance Tennis Basketball 5️⃣For $120, How often will they meet? Everyday for a month Once a week for two months Every afternoon Twice a week for one month 6️⃣Please fill the blank and tell me what does whole sentence mean? Playing tennis twice a week will be a good start. ..... me .... . #Listening #Intermediate #Teamjimmy @Sirjimmy

English With Natives*

@sirjimmy · Post #30337 · 19.05.2023 г., 07:30

1️⃣How often does he work? Everyday All day Rarely 2️⃣What is he starting to think about? Playing basketball Watching TV His health Work 3️⃣What decision is made to get more exercise? Running or Jogging Doing more outdoor activities Going to the local gym 4️⃣What type of lessons are they considering? Dance Tennis Basketball 5️⃣For $120, How often will they meet? Everyday for a month Once a week for two months Every afternoon Twice a week for one month 6️⃣Please fill the blank and tell me what does whole sentence mean? Playing tennis twice a week will be a good start. ..... me .... . #Listening #Intermediate #Teamjimmy @Sirjimmy

English With Natives*

@sirJimmy · Post #30259 · 28.04.2023 г., 06:37

1️⃣How often does he work? Everyday All day Rarely 2️⃣What is he starting to think about? Playing basketball Watching TV His health Work 3️⃣What decision is made to get more exercise? Running or Jogging Doing more outdoor activities Going to the local gym 4️⃣What type of lessons are they considering? Dance Tennis Basketball 5️⃣For $120, How often will they meet? Everyday for a month Once a week for two months Every afternoon Twice a week for one month 6️⃣Please fill the blank and tell me what does whole sentence mean? Playing tennis twice a week will be a good start. ..... me .... . #Listening #Intermediate #Teamjimmy @Sirjimmy

12
ПредишнаСтр. 1 от 2Следваща