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

Резултати

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

Търсене: #pdvsa

当前筛选 #pdvsa清除筛选
Venezuelanalysis

@venanalysis · Post #2005 · 16.06.2025 г., 20:00

📰 NEWS | Venezuelan Oil Production Recedes as PDVSA Finds New Partners 🇻🇪 Venezuela’s oil sector is under pressure from renewed US sanctions. OPEC reported May output at 896,000 bpd, down for the second month in a row, while PDVSA claimed 1.06 million bpd. With Chevron scaling back operations, PDVSA signed deals with nine foreign firms to manage drilling and sales in Zulia and the Orinoco Belt. Meanwhile, crude exports to China rose to 584,000 bpd, despite discounts and reliance on intermediaries to bypass sanctions. 🔗 Read the full report here: https://shorturl.at/q3iGM #PDVSA#sanctions

Venezuelanalysis

@venanalysis · Post #1968 · 19.05.2025 г., 18:25

📰NEWS | Venezuela: Oil Output Contracts as Foreign Partners Lobby for License Extensions OPEC reported Venezuela’s April oil production at 888,000 bpd (a 34,000 bpd drop from March) while exports fell 20%, largely due to canceled Chevron cargoes. The U.S. oil giant, alongside other firms, faces a May 27 deadline to exit Venezuela unless license extensions are granted. Chevron has urged Washington to modify its sanctions waiver, warning that a withdrawal could strengthen China’s role in the country’s energy sector. Venezuela has begun rerouting shipments to China and reiterated its call for foreign investment. 🔗 Read the full article here: https://shorturl.at/BTdhJ #PDVSA#Sanctions

Venezuelanalysis

@venanalysis · Post #1948 · 29.04.2025 г., 21:53

📊 INFOGRAPHICS | US Sanctions Against the Venezuelan Oil Industry In recent years, successive US administrations have levied wave after wave of unilateral sanctions against Venezuela’s oil industry. The goal is clear: to strangle the country’s most important economic sector. The latests VA's infographic details the successive measures, the impact on output, and the revenue losses over time. 🔎 Follow this link to view the full infographic: https://shorturl.at/Br67t #PDVSA#Sanctions

Venezuelanalysis

@venanalysis · Post #1924 · 01.04.2025 г., 20:00

📰 NEWS | US Pushes Repsol, Eni and Maurel & Prom Out of Venezuela to Increase Economic Pressure The US has ordered Repsol, Eni, and Maurel & Prom to exit Venezuela’s oil sector by May 27, intensifying economic pressure. The companies hold minority stakes in joint ventures with PDVSA, accounting for 83,000 bpd. Repsol and Eni, co-owners of the Cardón IV natural gas project, are exploring ways to continue operations. The offshore venture produces 600 million cubic feet per day, supplying power plants and cooking gas networks. The move follows Washington’s decision to withdraw Chevron’s license, reinforcing its sanctions strategy against Venezuela’s energy industry. 🔗 Read the report here 👉🏼https://venezuelanalysis.com/news/us-pushes-repsol-eni-and-maurel-prom-out-of-venezuela-to-increase-economic-pressure #PDVSA#Sanctions

Venezuelanalysis

@venanalysis · Post #1909 · 13.03.2025 г., 21:30

📰 NEWS | Venezuelan Government Appeals for Foreign Investment Ahead of Oil Sanctions Deadline The Venezuelan government is appealing for foreign investment in its oil sector as Chevron prepares to exit by April 3 under US sanctions. President Maduro reaffirmed that Venezuela is open to international partnerships in oil, gas, petrochemicals, and refining. Chevron’s departure could impact the country’s oil output, with its joint ventures currently producing over 200,000 bpd. However, analysts suggest the firm may still secure an extension or a new license. 🔗 Read the full report here: https://venezuelanalysis.com/news/venezuelan-government-appeals-for-foreign-investment-ahead-of-oil-sanctions-deadline/ #PDVSA#Sanctions

Venezuelanalysis

@venanalysis · Post #1877 · 12.02.2025 г., 23:34

🆕 NEWS | Venezuelan Oil Output Recedes as India ‘Expects’ More Imports Venezuela’s oil production saw a slight decline in February, with OPEC estimating 892,000 bpd—down 18,000 bpd from January—while PDVSA reported an increase to 1.03 million bpd. Despite US sanctions hampering trade, Indian Oil Minister Hardeep Singh Puri stated that “all the signals” suggest an easing of constraints on Venezuelan crude exports. Reliance Industries remains the only Indian firm authorized for imports under current restrictions. 🔗 Read the full report here: https://shorturl.at/ITuDb #PDVSA#Sanctions

Venezuelanalysis

@venanalysis · Post #1806 · 12.11.2024 г., 20:50

Venezuela's oil production has continued to grow, with the latest figures from October showing 895,000 bpd, a 7,000 bpd increase from September. Oil exports also surged to 947,387 bpd, the highest in four years, leading to a 12.5% rise in revenue to $11.3 billion. Despite US sanctions, the country's oil sector shows signs of growth. Tap here to read the full report 👉🏼https://shorturl.at/r1n6Y #PDVSA#Sanctions

Venezuelanalysis

@venanalysis · Post #1778 · 17.10.2024 г., 19:56

Venezuela’s oil industry continued to face challenges in September. OPEC data shows a slight increase in production, reaching 877,000 barrels per day, but the price of the Merey blend, Venezuela’s main export to Asia, has fallen by 27% since April, dropping to $54.91 per barrel. The industry remains under pressure due to sanctions and price concerns. Read the full report here 👉🏼https://shorturl.at/FC87h #PDVSA#sanctions

Venezuelanalysis

@venanalysis · Post #1743 · 12.09.2024 г., 20:00

Venezuela’s oil industry saw steady growth in August, reaching a five-year production high of 874,000 barrels per day, according to OPEC. Exports also jumped 50%, setting a four-year high of 885,000 barrels per day, despite falling prices. Read the full report here: https://shorturl.at/J12bo #PDVSA#sanctions

Venezuelanalysis

@venanalysis · Post #1663 · 25.07.2024 г., 21:37

Venezuela's PDVSA is set to resume oil exports to India's Reliance Industries following a green light from the US Treasury. Meanwhile, Caracas approved a 20-year joint gas project with BP and Trinidad's NGC to explore the Cocuina-Manakin field. More details on shorturl.at/jyPuG #PDVSA#sanctions

Venezuelanalysis

@venanalysis · Post #1566 · 16.05.2024 г., 22:52

Venezuela's oil production experienced a consecutive decline amidst reimposed US sanctions, with April output at 809,000 bpd. US Treasury Department leans towards favoring corporations already entrenched in the Venezuelan energy sector. Read the full story here: https://venezuelanalysis.com/news/venezuelan-oil-production-stutters-as-reimposed-us-sanctions-hamper-deals/ #PDVSA#Sanctions

Venezuelanalysis

@venanalysis · Post #1501 · 14.03.2024 г., 18:44

Despite the challenges posed by sanctions, Venezuela's oil industry continues its recovery. Venezuela's oil output has seen a gradual increase, reaching 820,000 barrels per day in February, as reported by OPEC. This uptick marks the highest output since February 2019, amid US-imposed sanctions. In parallel, Chevron has announced plans to drill 30 new wells in the Orinoco Oil Belt, targeting a production ceiling of 200,000 barrels per day by 2024, highlighting efforts to ramp up the nation's production capabilities. Read more here 👉🏼https://bit.ly/49YR4mw #PDVSA#Sanctions

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