amazedcoder's profile picture. Amazing code snippets and articles

The Amazed Coder

@amazedcoder

Amazing code snippets and articles

The Amazed Coder รีโพสต์แล้ว

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:


Kimi K2 seems smarter than Grok 4 already

amazedcoder's tweet image. Kimi K2 seems smarter than Grok 4 already

The Amazed Coder รีโพสต์แล้ว

Vibe coding in 2005

จาก Syntax

Ojo con promos multiempresa. Ofrecian 2x3 días de Lolla y un voucher de Samsung, pero solo me dieron 2x1 día y nada del voucher. Como eran 3 empresas, se pasaron la bola entre ellas y nadie sabe nada. Ya estoy con la denuncia en el COPREC. @PersonalFlow_At @PersonalAr @SamsungArg

amazedcoder's tweet image. Ojo con promos multiempresa. Ofrecian 2x3 días de Lolla y un voucher de Samsung, pero solo me dieron 2x1 día y nada del voucher. Como eran 3 empresas, se pasaron la bola entre ellas y nadie sabe nada. Ya estoy con la denuncia en el COPREC.
@PersonalFlow_At
@PersonalAr
@SamsungArg

The Amazed Coder รีโพสต์แล้ว

Just tried Bun on a Next.js app. Installing node_modules with a warm cache is 13x faster than npm. Super impressive.

hdjirdeh's tweet image. Just tried Bun on a Next.js app. Installing node_modules with a warm cache is 13x faster than npm.

Super impressive.

The Amazed Coder รีโพสต์แล้ว

$ git push -force

tom_antok's tweet image. $ git push -force

The Amazed Coder รีโพสต์แล้ว

Computer Networking Notes

SecurityTrybe's tweet image. Computer Networking Notes

The Amazed Coder รีโพสต์แล้ว

Tip: In @ChromeDevTools you can now hide network requests from Chrome extensions! 😍 Huge for focusing on just your code when profiling performance.

addyosmani's tweet image. Tip: In @ChromeDevTools you can now hide network requests from Chrome extensions! 😍 Huge for focusing on just your code when profiling performance.

The Amazed Coder รีโพสต์แล้ว

Tip: @ChromeDevTools now shows human-readable HTTP status codes! Useful to 👀 what happened to a network request much quicker.

addyosmani's tweet image. Tip: @ChromeDevTools now shows human-readable HTTP status codes! Useful to 👀 what  happened to a network request much quicker.

The Amazed Coder รีโพสต์แล้ว

Heres another neat use case for CSS :has() When you hover over a table cell, select the other table cells in that column.

wesbos's tweet image. Heres another neat use case for CSS :has()

When you hover over a table cell, select the other table cells in that column.

The Amazed Coder รีโพสต์แล้ว

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 👌

wesbos's tweet image. 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 👌

The Amazed Coder รีโพสต์แล้ว

Which programming language has the worst syntax???


The Amazed Coder รีโพสต์แล้ว

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…

mattpocockuk's tweet image. 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…
mattpocockuk's tweet image. 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…

The Amazed Coder รีโพสต์แล้ว

How To Access Incognito History


The Amazed Coder รีโพสต์แล้ว

This joke might only land with frontend developers 😂


The Amazed Coder รีโพสต์แล้ว

WinRAR Flaw Lets Hackers Run Programs When You Open RAR Archives it.slashdot.org/story/23/08/18…


The Amazed Coder รีโพสต์แล้ว

❌ You 𝗺𝗶𝗴𝗵𝘁 not need a react form library ✅ Instead you can use the FormData API's


The Amazed Coder รีโพสต์แล้ว

What is the output of the following Python code?

clcoding's tweet image. What is the output of the following Python code?

The Amazed Coder รีโพสต์แล้ว

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?

wesbos's tweet image. 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?

The Amazed Coder รีโพสต์แล้ว

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.


Loading...

Something went wrong.


Something went wrong.