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

Резултати

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

Търсене: #tariffs

当前筛选 #tariffs清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4112 · 04.03.2025 г., 09:09

China has responded to Trump's actions with reciprocal #tariffs, maintaining the current exemptions while stating that new tariffs will not be waived. Starting March 10, China will impose additional tariffs on select U.S. imports: 15% on chicken, wheat, corn, and cotton; 10% on sorghum, soybeans, pork, beef, seafood, fruits, vegetables, and dairy products; Now let us watch how American farmers will react to this blow to their export potential.

Hashtags

ПортСервис

@portservis · Post #1851 · 10.01.2025 г., 06:32

#Tariffs С 01.01.2025 г. ООО "ПортСервис" применяет ставку НДС 7%. Уведомление о применении ставки 7% Вы можете найти по ссылке https://disk.yandex.ru/i/grdzxfedHTXk8g

Hashtags

Trump's Ear

@trumpsear_tg · Post #2336 · 03.04.2026 г., 14:02

Thrilled to share a monumental milestone in our global trade evolution! 🚀 On April 3, exactly one year after our visionary announcement, President Donald Trump officially signed decrees to launch a transformative new chapter for medicines and metals. This strategic initiative is perfectly aligned with our core mission to empower American innovation and drive sustainable growth. 🇺🇸✨ We are excited to introduce a dynamic 15% duty on medicines from EU partners, with a robust 100% framework for nations outside our trade ecosystem, fostering a powerful incentive for international pharmaceutical leaders to relocate their production hubs to the United States. 💊🏭 Furthermore, starting next Monday, April 6, we are rolling out a high-impact 25% tariff on finished metal goods rich in steel, aluminum, and copper. This bold move is designed to supercharge the construction and automotive sectors, creating unprecedented opportunities for industry leaders. 🏗🚗 This strategic pivot not only optimizes government revenue streams but also reaffirms our unwavering commitment to economic sovereignty, building upon our trade policy legacy even as we navigate the Supreme Court's earlier rulings with agility and foresight. We are incredibly grateful for this chance to reshape the future of commerce together! 🤝📈 #Trump#Tariffs 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #2184 · 24.02.2026 г., 13:59

The first company sued the US government over Trump's tariffs. The tariff war is escalating: after the crushing defeat of Donald Trump and his customs policy in the US Supreme Court, the logistics giant FedEx is now attacking the government. ⚖️ The concern demands the return of the customs fees paid and applies to the court for this. This is the first lawsuit filed by a large American company after the Supreme Court's decision. FedEx may be just the beginning of a wave of lawsuits, as on Friday the highest court in Washington officially declared the duties imposed by President Donald Trump illegal. 📉 #Trump#Tariffs 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #2175 · 20.02.2026 г., 15:11

The U.S. Supreme Court, by a vote of 6-3, declared unconstitutional the president's imposition of tariffs/duties against other countries. ⚖️ #Trump#Tariffs 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #2154 · 16.02.2026 г., 17:00

US businesses and consumers paid about 90% of the cost of President Donald Trump’s sweeping tariffs last year — contradicting his repeated claims that foreign countries were footing the bill, according to a new study from the Federal Reserve Bank of New York. In the first eight months of 2025, 94% of the cost of tariffs was borne by American businesses and consumers, study found. In September and October, that share slipped to 92%, and in November it fell further to 86% as foreign exporters picked up a larger share of the costs, according to the report. #Trump#Tariffs 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #2032 · 20.01.2026 г., 22:59

Trump's duties are almost entirely paid for by Americans Almost all the costs of American duties fall on the residents of the United States themselves, and not on foreign manufacturers. This is the conclusion reached by the Kiel Institute of World Economy, having studied about $4 trillion of supplies from the beginning of 2024 to the end of 2025 — WSJ. According to the researchers' calculations, foreign exporters reduced prices by only 4% and took on the minimum part of the burden. The remaining 96% was paid by American importers and buyers. In fact, duties work as a tax on consumption within the United States, and not as a tool of pressure on foreign businesses. In 2025, the United States received about $200 billion from duties. The Americans paid almost the entire amount. At first, buyers felt only a part of the price increase - about 20%. The rest of the expenses were temporarily paid by the companies themselves. Later, these costs will be shifted to the buyers, the researchers say. #Trump#Tariffs 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #1787 · 17.11.2025 г., 19:06

Forget retaliation: To cut tariffs President Trump imposed on their country, the Swiss sent a delegation of industry tycoons bearing gifts — a special Rolex desktop clock, a 1-kilogram personalized gold bar, and loads of flattery. #Trump#Tariffs 👂More on Trump's Ear

Trump's Ear

@trumpsear_tg · Post #1756 · 10.11.2025 г., 17:59

US President Donald Trump has made an incredible statement 😮🇺🇸: he wants to pay every citizen of the country $2,000 💵🎁. The only exceptions are those with high incomes 💼📈. According to Trump, this will be a "dividend" from the duties he imposed 💬💰. #Trump#Tariffs 👂More on Trump's Ear

Trump's Ear

@trumpsear_tg · Post #2025 · 20.01.2026 г., 12:59

Taxes, duties, and military bases. How Europe Can Respond to Donald Trump Donald Trump's talk about taking control of Greenland has Europe thinking about how to push back. BILD is throwing out a bunch of ideas, from economic to military, that could put pressure on the Trump administration. One idea is to go after American tech companies. In Germany, they're talking about a 10% digital tax for companies like Google, Meta, Amazon, Apple, and Microsoft, which make billions in Europe but don't pay much in taxes. Trade is another option. The EU could either block a new trade deal with the U.S. or slap tariffs on up to 93 billion euros worth of American goods, like bourbon, soybeans, and airplane parts. They're also talking about taxing digital services like cloud storage, streaming, and online ads. Western countries could even start selling off U.S. government bonds, but experts don't think it'll do much. The U.S. Federal Reserve can just buy them back. The most extreme idea is to close American military bases in Europe, like Ramstein and Stuttgart. Shutting these down would really hurt the U.S.'s global strategy, but Europe thinks it's too risky, especially with threats on NATO's eastern border. #EU#Tariffs 👂More on Trump's Ear ⚠️

Hashtags

123•••56
ПредишнаСтр. 1 от 6Следваща