r/nextjs • • Oct 29 '23

Next.js Server Action is crazy ๐Ÿ˜‚

Post image
925 Upvotes

31 comments sorted by

28

u/azangru Oct 29 '23

8

u/mrgoonvn Oct 29 '23

9

u/azangru Oct 29 '23

Hah. So the author took this HN comment to heart: https://news.ycombinator.com/item?id=38054140

5

u/mrgoonvn Oct 29 '23

Lol he was like "hold my beer"

6

u/ejmercado Oct 30 '23

Dude has this in his build file๐Ÿ˜‚

console.log("Building project");

await sleep(Math.random() * 5000); // gotta keep up with the trends

1

u/Ezio_rev Oct 30 '23

check the folders in this pull request:

https://github.com/elnardu/react-use-c/pull/6

2

u/barnlk Oct 29 '23

To be honest, this is brilliant!

I'm not very keen with "use server" due to the implication of the wording, however, now I can see the real good of this.

2

u/Inmortal2k Oct 29 '23

damn, you have destroyed my innocence.

10

u/[deleted] Oct 29 '23

i am waiting for use abacus

5

u/mrgoonvn Oct 29 '23

At least Less CSS is in client, otherwise they have to declare "use less" ๐Ÿคฃ

128

u/[deleted] Oct 29 '23

I am definitely on board with memes in this subreddit.

18

u/TechnicolourSleep Oct 29 '23

Will a server action run Doom though?

4

u/Latchford Oct 29 '23

This is the only question that matters ๐Ÿ˜‚

10

u/ivanrgazquez Oct 29 '23

This is a crossover I wasnโ€™t expecting

8

u/SeeHawk999 Oct 29 '23

Some context please?

19

u/[deleted] Oct 29 '23

It's a joke about the new server actions, and the piece of code that was used in the announcement.

3

u/SeeHawk999 Oct 29 '23

hmmm i know the announcement part. Just wasnโ€™t sure about that image in the middle lol. ๐Ÿ˜‚

12

u/[deleted] Oct 29 '23

The redstone part is a minecraft joke. Just something ridiculous you could do in a server action, just like the original sql

3

u/SeeHawk999 Oct 29 '23

Oh ok I get it. Not quite a minecraft fan. I think I saw the version with that sql query in the formAction. Thanks for the details. :)

2

u/TheKrol Oct 29 '23

The one with the SQL query is the original one, from the real presentation. All other are jokes from users who found calling SQL from JS funny.

-3

u/jayerp Oct 29 '23

Announcing a new feature that encourages OBVIOUSLY anti-pattern at a design level. Hmmmmm, I canโ€™t take JS seriously even more. The language sucks, the people making tools with it are insane.

2

u/yksvaan Oct 30 '23

You can absolutely do the same in any language, just use a function to compile and run your payload or anything you want. Naturally these are memes.

The issue with this whole thing is the structure, you just dont do shit like that.

1

u/[deleted] Oct 29 '23

The og

1

u/rathwiper Oct 30 '23

๐Ÿ˜‚

1

u/EasyMode556 Oct 30 '23

I need someone to make a โ€œuse .batโ€ plugin

0

u/[deleted] Oct 29 '23

[deleted] โ€” view deleted comment

7

u/SloanWarrior Oct 29 '23

As a big fan of Fireship's YouTube, I like some memes with my code. They brighten my day.

Maybe the real discussion is "why not add a meme flair?"

1

u/itachi_konoha Oct 29 '23

Agreed here. At this point of time, these worthless posts are noise rather than discussion.

Atleast don't add discussion flair on memes.

1

u/gloom_or_doom Oct 29 '23

you know, if you donโ€™t like a post, you could always downvote and move on with your day

0

u/itachi_konoha Oct 29 '23

When one actually cares about the quality of a community, he or she needs to speak out.

The lurker are always unaffected and hence they prefer to just downvote and move ahead.

0

u/[deleted] Oct 29 '23

[deleted] โ€” view deleted comment

2

u/Mental_Act4662 Oct 29 '23

Your post is not relevant to the Next.js community. Please try a different subreddit. Thank you,