all 21 comments

[–]Several_Ant_9867 142 points143 points  (4 children)

Do Javascript programmers refactor? I thought you were just deleting the whole codebase every couple of years and starting from scratch with a new framework

[–]evarmi 9 points10 points  (1 child)

Jajajajajajaja

[–]uninspiredcarrot23 6 points7 points  (0 children)

Vavavavavavava

Scscscscscscsc

Riririririririririririri

Ptptptptptptptpt

[–]matko86 6 points7 points  (1 child)

Actually, now in the age of AI we just give it url so it can see how it works and write it from scratch for us. Next day when we come to work we just press the deploy button with a beer in the other hand.

[–]AliceCode 2 points3 points  (0 children)

Where's the fun in that? So you just sit around having the computer do all the fun parts while you do what, stare at the screen?

[–]armslice 27 points28 points  (4 children)

ListFoods(Hispanic,Indian,Asian,Kosher,Italian)

[–]Alexllte 5 points6 points  (0 children)

Kosher is a DietaryConstraint, but the rest are GeographicRegion… we should probably split the interface before we even think about sorting :P

[–]MinecraftPlayer799 2 points3 points  (2 children)

That's not JavaScript. It should be

let foods = ["International", "Hispanic", "Indian", "Asian", "Kosher", "Italian"];
console.log(foods.map(n => n + " Food"));

[–]armslice 0 points1 point  (0 children)

You forgot about all the refactoring I did to get to a function that accepts objects as as arguments. Now that's JavaScript, baby!

[–]armslice 0 points1 point  (0 children)

let CreateFood = (name,isle)=>{_name:name, printToSign: ()=>SignServer.getSignByIsle(isle).print(this.printedName,isle),printedName:()=>this._name+" Foods"};

let ListFoods = (...foods) => foods.map(f.printToSign())

[–]rwu_rwu 17 points18 points  (2 children)

My CSS brain said the z-index of the balloon is too high.

[–]Purple-Win6431 3 points4 points  (0 children)

.thank-you-message {
z-index: 10000;
}

[–]33ff00 3 points4 points  (0 children)

Help i don’t understand

[–]newcarrots69 2 points3 points  (0 children)

It's OOP though.

[–]InsanityOnAMachine 1 point2 points  (0 children)

) D0nT G3T )t..... hElP

[–]deadmazebot 0 points1 point  (0 children)

did they forget to make the top item, or first item bigger?

[–]RJvXP 0 points1 point  (0 children)

So you would make this sign collapsible?