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

Резултати

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

Търсене: #collocation

当前筛选 #collocation清除筛选
Fluent English™

@English_easyly_learn · Post #1092 · 15.08.2018 г., 08:49

📓IELTS Vocabulary: Word of the day ✅Agreement 👉🏻 COLLOCATIONS ▪️make an agreement We made an agreement not to tell anyone. ▪️sign an agreement The two countries have signed an agreement on military co-operation. ▪️have an agreement They have an agreement that all workers should be union members. ▪️reach/come to an agreement also conclude an agreement (formal) It took the two sides several weeks to reach an agreement. ▪️break/violate an agreement The UN accused the country's leaders of breaking international agreements. ▪️keep/honour an agreement also stick to an agreement (informal) (=do what you have agreed) ▪️be bound by an agreement (=have to obey the conditions of an official agreement) ▪️negotiate an agreement (=discuss particular things in order to reach an agreement) ▪️draft an agreement (=write the conditions of an agreement, which may be changed) ▪️enter into an agreement (formal) (=make an official agreement, which has legal responsibilities) ▪️finalize an agreement (=agree the last part) ▪️an agreement breaks down (=it stops working) 👌🏻Share this with your friends! and help them also IELTS effectively! #Collocation #vocabulary 📓IELTS Vocabulary: Word of the day ✅agonizing also agonising /ˈægənaɪzɪŋ/ adjective 👉🏻 extremely painful The pain was agonizing. 👉🏻 very unpleasant to experience, especially because of involving a difficult choice or a long wait an agonizing decision 👌🏻Share this with your friends! and help them also IELTS effectively! #vocabulary @English_easyly_learn

Journey to Fluency

@fluencyinenglish · Post #7804 · 27.10.2020 г., 07:31

#vocabulary #collocations @ieltsstrategies ♦️Verb + aim 1️⃣ clarify + aim You'll need to clarify the aims and objectives of your project. Make sure you state them clearly at the beginning of your report. 2️⃣ achieve + aim Our organisation is committed to achieving its aims through peaceful means. We totally reject violence as a means of political change. 3️⃣ pursue + aim Some companies pursue their aims in a very ruthless way - with no thought of what they are doing to the environment. 4️⃣ support + aim I support the aims of animal rights activists because I want to see a ban on using animals in experiments. 5️⃣ have + aim He's just drifting. He seems to have no aims in life at all. Would you talk to him? 6️⃣ set out + aim All parents receive a booklet which sets out the school's aims and objectives before their children start their first term. #collocation @ieltsstrategies With the aim of + adjective 1️⃣ With the aim of + employment My sister went to Valencia last year with the aim of finding employment in the hotel industry so that she could improve her Spanish. 2️⃣ With the aim of + awareness This booklet has been produced with the aim of increasing public awareness of AIDS. 3️⃣ With the aim of + dependency A new scheme has been set up with the aim of reducing people's dependency on the welfare state. 4️⃣ With the aim of + relations The police regularly visit schools in run-down inner-city areas with the aim of improving community relations. 5️⃣ With the aim of + homelessness A new charity has been set up with the aim of tackling homelessness among young single men. #collocation @ieltsstrategies ✅ Upper-intermediate Common adjective + aim 1️⃣ clear + aim Before you start this project, it is important to have a clear aim in mind. You really need to know where you're going. 2️⃣ laudable + aim Increasing the state pension is a laudable aim, but I don't think the country can afford it. 3️⃣ long-term + aim Promotion to the first division is the long-term aim of the club, but our immediate aim is to win our next match. 4️⃣ broad + aim I sympathise with the broad aims of the party, but on this particular issue I'm afraid I have to disagree. 5️⃣ underlying + aim Although the President is here on an official visit, I think the underlying aim is to promote trade. 6️⃣ sole + aim He's a selfish sort of person. His sole aim in life seems to be to make money. 7️⃣ common + aim This company will only be successful if people work together with common aims. #collocation @ieltsstrategies

Journey to Fluency

@fluencyinenglish · Post #7576 · 14.03.2020 г., 06:30

#vocabulary #collocations @ieltsstrategies ♦️Verb + aim 1️⃣ clarify + aim You'll need to clarify the aims and objectives of your project. Make sure you state them clearly at the beginning of your report. 2️⃣ achieve + aim Our organisation is committed to achieving its aims through peaceful means. We totally reject violence as a means of political change. 3️⃣ pursue + aim Some companies pursue their aims in a very ruthless way - with no thought of what they are doing to the environment. 4️⃣ support + aim I support the aims of animal rights activists because I want to see a ban on using animals in experiments. 5️⃣ have + aim He's just drifting. He seems to have no aims in life at all. Would you talk to him? 6️⃣ set out + aim All parents receive a booklet which sets out the school's aims and objectives before their children start their first term. #collocation @ieltsstrategies With the aim of + adjective 1️⃣ With the aim of + employment My sister went to Valencia last year with the aim of finding employment in the hotel industry so that she could improve her Spanish. 2️⃣ With the aim of + awareness This booklet has been produced with the aim of increasing public awareness of AIDS. 3️⃣ With the aim of + dependency A new scheme has been set up with the aim of reducing people's dependency on the welfare state. 4️⃣ With the aim of + relations The police regularly visit schools in run-down inner-city areas with the aim of improving community relations. 5️⃣ With the aim of + homelessness A new charity has been set up with the aim of tackling homelessness among young single men. #collocation @ieltsstrategies ✅ Upper-intermediate Common adjective + aim 1️⃣ clear + aim Before you start this project, it is important to have a clear aim in mind. You really need to know where you're going. 2️⃣ laudable + aim Increasing the state pension is a laudable aim, but I don't think the country can afford it. 3️⃣ long-term + aim Promotion to the first division is the long-term aim of the club, but our immediate aim is to win our next match. 4️⃣ broad + aim I sympathise with the broad aims of the party, but on this particular issue I'm afraid I have to disagree. 5️⃣ underlying + aim Although the President is here on an official visit, I think the underlying aim is to promote trade. 6️⃣ sole + aim He's a selfish sort of person. His sole aim in life seems to be to make money. 7️⃣ common + aim This company will only be successful if people work together with common aims. #collocation @ieltsstrategies

