A butt complains about web development, all wacky hipsters get dudehurt
-
And now you did the work for me. See?
curse you and knowing my weak points!
curse you with a plague of kittens!
-
How does that work?
map calls the function with three parameters. The first is the element, the second is the index in the array (the third is the array itself).
parseInt takes two arguments. The second is an optional argument specifying the radix (the base) to expect the string in.
-
Also known as: Checking the function signature? What's that?
-
Yes, but you have to use Visual Studio, and fuck that shit
-
Where whitespace determines program structure; $DEITY forbid you mix tabs and spaces...
I would whack you with a 2×4 even if you mixed tabs and spaces in C/Java/Javascript code. Fuck people who cannot configure their editors in a sane manner./me continues to geek out about geometry
Come on, this is so elementary school that it's not hip anymore. People are choking on their ironic smoothies.
-
@RaceProUK said:
Where whitespace determines program structure; $DEITY forbid you mix tabs and spaces...
I would whack you with a 2×4 even if you mixed tabs and spaces in C/Java/Javascript code. Fuck people who cannot configure their editors in a sane manner.
Because only one person changes a file ever.
-
I would whack you with a 2×4 even if you mixed tabs and spaces in C/Java/Javascript code. Fuck people who cannot configure their editors in a sane manner.
Ok, yes, fine. But it will COMPILE and RUN. If the indentation ever gets messed up in a Python file, for whatever reason, your code is BROKEN. And we're not even talking bad editor settings. There's a million little SNAFUs that can mess up whitespace at some point, but only in Python can your VCS, for example, break your code by the act of you commiting it.
-
-
but only in Python can your VCS, for example, break your code by the act of you commiting it.
Why haven't I encountered a single tiniest case of this in a fucking DECADE?
-
Ah, the
I've never had that problem, therefore it doesn't exist
strawman.
-
Nope. I think this is more of the "doctor, it hurts me when I do this" kind of problems.
-
It must be nice, only working with VCS that you control.
-
Maybe in most shops that use to develop in Python, admins actually have a clue how to not misconfigure a VCS so it doesn't fuck indentation up...
-
PHP isn't the Worst Language Ever any more?
:'(
-
PHP isn't the Worst Language Ever any more?
:'(
I'm not sure "maybe less shit than Javascript" is exactly praise though.
-
And maybe your setup isn't typical of the wider world. SO how about you stop pretending you're so much fucking better than everyone else?
-
PHP isn't the Worst Language Ever any more?
I've been saying it's the second worst for ages now. Still infuriates me more though, since I try to do Real Serious Shitâ„¢ in PHP, while I only use JS for messing around with flashy buttons being more flashy most of the time.
-
Look man, all I'm saying is that making whitespace have a semantic meaning was a stupid decision in many people's eyes. And while inconsistent indentation in C/C++/JS/PHP/WhatTheFuckEver makes it ugly and harder to read, at least I can always count on my editor to find matching brackets. And even autoindent shit and NOT accidentally mess up the body of my
if
statement in the process, guaranteed.I didn't mess with Python that much, but I found it damned unreadable for the part when I did.
Also, there's other kinds of shit that is debatable on the correctness front, but it pissed me off none the less. But that bit is just my personal preferences, so I won't go into that.
-
Javascript does make it easier to shoot yourself in the foot, t
And kill your family in the process. And burn your house down, while you're at it.
-
I started trying to poke around with Python. Honestly, the spaces thing didn't bother me nearly as much as how difficult I found it to get started, to structure things, to figure out how importing works, and this whole 2 vs 3 debacle.
-
I started trying to poke around with Python. Honestly, the spaces thing didn't bother me nearly as much as how difficult I found it to get started, to structure things, to figure out how importing works, and this whole 2 vs 3 debacle.
Some of the best practices in Python still expect you to set global state in modules, which after node.js I find icky.
-
And maybe your setup isn't typical of the wider world.
No one denies that pythong is sensitive to whitespace. And that kind of freaks me out. But does that really cause a lot of problems in the real world, or is this like blakey moaning about newlines or whatever in file names?
-
Happens quite a bit here. We have a ton of minor SVN commits that are people fixing the one tab that an IDE auto-inserted into a file that uses spaces everywhere else, causing the script to fail to execute on the build servers.
-
@captain , @antiquarian , what about your favorite languages?
I can't think of any Haskell quirks offhand, but it's been a while since I've done any actual Haskell coding.
I don't know if it's a quirk, but Ada has an increased risk of RSI from all the typing you have to do to get anything done (typing speed > 50 wpm recommended).
> Tired of Querying in Antiquated SQL?
Someone obviously believes that new is good and old is bad. Just show him your , tell him to get off your lawn, and move on.
-
Someone obviously believes that new is good and old is bad.
Well, I'm sure a lot of people really like the LINQ way of doing stuff and never got comfortable with SQL. And obviously, LINQ has the advantage or taking care of ORM stuff here, which is always nice when it doesn't get in the way of performance or reduced power.
And I get that these guys are just marketing a tool.
We have a ton of minor SVN commits that are people fixing the one tab that an IDE auto-inserted into a file that uses spaces everywhere else, causing the script to fail to execute on the build servers.
Presumably people are using an IDE that isn't meant for pythong or something? Honestly, I've done a microscopic amount of that and I have no idea what's out there in the way of tools.
-
-
Which forces you to declare every single exception you might throw maybe once a year.
I've always thought this is a bit retarded. 90% of exception handling code I've seen has been "Well that happened. Want to try again?" or I'll just log this and try to move on.Because only one person changes a file ever.
Noone edits my code. It's "brillance" blinds people instantly.
-
@Yamikuronue said:
Yes, but you have to use Visual Studio, and fuck that shit
all hail the ViM master race!
-
-
You have scared me and made me hungry!
-
But then he says shit like this
I don't understand web development much, but if you're putting javascript on a server, you have to be .
Seriously, to me, Javascript is a language you have to "make work for you".
And what's that class thing.... there's no way that javascript is going to handle classes right. I really don't get that shit. It's not a fucking class, just because you add OO syntax and doll it up so that it can be parsed for font colors.
Stop trying to make classes in a language that is not strongly typed. It's bullshit that just leads to confusion.
You might as well write C# and make everything dynamic.
Call it something else. StorageBinOfShitAndMethods
Once you learn its quirks
Again, Javascript is a language you have to "make work for you".
If you ever find a language without quirks
Javascript has the least intuitive quirks.
At least most other languages comes with a standard library that abstracts the quirks. Javascript comes with plugins that make the quirks worse.
Mostly because people keep creating plugins to make Javascript behave like something else they like better, rather than use that other thing in the first place.
And the problem with that, is while you can restrict yourself to only those behaviors, you also have full unadulterated access to undermine that framework at any time.
It's all what we created C# and Java, to get away from in C++.
-
-
Mostly because people keep creating plugins to make Javascript behave like something else they like better, rather than use that other thing in the first place.
Huh? You mean stuff like jQuery? No, that's not making JavaScript better, that's making DOM handling better. Well, easier at least.
-
JavaScript classes are introduced in ECMAScript 6 and are syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax is not introducing a new object-oriented inheritance model to JavaScript. JavaScript classes provide a much simpler and clearer syntax to create objects and deal with inheritance.
-
I understand that ECMAScript isn't a library or plugin to Javascript, I get that.
But in the cases where plugins emulate that behavior, that's where I run into problems with it.
-
I find the people who complain the loudest about JavaScript are the people least able to use it properly. Once you learn its quirks (of which there's at least one that's a total ), it's actually pretty good.
Maybe; but they COULD have built it on TypeScript, which is: 1) way less quirky, and 2) still compiles to JavaScript.
-
You mean Node? They could have, and arguably should have. But at least Node apps can be written in it: https://www.npmjs.com/package/typescript
-
The problem with Silverlight is it was never going to get anywhere unless it had proper Linux/Unix support, which never happened.
Somehow the tool it was replacing, Flash, had a peak of something like 97% penetration despite never having proper Linux/Unix support.
So you'll excuse me if I say you're full of shit.
-
despite never having proper Linux/Unix support
Like, official installers on Adobe's site? The ones I used while I still needed the damned thing from time to time? That kind of support?
-
I started trying to poke around with Python. Honestly, the spaces thing didn't bother me nearly as much as how difficult I found it to get started, to structure things, to figure out how importing works, and this whole 2 vs 3 debacle.
The fact that is has 4 libraries to do any given task on "pip" (their idiot package manager thing), but 3 of them are invariably utterly broken on the latest version (even if you're avoiding 3) and the fourth only implements half of the operations you need.
-
Huh? You mean stuff like jQuery?
More likely stuff like underscore.js.
I would hope by now that people are aware that jQuery is a DOM library, not a JavaScript library.
-
You mean Node? They could have, and arguably should have.
So why didn't they?
OH RIGHT! Open source developers are all incompetent super-morons who have no fucking CLUE how to build decent software.
Forgot for a second.
-
Like, official installers on Adobe's site? The ones I used while I still needed the damned thing from time to time? That kind of support?
-
Yes, it's abandoned now, after 95% of people stopped caring anyway once HTML5 video started popping up on the web, and Chrome/Chromium had their own implementation for the other 5%.
It did have proper support and regular updates for years.
-
Yes, it's abandoned now, after 95% of people stopped caring anyway once HTML5 video started popping up on the web, and Chrome/Chromium had their own implementation for the other 5%.
I have to say, it's things like this that make browsers so bloated.
Oh, let's not spin up something external to handle video, let's build it into the browsers, that way every browser process uses half a gig of memory just to load a text file.
-
It did have proper support and regular updates for years.
I think it's safe you say you are literally the only Linux user I've ever heard of that wasn't constantly pissed-off about how out-of-date and buggy the Flash plugin for Linux was.
So you'll excuse me if:
I don't believe you.
-
-
I'm still bemused that people feel JS has fewer quirks than PHP. JS for all its retardary still seems more cromulent than the Personal Hell Pit.
-
JS has more quirks but is generally more consistent and easier to write for that reason, at least IMHO.
PHP is just a mess that mostly works well and doesn't surprise you as much most of the time.
Everything else being equal, I'd choose PHP over JS for 99% of the tasks.
-
I think it's safe you say you are literally the only Linux user I've ever heard of that wasn't constantly pissed-off about how out-of-date and buggy the Flash plugin for Linux was.
Yeah, Flash for Linux was always very badly optimized (not that it's working well on Windows, but on Linux it was always much worse). I honestly don't know anyone who was really satisfied with how it worked. Was it supported? Sure it was? Did it work? Sure it did. Did it work well? No, never.
Then again, there was a time when it was the only way to watch movies online. IIRC previously you had to download wmv's, so even Flash was a step up.