|
Arcsech posted:javascript as an ecosystem is a garbage fire of which we have never seen the like. this includes the browsers christ yes. i can deal with the language, but the absolutely batshit ecosystem has become a parody of itself
|
# ? Oct 8, 2016 11:57 |
|
|
# ? May 25, 2024 14:21 |
|
Zaxxon posted:
look at me! i'm doing something ridiculously stupid in a dynamically typed programming language and expecting the results to have any meaning at all! seriously though if you're doing this in JS you deserve any shitstorm that comes your way.
|
# ? Oct 8, 2016 12:10 |
|
i prefer languages that don't let you do that at all
|
# ? Oct 8, 2016 12:35 |
|
fart simpson posted:i prefer languages that don't let you do that at all well then maybe stop complaining about js and start using typescript or c#??? some people like the flexibility js offers. because honestly poo poo like this is why i stopped using c# alltogether code:
go play outside Skyler fucked around with this message at 12:57 on Oct 8, 2016 |
# ? Oct 8, 2016 12:53 |
|
go play outside Skyler posted:look at me! i'm doing something ridiculously stupid in a dynamically typed programming language and expecting the results to have any meaning at all! i don't see why it's unreasonable to expect object identities to matter when using objects as keys
|
# ? Oct 8, 2016 12:58 |
|
redleader posted:i don't see why it's unreasonable to expect object identities to matter when using objects as keys js's objects are keyed off strings and always have been. if you try to use an object as a key js just does obj.toString() which comes out as "[object Object]". why is that weird or unexpected behavior?
|
# ? Oct 8, 2016 13:04 |
|
redleader posted:christ yes. i can deal with the language, but the absolutely batshit ecosystem has become a parody of itself tbf that's mainly because of browser wars
|
# ? Oct 8, 2016 13:05 |
|
Strumpy posted:i work with a bunch of people that regularly come in at 11am or so. it's really great for me because i'm a morning person and generally get in by 8am. that's a lot of not having to listing to coworkers + getting a bunch of stuff done without minor distractions. i'll schedule any meetings after lunch and then spend the rest of the day pair programming, task managing, or helping out my team if they need it. if it wasn't for late starters i don't think i'd get any time to program. imo 11 is kind of pushing it. there's nothing hard about getting to work at a normal hour and having a productive day except for a bunch of lazy man-children who want to keep rolling out of bed at noon because that's when they used to schedule their classes like so: Soricidus posted:lol just lol if you work somewhere that people care what time you come and go. do you also have to fill in a detailed time card and wear a suit and tie? lol at your literal wage slave life
|
# ? Oct 8, 2016 13:08 |
|
Blinkz0rz posted:js's objects are keyed off strings and always have been. if you try to use an object as a key js just does obj.toString() which comes out as "[object Object]". why is that weird or unexpected behavior? it's bad because there is literally no plausible situation in which it is the desired or expected behavior. it should be an error. if you want to preserve the 'always coerce keys to strings' behavior for some bad reason then it should still be an error to use an object that does not override toString as a key.
|
# ? Oct 8, 2016 13:14 |
|
Blinkz0rz posted:js's objects are keyed off strings and always have been. if you try to use an object as a key js just does obj.toString() which comes out as "[object Object]". why is that weird or unexpected behavior? terrible programmer confession, but i actually didn't know that js turned everything into strings when using the values as keys
|
# ? Oct 8, 2016 13:14 |
|
i'm not saying js is a great language. but if you just read this book and follow simple practices like including jslint in your release workflow, you will be a-okay and before you say anything about needing to use a tool to program ... i dare you to write C# code without intellisense
|
# ? Oct 8, 2016 13:16 |
|
Blinkz0rz posted:tbf that's mainly because of browser wars i unno, i don't think we can blame the bower/gulp/grunt/webpack/etc/whatever situation on ie6
|
# ? Oct 8, 2016 13:18 |
|
When I have to some simple javascript for simple web front-end stuff, Ill do it with in pure functional javascript with jquery and its ok, its easy, its fast, it works But some time ago I made a medium-sized app for mobile using cordova. I used backbone.js and underscore and lots of other modern libraries and tried to keep it clean and well structured but it did eventually became this big ugly mess of code that its hard to understand and debug, and that I hate everytime I have to touch it again Javascript is not bad, its easy and flexible. Doing big complex stuff in javascript though, that's not easy without messing it up
|
# ? Oct 8, 2016 13:20 |
|
redleader posted:i unno, i don't think we can blame the bower/gulp/grunt/webpack/etc/whatever situation on ie6 what's wrong with bower/grunt? have you heard of gnu automake? autoconf? how about nuget packages? to me these tools are just a sign of the js language finally becoming something serious instead of just a bunch of script kiddies copying/pasting a "NO RIGHT CLICK" one-liner go play outside Skyler fucked around with this message at 13:23 on Oct 8, 2016 |
# ? Oct 8, 2016 13:21 |
|
Blinkz0rz posted:imo 11 is kind of pushing it. there's nothing hard about getting to work at a normal hour and having a productive day except for a bunch of lazy man-children who want to keep rolling out of bed at noon because that's when they used to schedule their classes like so: I get up at 7 like most adults. I go to work at about 11 or 12 because it is dumb and pointless to sit in rush hour traffic instead of travelling at quieter times of day, and also it is good to have some quiet hours at the end of the day when nobody's around to interrupt my concentration, and also it's nice to be out of the office in the mornings so I can go shopping while the shops are open, or receive deliveries, or w/e nothing to do with being a lazy manchild, everything to do with being in control of my life instead of being controlled by petty tyrants who insist on applying weird and pointless rules like "everybody must sit in rush hour traffic because ... uh ... that's just what adults do ok"
|
# ? Oct 8, 2016 13:21 |
|
Soricidus posted:I get up at 7 like most adults. I go to work at about 11 or 12 because it is dumb and pointless to sit in rush hour traffic instead of travelling at quieter times of day, and also it is good to have some quiet hours at the end of the day when nobody's around to interrupt my concentration, and also it's nice to be out of the office in the mornings so I can go shopping while the shops are open, or receive deliveries, or w/e but now your schedule is shifted from your team's by 2 hours which means that while you're waiting for traffic to clear the rest of your coworkers can't meet with you. similarly you can't meet with your teammates after they leave while you're finishing up. that's fine if you don't meet a lot but it breaks down when you have to schedule planning across an entire day and running a post-mortem is an exercise in futility because you can't get a calendar commitment from all of the stakeholders. if you work in an office, be in the office when the rest of the people are in the office so that you can work as a team. Blinkz0rz fucked around with this message at 13:30 on Oct 8, 2016 |
# ? Oct 8, 2016 13:26 |
|
Blinkz0rz posted:if you work in an office, be in the office when the rest of the people are in the office so that you can work as a team. https://www.youtube.com/watch?v=1nPVAh78n34
|
# ? Oct 8, 2016 13:31 |
|
go play outside Skyler posted:what's wrong with bower/grunt? have you heard of gnu automake? autoconf? how about nuget packages? it's not the tools, it's the sheer and absurd amount of tool churn
|
# ? Oct 8, 2016 13:32 |
|
Notorious b.s.d. posted:the problem with comic sans was ubiquity have you seen helvetica mate
|
# ? Oct 8, 2016 13:54 |
|
redleader posted:i don't see why it's unreasonable to expect object identities to matter when using objects as keys JavaScript code:
|
# ? Oct 8, 2016 13:54 |
|
qntm posted:
i think that would open up a whole other can of worms i don't know of any language who's toString() function would actually outpud a uuid. i don't think this would work
|
# ? Oct 8, 2016 14:07 |
|
Arcsech posted:javascript as a language isn't really worse than php or ruby or whatever really. its not good, but it's not the worst ever either two things which are inseparable are practically one thing
|
# ? Oct 8, 2016 14:14 |
|
go play outside Skyler posted:i think that would open up a whole other can of worms of course it wouldn't "work", it's a disgustingly ugly hack which undermines the fundamental structure of JavaScript at huge cost to performance however: JavaScript code:
|
# ? Oct 8, 2016 14:29 |
|
go play outside Skyler posted:what's wrong with bower/grunt? have you heard of gnu automake? autoconf? how about nuget packages? gnu automake and autoconf are giant underdocumented piles of bullshit shell code and perl that 99% of users don't actually understand, they just grep for likely-sounding config strings in the directory (because configuration is spread in a couple different places) and google around until it works. huh good comparison
|
# ? Oct 8, 2016 14:42 |
|
Arcsech posted:javascript as a language isn't really worse than php or ruby or whatever really. its not good, but it's not the worst ever either yeah javascript isn't any worse than the other 2 worst languages
|
# ? Oct 8, 2016 15:05 |
|
Idk i am doing an embedded linux thing that uses an autotools build and i like it I even have automated tests templated config file generation and all that fun stuff. and by adhering to conventions my openembedded image builder cross compiles, packages, and installs things in accordance with those conventions without me needing to go out of my way to make that possible
|
# ? Oct 8, 2016 15:06 |
|
qntm posted:of course it wouldn't "work", it's a disgustingly ugly hack which undermines the fundamental structure of JavaScript at huge cost to performance and how exactly would that work when you want to print out all the array keys of something? or serialize it to json? every language has its perks. i don't think this isn't one. it's just a side effect of something being designed one way and programmers making mistakes they shouldn't be doing in the first place in the meantime, strictly-typed languages won't allow me to *gasp* store a string and a number in the same array without writing convoluted poo poo code
|
# ? Oct 8, 2016 15:13 |
|
go play outside Skyler posted:in the meantime, strictly-typed languages won't allow me to *gasp* store a string and a number in the same array without writing convoluted poo poo code well yeah, this is a really stupid thing that you shouldn't be doing
|
# ? Oct 8, 2016 15:29 |
|
Soricidus posted:lol just lol if you work somewhere that people care what time you come and go. do you also have to fill in a detailed time card and wear a suit and tie? lol at your literal wage slave life
|
# ? Oct 8, 2016 15:32 |
|
Asymmetrikon posted:well yeah, this is a really stupid thing that you shouldn't be doing that's something you believe, not necessarly a fact. it's just a matter of opinion. apples and oranges. js programmers like to mix numbers and strings and take the risk that something will go wrong at runtime. others like the compiler to catch these errors early on at the cost of writing more code. i like js because it allows me to get poo poo done quickly when i know what i'm doing. i admit it's a little harder to maintain on a large scale than say c#, but i think you shouldn't put all your eggs in one basket anyways.
|
# ? Oct 8, 2016 15:34 |
|
Ruby is the best language because so far it's made me the most money.
|
# ? Oct 8, 2016 15:39 |
|
go play outside Skyler posted:i like js because it allows me to get poo poo done quickly when i know what i'm doing. i feel bad for the people that have to clean up after you.
|
# ? Oct 8, 2016 15:40 |
|
having a time punch and then having to manually fill a separate time sheet at the end of every week loving owns.
|
# ? Oct 8, 2016 15:42 |
|
makes me feel like an adult
|
# ? Oct 8, 2016 15:44 |
|
once upon a time I was contracted to a contractor to a primary four timesheets a week
|
# ? Oct 8, 2016 15:49 |
|
Doc Hawkins posted:Ruby is the best language because so far it's made me the most money. fffffuuuuuuuccccckkkkk yooooouuuuuu
|
# ? Oct 8, 2016 16:02 |
|
go play outside Skyler posted:in the meantime, strictly-typed languages won't allow me to *gasp* store a string and a number in the same array without writing convoluted poo poo code code:
|
# ? Oct 8, 2016 16:13 |
|
Blinkz0rz posted:fffffuuuuuuuccccckkkkk yooooouuuuuu
|
# ? Oct 8, 2016 16:16 |
|
I call it the McDonalds Fallacy, because I am a huge prick.
|
# ? Oct 8, 2016 16:18 |
|
|
# ? May 25, 2024 14:21 |
|
yeah, c#'s type system is just inadequate because there are no sum types/discriminated unions/whatever you want to call them. the iterating over object keys thing is kind of a reflection job, which is slow, but eh people do it all the time for serialization and all sorts of other applications.
|
# ? Oct 8, 2016 16:20 |