English Speakers

@English_Speakers · Post #3261 · 08.02.2018 г., 12:43

🔻#collocation #Pure 💎 Pure language ....... لغة فصحى 💎 Pure water ............. ماء عذب 💎 Pure man ............... رجل نقي القلب او السريرة 💎 Pure mathematics رياضيات بحتة 💎 Pure tea ................. شاي فاخر 💎 Pure gold ............... ذهب خالص 💎 Pure Jordanian ..... أردني أباً عن جد 💎 Pure angels ........... ملائكة أبرار 💎 Pure sky ................ سماء صافية 💎 Pure alcohol .......... كحول نقي 💎 Pure iron ................ حديد صرف 💎 Pure metaphor ...... استعارة مجردة 💎 Pure profit .............. ربح صافي 💎 Pure monopoly ...... احتكار مطلق @English_Speakers

Неге “процесс” “үдеріс” те, “үрдіс” те емес, процесс болуы керек Көбіміз “Үрдіс”, яғни әдет-ғұрып, салт дәстүрді білдіретін сөзді тенденция орнына қолданып жүрміз. Тенденцияны - көп жерде үрдіс емес, әлдененің үрдіс алуы, үрдіске айналуы /айнала бастауы деп аударған жөн. Әңгіме “үдеріс” жайлы болса, кей контексте “процесс” сөзіне балама бола алады. Тек ол мағынада қолдануға болатын аясы өте тар, мысалы, әлден жүріп жатқан нәрсеге қолдануға болады. “Тарихи үдеріс” мысалы, тарихи процеске емін-еркін балама бола алады. Ал “разработка процесса” деген сияқты сөйлемде қолдану - орынсыз тірлік. Себебі, әлі жоқ нәрсені, дайындауға, бастауға болатын нәрсені үдеріс деуге болмайды. “Технологический процесс”- дегенді “технологиялық үдеріс” деу де тақырыптан хабарсыздыққа мезгейді. Сложные процессы - дегенді “Күрделі үдерістер” деу де қисынсыз. “Күрделі амалдар” (әлдебір мақсаты бар дүние болса), егер мақсатсыз болса — құбылыстар, өзгерістер. Ал кейде “кезең” деп аударуға болады. Мысалы: “После этого, субстанция должна пройти через сложный процесс осушки” - Содан кейін, шикізат күрделі кептіру кезеңінен өтуі тиіс”. Сот процесін “үдеріс” деуге болмайды, ұлтшылдықтан көтің қақ айрылса да, “процесс” боп қалады, әйтпесе, мағынаға қиянат қыласың. Егер “в процессе чего-либо” деген тіркес келсе, яғни процестің өз алдына салмағы жоқ, әлдебір амал-құбылыстың жүзеге асу кезін білдірсе, онда “Пәленше барысында” деуге әбден болады. Тенденцияны үрдіс алу, “үдеріс” деуге болады. Бірақ, кей контексте беталыс, бетбұрыс деген сөздер мағынаны дәлірек ашады. Бұл нені білдіреді? Процесс сөзінің қазақшаға аударылмайтынын ба? - Жоқ, әрине. Әрі мен сізге аударылатынын дәлелдедім. Енді неге процесс қалуы керек? Процесс сөзінің мағыналары көп, сондықтан бір де бір сөз оның орнына жалғыз өзі қонжия алмайды, бұл бір. Оны әр контексте әрқалай аудару үшін қазақшаң өте мықты болуы аз, айтылған сөз төркіні мен контекстін беске білуің керек. Ондай қабілетті кітап оқымайтын жалпақ жұрт тұрмақ, жас филолог маманнан талап ету - жұртты қазақ тілінен бездірумен бірдей. Себебі, әр сөздің салыстырмалы диагностикасын жасау терең зерттеуді, немесе қыруар тәжірибені талап етеді. Оған қазақтың бәрінде уақыт жоқ. Сондықтан, қайсысы қолданылатынын білмесек, контекстін ажырата алмасақ немесе ол белгісіз болса, “тенденция”, “процесс” сөзін сол күйі қалдырған жөн. #контекст#collocation#process#процесс#аударма#процесс