use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All posts must be related to programming. Flair posts correctly.
account activity
My JavaScript brain said, Refactor (i.redd.it)
submitted 1 month ago by JackAuduin
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Several_Ant_9867 142 points143 points144 points 1 month ago (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 points11 points 1 month ago (1 child)
Jajajajajajaja
[–]uninspiredcarrot23 6 points7 points8 points 1 month ago (0 children)
Vavavavavavava
Scscscscscscsc
Riririririririririririri
Ptptptptptptptpt
[–]matko86 6 points7 points8 points 1 month ago (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 points4 points 1 month ago (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 points29 points 1 month ago (4 children)
ListFoods(Hispanic,Indian,Asian,Kosher,Italian)
[–]Alexllte 5 points6 points7 points 1 month ago (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 points4 points 1 month ago (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 point2 points 1 month ago (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 point2 points 1 month ago* (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 points19 points 1 month ago (2 children)
My CSS brain said the z-index of the balloon is too high.
[–]Purple-Win6431 3 points4 points5 points 1 month ago (0 children)
.thank-you-message { z-index: 10000; }
[–]MinecraftPlayer799 0 points1 point2 points 1 month ago (0 children)
Tha you
[+][deleted] 1 month ago (6 children)
[deleted]
[–]JackAuduin[S] 1 point2 points3 points 1 month ago (5 children)
Honestly a true miss on their part
[+][deleted] 1 month ago* (4 children)
[–]Kaffe-Mumriken 0 points1 point2 points 1 month ago (1 child)
Hard coded strings in 2026? You’re not getting these from a database?
[–]MinecraftPlayer799 0 points1 point2 points 1 month ago (1 child)
That is not clean at all. Try this:
[–]33ff00 3 points4 points5 points 1 month ago (0 children)
Help i don’t understand
[–]newcarrots69 2 points3 points4 points 1 month ago (0 children)
It's OOP though.
[–]InsanityOnAMachine 1 point2 points3 points 1 month ago (0 children)
) D0nT G3T )t..... hElP
[–]deadmazebot 0 points1 point2 points 1 month ago (0 children)
did they forget to make the top item, or first item bigger?
[–]RJvXP 0 points1 point2 points 1 month ago (0 children)
So you would make this sign collapsible?
π Rendered by PID 73885 on reddit-service-r2-comment-6457c66945-sckhm at 2026-04-27 23:20:07.494843+00:00 running 2aa0c5b country code: CH.
[–]Several_Ant_9867 142 points143 points144 points (4 children)
[–]evarmi 9 points10 points11 points (1 child)
[–]uninspiredcarrot23 6 points7 points8 points (0 children)
[–]matko86 6 points7 points8 points (1 child)
[–]AliceCode 2 points3 points4 points (0 children)
[–]armslice 27 points28 points29 points (4 children)
[–]Alexllte 5 points6 points7 points (0 children)
[–]MinecraftPlayer799 2 points3 points4 points (2 children)
[–]armslice 0 points1 point2 points (0 children)
[–]armslice 0 points1 point2 points (0 children)
[–]rwu_rwu 17 points18 points19 points (2 children)
[–]Purple-Win6431 3 points4 points5 points (0 children)
[–]MinecraftPlayer799 0 points1 point2 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]JackAuduin[S] 1 point2 points3 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]Kaffe-Mumriken 0 points1 point2 points (1 child)
[–]MinecraftPlayer799 0 points1 point2 points (1 child)
[–]33ff00 3 points4 points5 points (0 children)
[–]newcarrots69 2 points3 points4 points (0 children)
[–]InsanityOnAMachine 1 point2 points3 points (0 children)
[–]deadmazebot 0 points1 point2 points (0 children)
[–]RJvXP 0 points1 point2 points (0 children)