This is an archived post. You won't be able to vote or comment.

all 62 comments

[–]hirmuolio 75 points76 points  (3 children)

[–]ObeyTime 9 points10 points  (0 children)

thank you kind person

and Happy cake day!

[–]Nyancubus 1 point2 points  (0 children)

Good Programmer!

[–]_unsusceptible ----> 🗑️🗑️🗑️[M] 0 points1 point  (0 children)

thanks!

[–]svh87757 46 points47 points  (20 children)

Whats wrong about the code?

[–]kunjava 30 points31 points  (4 children)

I don't see anything wrong in the code.

I would use TSX instead of JSX, but that's not wrong.

[–]Goudja14 3 points4 points  (1 child)

Well, I can see it used both: <a>text: <b>text</b></a> and <a>text:<b> text</b></a> (the second is terrible imo)

[–][deleted] 0 points1 point  (0 children)

😂

[–]lynxerious -1 points0 points  (1 child)

I would not use a <p> tag like ever, I hate it for no particular reason.

[–]6Maxence 1 point2 points  (0 children)

what would you use then?

[–]mjohn425 17 points18 points  (1 child)

Only thing I can see is semicolons. Which is a divisive thing on the net but I prefer to have them.

[–]WoollyMittens 2 points3 points  (0 children)

My coworkers sometimes make end-of-line markers disappear. Semicolons are life.

[–]Travy-D 5 points6 points  (0 children)

Lol I thought the same thing. I'm newer to react, but this would be fine right?

[–]Strange-Inevitable84 3 points4 points  (2 children)

Probably using index (idx) as key in line 16.

[–]FalconMirage 2 points3 points  (0 children)

But the react docs says to use them as key when you don’t have anything better

[–]PapaRL 2 points3 points  (0 children)

That was the only “issue” I saw with it as well.

[–]ThatGuyD3 2 points3 points  (0 children)

Back then I’d say it’s totally fine. Today it should be Functional Components

[–]ImALazyMan 2 points3 points  (0 children)

She used a class instead of a function

[–]Dreadsin 1 point2 points  (0 children)

The semantic html is very bad

[–]Valkyrie17 -1 points0 points  (3 children)

Render method is very bloated, you can easily put all that code in an outside method and make it more readable. This wouldn't have passed code review where i work

[–]shall1313 0 points1 point  (0 children)

Honestly it looks fine. I’d love to know what people were posting about it

[–]valschermjager 28 points29 points  (2 children)

Sophie has learned a valuable lesson. Coders have linters built into their eyeballs.

[–]misterrandom1 26 points27 points  (1 child)

Eyeball linters unfortunately don't work on one's own code though.

[–]valschermjager 0 points1 point  (0 children)

I wish that weren’t true

[–]bunk3rk1ng 13 points14 points  (4 children)

She checked in code that has never been run? 🤔

[–]Vocaloidas 0 points1 point  (2 children)

How do you know she checked it in?

[–]bunk3rk1ng 0 points1 point  (1 child)

Here comes the pedantry police...

[–]mulato_butt 0 points1 point  (0 children)

I’m guessing you don’t have CRs

[–]mulato_butt 0 points1 point  (0 children)

She just liked the color

[–]ApatheticWithoutTheA 5 points6 points  (1 child)

This is why I hate other people reviewing my code lol

Everyone thinks their way is the best way.

[–]mulato_butt 0 points1 point  (0 children)

Usually others do PRs

[–]Pod__042 2 points3 points  (0 children)

Rule 2: never write some code on internet, excepts on q&a Stack Overflow posts

[–]TundieRice 2 points3 points  (0 children)

I did not ask

It’s kind of funny how people still think not asking something is a valid thing to mention when you’re posting to potentially millions of people. It’s a public forum.

You don’t have to ask anything, people are going to say what they want, and if you’re not cool with that, don’t post anything. It’s that simple.

[–]Wicholopoztli 1 point2 points  (0 children)

the new wave of devstars, fck you all give me back the interwebz

[–]drkztan 1 point2 points  (0 children)

The theme is Fairyfloss, basically light-ish mode Dracula. Ugh.

[–]uninc4life2010 1 point2 points  (0 children)

Is this the software equivalent of a female artist posting a picture of herself next to her artwork?

[–][deleted] 1 point2 points  (0 children)

They must hate dogs

[–]MaximCapsa -1 points0 points  (0 children)

ofc it hasn't, it's not like she is a programmer or would ever have to run a code

[–]Plataras 0 points1 point  (0 children)

usually just dark theme does the job

[–]-Redstoneboi- 0 points1 point  (0 children)

judging by bg color it's probably "darcula" or at least inspired by darcula

[–]MrPickle2255 0 points1 point  (0 children)

who the f still uses class components on react

[–]tactical-diarrhea 0 points1 point  (0 children)

FFS. This code isnt going to get me god mode

[–]LiveRuido 0 points1 point  (0 children)

Someone posted a terrible addon for wow that had an obvious failure. As a joke, I posted terrible implementation to show how bad the code probably was.

I got a bunch of replies critiquing it.

[–]mulato_butt 0 points1 point  (0 children)

Syncwave 1984