The Amazed Coder (@amazedcoder) header
The Amazed Coder (@amazedcoder) profile picture

Amazing code snippets and articles

Argentina
Joined April 2010
Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)Photo by The Amazed Coder (@amazedcoder)
The Amazed Coder retweeted
🚨 CRITICAL: Active supply chain attack on axios -- one of npm's most depended-on packages. The latest [email protected] now pulls in [email protected], a package that did not exist before today. This is a live compromise. This is textbook supply chain installer malware. axios has 100M+ weekly downloads. Every npm install pulling the latest version is potentially compromised right now. Socket AI analysis confirms this is malware. plain-crypto-js is an obfuscated dropper/loader that: • Deobfuscates embedded payloads and operational strings at runtime • Dynamically loads fs, os, and execSync to evade static analysis • Executes decoded shell commands • Stages and copies payload files into OS temp and Windows ProgramData directories • Deletes and renames artifacts post-execution to destroy forensic evidence If you use axios, pin your version immediately and audit your lockfiles. Do not upgrade.
531
3,941
1,822
15,915
12,509,237
The Amazed Coder retweeted
For a decade, I thought Airbnb would protect us if something went wrong. That was until the life of my son was in play and they sided with the host. If you trust @Airbnb, don't learn the hard way like I did. Here's my story:
1,341
2,762
426
51,724
8,506,622
The Amazed Coder retweeted
Vibe coding in 2005
40
82
25
673
56,844
The Amazed Coder retweeted
Just tried Bun on a Next.js app. Installing node_modules with a warm cache is 13x faster than npm. Super impressive.
1
7
1
71
13,144
The Amazed Coder retweeted
$ git push -force
97
1,759
126
9,595
570,991
The Amazed Coder retweeted
Computer Networking Notes
97
1,813
85
9,890
983,593
The Amazed Coder retweeted
Tip: In @ChromeDevTools you can now hide network requests from Chrome extensions! 😍 Huge for focusing on just your code when profiling performance.
28
236
31
1,397
164,136
The Amazed Coder retweeted
Tip: @ChromeDevTools now shows human-readable HTTP status codes! Useful to 👀 what happened to a network request much quicker.
16
91
8
739
79,076
The Amazed Coder retweeted
Heres another neat use case for CSS :has() When you hover over a table cell, select the other table cells in that column.
8
19
298
42,847
The Amazed Coder retweeted
Did you know CSS has a previous element selector? You can use :has() to select items when the the next item is in a specific state. Here we select the elements before and after the currently hovered row. Nifty 👌
16
114
3
1,060
157,579
The Amazed Coder retweeted
Which programming language has the worst syntax???
1,054
74
202
1,259
400,094
I will admit, TS enums are kind of useful. But only for one specific case. Let's say you only want to log a message if it's a warning or error: You get to use the beautiful `level > LogLevel.Debug` to express it - which is real tasty. You can, of course, do this with a normal 'as const'. But in this situation, I'll choose the enum.
40
46
3
548
170,117
The Amazed Coder retweeted
How To Access Incognito History
20
492
12
2,079
335,111
The Amazed Coder retweeted
This joke might only land with frontend developers 😂
49
233
48
1,849
251,495
The Amazed Coder retweeted
❌ You 𝗺𝗶𝗴𝗵𝘁 not need a react form library ✅ Instead you can use the FormData API's
17
88
7
650
81,630
The Amazed Coder retweeted
What is the output of the following Python code?
73
49
2
477
135,721
The Amazed Coder retweeted
Google is launching their own online dev environment called IDX and I just got access It looks like hosted VS Code + VM. Similar to stackblitz, replit, Github Codespaces, codesandbox etc.. At what point we move to "thin client" and start doing our dev remotely?
235
304
87
2,637
682,513
The Amazed Coder retweeted
Did you know TypeScript <Generics> don't always need to be explicitly set? You can infer their types by the type of data being passed! Super powerful approach when writing library or util code.
10
34
302
57,847
The Amazed Coder retweeted
Here is a neat API that doesn't mess with your async/await when working with Web Streams. The first response of fetch() is a Web Stream! Great for logging progress of a large download. .clone() a stream, then log the progress and then return the original
11
59
3
524
70,889