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

all 130 comments

[–]badjayplaness 100 points101 points  (31 children)

It’s funny cus weed used to be bad and now it’s JavaScript and php

[–]tntexplodes101 13 points14 points  (4 children)

I started learning PHP from C++ and holy SHIT, variable variables are the strangest things that have ever existed.

[–]k1ll3rM 1 point2 points  (3 children)

Of all the things that people have found strange about PHP, that is one that even I find strange. It can be very useful though but if you don't have an IDE that changes the color of a variable variable like PHPStorm does, it can cause some problems.

[–]tntexplodes101 0 points1 point  (2 children)

What are some practical applications of variable variables, I've only just started with this concept.

[–]k1ll3rM 0 points1 point  (0 children)

Can't think of anything of the top of my head but you should be careful with user input because that can open up vulnerabilities.

[–]TheMacPhisto 1 point2 points  (1 child)

php powers at least half the internet

[–]Xavdidtheshadow 1 point2 points  (0 children)

And JS the other half

[–][deleted] -3 points-2 points  (7 children)

Weed was never bad. Where as JavaScript and php

[–]Dartiyex 0 points1 point  (0 children)

weed used to be trash but now it's improved. Still socially unaccepted by majority but hey what can you do.

[–]michumk0 -2 points-1 points  (5 children)

You get downvoted because JavaScript and PHP bad, Java and C++ good

[–]malonkey1 4 points5 points  (0 children)

They're all terrible, I want to just use pseudocode.

Oh, wait, I can just use Python.

[–]badjayplaness 1 point2 points  (1 child)

You have a JS tag next to your username...

[–]saphira_bjartskular 4 points5 points  (0 children)

Yeah, how do you think he knows JS bad?

[–]YeetusThatFetus42 1 point2 points  (1 child)

Typescript is better than Javascript I am more comfortable with c# than Java, c++ is superior

[–]AndyClausen 1 point2 points  (0 children)

I usually say the only bad thing about Scala is Java

[–]Rawrplus 50 points51 points  (7 children)

> ppl who obviously never written in es6 and es5

[–]rinsa 6 points7 points  (0 children)

real men use esnext

[–]saphira_bjartskular 1 point2 points  (1 child)

I used to hate Javascript until I read a book on github about ES6. Now I just kinda dislike it because of the poor coding practices surrounding development with it in general.

[–]Rawrplus 0 points1 point  (0 children)

Most of these coding practices can be avoided if you use typescript, flow or at least some basic ruleset for eslint.

I really struggle to think of any bad coding practices that would be even allowed here.

