Trying to be the best but always end up the worst 🤔

North bridge
Joined September 2019
Pinned Tweet
I love everybody. Some I love to be around. Some I love to avoid. And others, I would love to punch in the face !
Shayan retweeted
Modern JavaScript is a Plastic Toy Car with a powerful Internal Combustion Engine slapped onto it. With all the consequences.
Is your header file meant for use by a C compiler? No? THEN STOP USING .H If I see .h I have to literally go and read the code to see what language it's in, I have no other choice. If I see something like .hpp, I know it's a C++ header file!
48
17
248
Shayan retweeted
Replying to @nixcraft
tbh I don't care using proprietary software on Linux (drivers, games)... As long as I have the choice...
1
1
12
Shayan retweeted
Disney sucks
This tweet is unavailable
Unpopular opinion: Lofi is overrated
1
2
Shayan retweeted
Night and day difference
When I mention that I work with C++, I regularly get the question: is C++ even used anywhere these day ? @lefticus 's 400th episode of C++ weekly gives a nice overview of how most of the world's software actually relies on C++ in some way. piped.video/watch?v=hxjSpasg…
6
13
2
110
“This is ten percent luck Twenty percent skill Fifteen percent concentrated power of will Five percent pleasure Fifty percent pain And a hundred percent reason to remember the name”
9
9
1
161
🇺🇸 Who is arguably the best president America has had in the last fifty years?
12% Jimmy Carter
34% Barack Obama
50% Donald Trump
4% Joe Biden
261,090 votes • Final results
12% Jimmy Carter
34% Barack Obama
50% Donald Trump
4% Joe Biden
261,090 votes • Final results
I said from the very beginning that BLM is a terrorist organization. Now they finally admit it.
This tweet is unavailable
Shayan retweeted
Does anybody know why some old people here call this website "Twitter"? Is this some sort of old people's meme or something?
20
9
240
Shayan retweeted
Understanding the Hamas attack on Israel: Iran is aiming for a confrontation with Israel and the US. The success of Russia in Ukraine is encouraging Iran to undo decades of hostile US foreign policy in the Middle East. A bankrupt US Govt has just been invited to another war. The timing is opportunistic. The US Govt is forced to print trillions of USD as it struggles to raise new debt. Another war would lead to a significant increase in inflation and an accelerated economic decline of the US. If Iran mines the Strait of Hormuz the global energy crisis would become critical. The Biden administration has used the majority of US oil reserves to stabilize domestic oil prices. Iran can increase the pain for the US Govt significantly. Ukraine is turning into a major defeat for the US and NATO. A new front in the Middle East would accelerate the US decline. The US Govt and its western partners simply cannot afford it. Russia and China would benefit most. Iran understands this and is playing into the hands of its partners.
Shayan retweeted
for 50 years, all world governments bought their encryption machines from the leading encryption firm in Switzerland turns out the company was owned by the CIA, who was listening in all along 🤣 no civilian has a chance against a tier-1 intelligence agency. most nations don't
Shayan retweeted
The more I dig into React / Next.js, the more I appreciate the efforts put into @vuejs and @nuxt_js DX.
6
18
7
147
McDonald’s Japan vs McDonald’s USA. Try and spot the difference.
This is not appropriate in any way shape or form.
Replying to @rumblevideo
Attached is the letter from the UK Parliament.
“Dynamically typed languages are better than statically typed languages” This statement used to be true for various reasons. It’s not anymore. Let’s dig into why. Dynamically typed languages and frameworks like Ruby on Rails and LAMP stack blew up in popularity for various reasons. Let’s rewind the clock back a couple decades or so and look at the context. Software development was dominated by statically typed languages like C++, Java, and C#. 1. These languages and frameworks had a big learning curve 2. Code was very verbose because of the ceremony of type definitions 3. Required expensive specialized tooling that shipped in physical CDs 4. IDEs were very slow and buggy, especially on older hardware 5. Feedback loop was slow because of long compilation times 6. Ecosystems were primarily stewarded by corporations and proprietary software 7. Frameworks were primarily intended for desktop apps, web apps were an afterthought Ruby on Rails and LAMP stack were positioned perfectly to sweep and dominate the ecosystem at this point. 1. Languages like Ruby and PHP had a much smaller learning curve 2. Dynamic nature and syntactic sugar made it quick and fun to program 3. No specialized tooling was required, fire up notepad and start building your app 4. No slow and buggy IDEs, you could literally REPL your code into the terminal 5. No compile step means faster feedback loops, make a change, hit save, refresh the browser 6. Ecosystems were extremely open source and community driven 7. The sole purpose was enabling anyone to make web apps, instead of adding web capabilities to an existing stack I obviously haven’t been around that long, but those who have remember static typing not as it is today, but as it was back then. It was an indicator of ceremony, slow feedback loops, and proprietary dinosaurs. Static typing has made a major comeback over the last decade, and almost everything that turned people away from them and towards the comfort of PHP and Ruby has been UNO reversed. 1. Modern static languages like Typescript have ridiculously low learning curves 2. Type inference takes out 95% of the ceremony and terse syntax 3. The most powerful tools also happen to be open source and very well documented 4. Advancements in hardware and optimization techniques have made IDEs extremely snappy 5. Compilations are ridiculously quick, especially if the compiler knows the data types beforehand 6. Even the big bad Microsoft has completely turned around and committed to open source 7. Typescript is not the only static language with an ecosystem primarily geared towards web development The factors that blew up Rails and LAMP in popularity are now the same factors that favor ecosystems that offer complete type safety. Dynamic typing has become, to put it strongly, obsolete. They are artifacts of the past. Yes you can use dynamically typed languages to build real systems for scale. But you will pay the cost of maintenance, performance, and scalability, and eventually will have to rebuild using infrastructure that offers much better guarantees. Dynamically typed languages are used not because they are dynamically typed, but because they have specific technical benefits (e.g. Elixir for building distributed systems) or ecosystem benefits (e.g. Python for data science). Starting off with type-safe languages will give you faster feedback loops, more helpful IDE tools, more freedom to make changes without breaking stuff, and better collaboration through internal contracts and documentation at a very low cost.