amazedcoder's profile picture. Amazing code snippets and articles

The Amazed Coder

@amazedcoder

Amazing code snippets and articles

Repost di 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

Repost di The Amazed Coder

Vibe coding in 2005

Da 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

Repost di 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.

Repost di The Amazed Coder

$ git push -force

tom_antok's tweet image. $ git push -force

Repost di The Amazed Coder

Computer Networking Notes

SecurityTrybe's tweet image. Computer Networking Notes

Repost di 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.

Repost di 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.

Repost di 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.

Repost di 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 👌

Repost di The Amazed Coder

Which programming language has the worst syntax???


Repost di 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…

Repost di The Amazed Coder

How To Access Incognito History


Repost di The Amazed Coder

This joke might only land with frontend developers 😂


Repost di The Amazed Coder

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


Repost di The Amazed Coder

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


Repost di 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?

Repost di 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?

Repost di 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.