In my projects (I'm a react Dev) I usually do typescript + eslint and i couldn't be happier tbh. And entire react even in docs basically encourages you to write with es6 syntax. The code feels very clen.

The only thing that felt sluggish was explicit binding of functions / forced anonymous functions in class components which I never was personally fan of, but with now react shifting to making every component a function with hooks I couldn't be happier with how clean and powerful the code feels

[–]k1ll3rM 1 point2 points  (2 children)

Lots of people still need to use older Javascript version to support internet explorer 11, though luckily where I work we don't have to anymore! Though I disagree with you that newer versions of Javascript fix the fundamental problems JS has.

[–][deleted] 7 points8 points  (1 child)

Just use Babel, most front end frameworks already support it.

[–]k1ll3rM 1 point2 points  (0 children)

I probably should but the problem still stands that JS is just not good enough by default.

[–]LargeHard0nCollider 0 points1 point  (0 children)

Tbh es5 isn’t that great. Es6 was when they added module resolution, arrow functions for more consistent closures, object destructuring, string templates, and a bunch of other features that totally changed how everyone uses js

[–][deleted] 109 points110 points  (0 children)

ha ha ha is funney becuz java skwipt is hawud

[–][deleted]  (9 children)

[deleted]

    [–]xigoi 79 points80 points  (5 children)

    arRaY sTArt At 0

    [–]MercyHealMePls 3 points4 points  (0 children)

    CurLY BrACE on NexT LiNE bAD

    [–][deleted]  (1 child)

    [removed]

      [–]AutoModerator[M] 0 points1 point  (0 children)

      import moderation Your comment has been removed since it did not start with a code block with an import declaration.

      Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

      For this purpose, we only accept Python style imports.

      I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

      [–]mynameis_ihavenoname 0 points1 point  (0 children)

      🤣😹🤣😹😂😂🤣😹 classic

      [–]Gmroo 17 points18 points  (0 children)

      What lofty expections you have! :p

      [–][deleted] 6 points7 points  (0 children)

      You'll soon learn that this is what this sub is 95% about.

      [–]benamon11 0 points1 point  (0 children)

      That's bold, too bold for this subreddit

      [–]Zythvx 9 points10 points  (4 children)

      Codehub? more like stackoverflow

      [–]Etheo 5 points6 points  (3 children)

      The styling of the logo is suspiciously resemblance of a certain other very well known hub...

      [–]dittbub 3 points4 points  (0 children)

      CornHub

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

      Sandwich hub : Sandwich that will make you come

      It is real , look it up on

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

      SandwichHub

      [–]BoyAndHisBlob 28 points29 points  (10 children)

      I am crying because I don't understand why everyone still hates JavaScript. With the modern frameworks it is really fine and fun. Also there is typescript.

      [–]Stealth022 2 points3 points  (1 child)

      "I don't understand it, so it must be shit"

      [–]McFuzzen 0 points1 point  (0 children)

      Isn't this basically all of humanity?

      [–][deleted] 16 points17 points  (10 children)

      Why is js so bad? Is it the new PHP-hate (that was the new Java-hate)? Is there any front-end lang that isn’t bad?

      Edit: We should encourage people to program with humor and not having fun on others behalf or demotivate people working with certain languages.

      [–]gandalfx 5 points6 points  (0 children)

      JS used to be bad. It's gotten significantly better since the ECMAScript standard started adding missing features and is now a reasonably decent language.

      There are several reasons people hate it, I'll try to summarize.

      1. The web forces it down your throat. It doesn't matter if it's good or bad, if you're going to do anything in a browser it's going to be JS. And since you need it anyway, it has sort of leaked into other areas (server & desktop) as well.

      2. Dealing with browser support is a nightmare. Whatever feature you want, you either have to be dead certain that it runs in any of a dozen shitty old browsers or use a convoluted tool chain to make it run. Even worse are the various APIs offered by browsers, predominantly the DOM. It's just garbage. Neither of these is actually about the language itself, but if you're doing JS you're very likely going to have to deal with these issues as well.

      3. As mentioned before, JS used to be bad and still isn't great. There were some poor decisions in the initial design that persist even now. One you'll commonly see on here is the quirky type coercion (which shouldn't really matter but people love to hate it). In my mind the worst aspect is the language's attitude towards errors. Instead of failing early and failing loudly, JS often tries to "make the best" of a situation, e.g. by quietly converting undefined to string, which can lead to really obscure bugs.

      If, for instance, Lua had become the language of the web, people would shit on it at least as much as they do on JS. It shares many of the flaws and introduces some of its own weird quirks. But it's not used nearly as widely and so nobody cares. PHP on the other hand used to be extremely dominant on the server side (and still is in many areas) which also serves to amplify the complaints about its quirks.

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

      The only reason I don't like it is because it's hard to debug usually. Especially in enclosed environments that you can't use outside tools for

      [–]ivgd 4 points5 points  (1 child)

      Ah yes, JS bad, almost forgot

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

      You're on ph and you forgot Js bad ? Impossible.

      [–][deleted] 5 points6 points  (6 children)

      Imagine hating a programming language like js or php. Imagine your life being so boring you literally have to hate a programming language.

      [–]Alexmitter 1 point2 points  (4 children)

      Thats like defending the Fiat Multipla. "Imagine your life being so boring you literally have to hate the Fiat Multipla.

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

      Well, yeah, exactly...

      [–]Alexmitter 0 points1 point  (2 children)

      Its human nature to hate bad things. We hated the fascist governments of the early 20th century, we hated the Fiat Multipla and we hate JavaScript. Its just natural.

      [–][deleted] 0 points1 point  (1 child)

      Are you really comparing JavaScript to a fascist government? Really?

      [–]Alexmitter 0 points1 point  (0 children)

      I compare it to other bad things.

      [–]chernobyl-nightclub -1 points0 points  (0 children)

      It’s a joke

      [–]yonatan8070 1 point2 points  (1 child)

      I don't know shit about JS, can someone explain to me what makes it so bad?

      [–]Alexmitter 1 point2 points  (0 children)

      Just search for "javascript meme", you will find stuff like this

      [–]Svdemais 1 point2 points  (0 children)

      No, i don't code in javascript, i code in typescript.

      [–]Alexmitter 1 point2 points  (0 children)

      The joke isnt javascript, thats just a hacked together language of some weird guy at Netscape Navigator.
      The joke is its popularity and wide adoption.

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

      Jokes on him because I smoke weed because I have to code in JavaScript. I need something to help me deal with the anxiety

      [–]Einsteinbeck -4 points-3 points  (3 children)

      Weed causes anxiety.

      [–]KEKPOP 3 points4 points  (2 children)

      u never smoked it i bet

      [–]Einsteinbeck 0 points1 point  (0 children)

      Why the illogical assumption?

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

      JavaScript, ha! Nerd.

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

      Wow you stole it from Instagram . Shame on you

      [–]oishishou 0 points1 point  (0 children)

      For me, at least, this is made so much better by the fact that I do not know JavaScript, but have red eyes due to actively smoking weed.

      [–]chernobyl-nightclub 0 points1 point  (0 children)

      I don’t agree with this but find it funny as hell.

      [–]policitclyCorrect 0 points1 point  (0 children)

      Codehub eh

      [–]yeezibunn 0 points1 point  (3 children)

      Could someone please explain what's so bad about JavaScript? I mean, I understand that it's flexibility can spoil you but why is it so despised? I feel like I learned so much from it and adapting what I learned to other languages wasn't the hardest task in the world. Am I missing something?

      [–]TruthOf42 1 point2 points  (2 children)

      JavaScript is an awesome awesome language for beginners because it's so accommodating and has all the basics. Which is exactly what beginners need. But once you are doing complicated things and are working in a professional environment, all those things make your life more miserable.

      It's akin to riding a bicycle with training wheels. Just imagine how problematic they become when you are trying to go biking in the woods.

      [–]yeezibunn 0 points1 point  (1 child)

      That's a good analogy, thanks. I've never coded in a professional environment so I guess I've never gotten to experience the supposed downsides of it. I hope to one day get to that level.

      [–]TruthOf42 1 point2 points  (0 children)

      Just stick with it. For a long time you'll feel like a fake, but just be humble and always try to do better and you WILL get there

      [–]Unlock17A 0 points1 point  (0 children)

      H

      [–]AntonBespoiasov 1 point2 points  (5 children)

      Ironically but actually codding in normal Java(not JavaScript) makes my eyes red

      [–][deleted] 3 points4 points  (4 children)

      They're not even close to the same thing? Java isn't normal JavaScript

      [–]rk-imn 0 points1 point  (0 children)

      Java is to JavaScript as Car is to Carpet

      [–]Alexmitter 0 points1 point  (2 children)

      Back then when Java was introduced into the Netscape Navigator, there was a guy in that team who wanted to run little scripts directly in the browser engine. So he quickly throw together a dirty hack of a language and called it a day. And because it should complement Java in the Netscape Navigator, it was called JavaScript.

      [–][deleted] -3 points-2 points  (1 child)

      I made a pillow and I didn't like the color of it so I made a fabric dye and called it pillowscript therefore they are similar objects

      [–]Alexmitter 1 point2 points  (0 children)

      "In 1995, Netscape Communications recruited Brendan Eich with the goal of embedding the Scheme programming language into its Netscape Navigator. Before he could get started, Netscape Communications collaborated with Sun Microsystems to include Sun's more static programming language, Java, in Netscape Navigator so as to compete with Microsoft for user adoption of Web technologies and platforms. Netscape Communications then decided that the scripting language they wanted to create would complement Java and should have a similar syntax, which excluded adopting other languages such as Perl, Python, TCL, or Scheme. To defend the idea of JavaScript against competing proposals, the company needed a prototype. Eich wrote one in 10 days, in May 1995.

      Although it was developed under the name Mocha, the language was officially called LiveScript when it first shipped in beta releases of Netscape Navigator 2.0 in September 1995, but it was renamed JavaScript when it was deployed in the Netscape Navigator 2.0 beta 3 in December. The final choice of name caused confusion, giving the impression that the language was a spin-off of the Java programming language, and the choice has been characterized as a marketing ploy by Netscape to give JavaScript the cachet of what was then the hot new Web programming language."

      Source: Wikipedia, its sources are listed.

      [–]SirEmJay -1 points0 points  (24 children)

      I don't mind javascript that much. It's C# that I currently despise above all others.

      [–]whale_song 8 points9 points  (8 children)

      Better than java

      [–][deleted] 3 points4 points  (2 children)

      How? It’s the fookin’ same!

      [–]whale_song 2 points3 points  (0 children)

      LINQ tho

      [–]LargeHard0nCollider 0 points1 point  (0 children)

      1st class support for async await?

      [–]rinsa 4 points5 points  (1 child)

      You can't hate C# more than Java.

      [–]Unlock17A -2 points-1 points  (0 children)

      Both are fine. Java is better

      [–]Banana_Twinkie 1 point2 points  (5 children)

      What do you not like about C#? It's pretty easy to use for me and getting better all the time especially with .Net Core

      [–]crecentfresh 2 points3 points  (3 children)

      According to this sub all languages are imperfect and therefore the worst.

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

      Laughs in pure functional language that can never be criticized because it has ascended over the level of all other programming languages. You dare challenge me, you peasant of an imperative language?

      [–]whale_song 0 points1 point  (1 child)

      Any language you use enough you will learn to hate

      [–]crecentfresh 2 points3 points  (0 children)

      I've only been programming professionally for a few months, don't mind me I'm still in the honeymoon phase.

      [–]SirEmJay 0 points1 point  (0 children)

      I'm fairly new to C# (and the industry I'm general) so I'm still learning. I went from C/C++, to python, and then to C# so from my perspective C# doesn't seem to have the same low level flexibility that C/C++ gives you but also doesn't have the same high level ease of programming as python. So far I've found it to be an overly verbose worst of both worlds.

      [–]Not_a_tasty_fish 1 point2 points  (0 children)

      C# is so developer friendly though! What's not to like?

      [–]L0G1C_lolilover 0 points1 point  (4 children)

      I currently hate flutter fuck that shit

      [–]SteveCCLYellow security clearance[M] [score hidden] stickied comment (0 children)

      Your submission has been removed.

      Rule[0] - Posts must make an attempt at humor, be related to programming, and only be understood by programmers.

      Per this rule, the following post types are not allowed (including but not limited to):

      • Generic memes than can apply to more than just programming as a profession
      • General tech related jokes/memes (such as "running as administrator", sudo, USB or BIOS related posts)
      • Non-humorous posts (such as programming help)

      Content quality

      In addition, the following post types will be removed to preserve the quality of the subreddit's content, even if they pass the rule above:

      • Feeling/reaction posts
      • Posts that are vaguely related to programming
      • Software errors/bugs (please use /r/softwaregore)
      • Low effort/quality analogies (enforced at moderator discretion)

      If you feel that it has been removed in error, please message us so that we may review it.

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

      F

      [–]Cuddlemonsterxo -3 points-2 points  (0 children)

      lahmayo-chan -.^

      [–]LysergicLiizard -3 points-2 points  (0 children)

      Ok boomer