Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
hobbesmaster
Jan 28, 2008

if smythe is an admin can he make shaggar an ik so he can perma 6 hr probate subjunctive?

Adbot
ADBOT LOVES YOU

bomb
Nov 3, 2005


js owns es6 owns react owns node owns web owns owns owns

also react native owns!! if ur having issues with datetime just use momentjs

bomb fucked around with this message at 21:41 on Aug 17, 2016

Mao Zedong Thot
Oct 16, 2008


bomb posted:

js owns es6 owns react owns node owns web owns owns owns

also react native owns!! if ur having issues with datetime just use momentjs

if ur having issues with padding stryngs just use left-pad!

Shaggar
Apr 26, 2006

bomb posted:

js owns es6 owns react owns node owns web owns owns owns

also react native owns!! if ur having issues with datetime just use momentjs

haha yeah just download another 400k of javascript libraries to do one of the most standard things. thanks javascript. gently caress yoooouuuu!!!!!!!

also IE handles the times correctly every time. its loving failfox and chome that each do it wrong and they fight over which way to do it wrong. fuckkkkkkkk yooooooooouiuuuuu


javascript is the biggest pile of poo poo ever and is on par with aids in terms of human suffering.

darthbob88
Oct 13, 2011

YOSPOS

bomb posted:

js owns es6 owns react owns node owns web owns owns owns

also react native owns!! if ur having issues with datetime just use momentjs

quote:

node owns
Noope. Javascript is only tolerable as a frontend language because it's got a near-monopoly. Why in God's name would you want to shoehorn it into the backend, especially when there are actual good languages like C# that you can use?

AWWNAW
Dec 30, 2008

npm install express && like the hot pockets tweet for me while you're at it too thanks

Sapozhnik
Jan 2, 2005

Nap Ghost

Shaggar posted:

haha yeah just download another 400k of javascript libraries to do one of the most standard things. thanks javascript. gently caress yoooouuuu!!!!!!!

also IE handles the times correctly every time. its loving failfox and chome that each do it wrong and they fight over which way to do it wrong. fuckkkkkkkk yooooooooouiuuuuu


javascript is the biggest pile of poo poo ever and is on par with aids in terms of human suffering.

swr

abraham linksys
Sep 6, 2010

:darksouls:
yeah just use moment; it's 19k minified unless you need time zone stuff

js's date handling is an atrocity but so is most of what counts as its """"standard library."""" the nice thing about js in 2016 is that dependency management is trivially easy so it's nbd to throw lodash and moment in your app so you have the utilities a reasonable language gives you for free

Space Whale
Nov 6, 2014
So this big huge array of arrays (of arrays!) finally yielded meaningful information because I know what the gently caress a hash is and the guy before me clearly didn't.

But what kills me is that if you have an array/object/thing? (wtf) wherein you had an array, then slap named properties onto it, you have to iterate with for in, you can't just use a regular for loop, since it's not an array anymore, you're iterating over the properties of the object.

So I had to do this:

code:
for (var k in fooBarBazArray[i].FooBarBaz[j]) {
    var ptvelement = fooBarBazArray[i].FooBarBaz[j][k];
    if (typeof ptvelement === "number") {
        products[i].Metrics[metricName] += fooBarBazArray[i].FooBarBaz[j][k];
    }
}
But at least now I go through the big pile of poo poo once, not multiple loving times, and in some of those multiple loving calls it's at least apparently o(n²)

WTF, JAVASCRIPT?!?!?!

edit: Also the way one just does a hash in JavaScript is nice and weird too coming from C#

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
At this point I'm basically only interested in jobs that won't put me anywhere near js/ruby/python/etc

Space Whale
Nov 6, 2014

MALE SHOEGAZE posted:

At this point I'm basically only interested in jobs that won't put me anywhere near js/ruby/python/etc



You realize that the internet is where everything goes, and not just that, the browser is effectively the sandbox that poo poo just runs these days, right?

:suicide:

Bloody
Mar 3, 2013

MALE SHOEGAZE posted:

At this point I'm basically only interested in jobs that won't put me anywhere near js/ruby/python/etc

same. i have turned down jobs on the basis that they use poo poo technology

Bloody
Mar 3, 2013

Space Whale posted:



You realize that the internet is where everything goes, and not just that, the browser is effectively the sandbox that poo poo just runs these days, right?

:suicide:

nah, the browser is just one of the lovely user interfaces you have to support

abraham linksys
Sep 6, 2010

:darksouls:
i like working on products people actually interact with and enjoy using, and i don't want to make native mobile apps, so front-end dev is the life for me :toot:

Shaggar
Apr 26, 2006
nobody enjoys interacting with websites, they just deal with it.

Space Whale
Nov 6, 2014

Bloody posted:

nah, the browser is just one of the lovely user interfaces you have to support

So far it seems like THE ONLY.

I'd kill to do WPF, or hell, Qt or something.


Bloody posted:

same. i have turned down jobs on the basis that they use poo poo technology

My mistake was "hey, let's consult, go around, see different ways things go down, learn from the mistakes" without realizing it could be poo poo like "gigantic spaghetti tangle of JavaScript".

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Space Whale posted:



You realize that the internet is where everything goes, and not just that, the browser is effectively the sandbox that poo poo just runs these days, right?

:suicide:

sure, but i'd rather be the rear end in a top hat pooping than be the poop

Space Whale
Nov 6, 2014

MALE SHOEGAZE posted:

sure, but i'd rather be the rear end in a top hat pooping than be the poop

Oh, you mean go work for Mozilla?

Well there's an idea I guess.

kitten emergency
Jan 13, 2008

get meow this wack-ass crystal prison
lol shaggar complaining about the size of js libs when he sucks ms cock on the daily

SQL server: 6gb
postgres: 32mb

.net framework: like 80mb???
node: like 8mb if that jfc

kitten emergency
Jan 13, 2008

get meow this wack-ass crystal prison
ms fanboys have some poo poo they can crow about but the size of libraries and frameworks and poo poo is not one of them

Shaggar
Apr 26, 2006

uncurable mlady posted:

lol shaggar complaining about the size of js libs when he sucks ms cock on the daily

SQL server: 6gb
postgres: 32mb

.net framework: like 80mb???
node: like 8mb if that jfc

what are you talking about.

oh no blimp issue
Feb 23, 2011

Space Whale posted:



You realize that the internet is where everything goes, and not just that, the browser is effectively the sandbox that poo poo just runs these days, right?

:suicide:

you could always do embedded!

Shaggar
Apr 26, 2006
do u not understand how javascript works compared to other languages?

Space Whale
Nov 6, 2014

Awia posted:

you could always do embedded!

OK How.

Besides "be willing to accept pay cut and have a github thing"

Bloody
Mar 3, 2013

learn C or FPGA bullshit

Bloody
Mar 3, 2013

i would rather write php professionally than verilog

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

uncurable mlady posted:

lol shaggar complaining about the size of js libs when he sucks ms cock on the daily

SQL server: 6gb
postgres: 32mb

.net framework: like 80mb???
node: like 8mb if that jfc

i dont have to download .net every time i close and open an application

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
yes i know about the cache just shuttup and let me have this

hobbesmaster
Jan 28, 2008

Space Whale posted:

OK How.

Besides "be willing to accept pay cut and have a github thing"

web poo poo pays more than stuff that needs an EE degree

Space Whale
Nov 6, 2014

Bloody posted:

learn C or FPGA bullshit

gently caress yeah using malloc now that I've programmed for a few years :toot:

OH GOD MANAGING MEMORY!?!?!?

Space Whale
Nov 6, 2014

hobbesmaster posted:

web poo poo pays more than stuff that needs an EE degree

gently caress finishing a 4 year, in loving EE, to take a pay cut.

I mean poo poo if you got a degree in stats and did ~data science~ that's even more $$$ right?

Bloody
Mar 3, 2013

nah embedded doesn't malloc

Space Whale
Nov 6, 2014

Bloody posted:

nah embedded doesn't malloc

All in the stack huh?

Bloody
Mar 3, 2013

yeah and generally very little dynamic allocation

Star War Sex Parrot
Oct 2, 2003

Space Whale posted:

All in the stack huh?
RULE 5: There shall be no use of dynamic memory allocation after task initialization.

http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf

necrotic
Aug 2, 2005
I owe my brother big time for this!

MALE SHOEGAZE posted:

i dont have to download .net every time i close and open an application

node isnt usually in the browser though

web tech sucks but it pays well and i didnt go to college so ill take it

JewKiller 3000
Nov 28, 2006

by Lowtax
moment.js is so loving bad

qntm
Jun 17, 2009

Space Whale posted:

So I had to do this:

code:
for (var k in fooBarBazArray[i].FooBarBaz[j]) {
    var ptvelement = fooBarBazArray[i].FooBarBaz[j][k];
    if (typeof ptvelement === "number") {
        products[i].Metrics[metricName] += fooBarBazArray[i].FooBarBaz[j][k];
    }
}

have you heard the good news about forEach

Space Whale
Nov 6, 2014

qntm posted:

have you heard the good news about forEach

So if I have the object

var o = {0: 1, 1:2, dick: "butt"};

would foreach iterate over 1 and 2 but not dick?

Adbot
ADBOT LOVES YOU

abraham linksys
Sep 6, 2010

:darksouls:

JewKiller 3000 posted:

moment.js is so loving bad

my only beef is with its mutable api and they're working on adding an immutable/frozen mode (https://github.com/moment/moment-rfcs/pull/2) so that's not gonna be an issue in the future. like i reckon if that feature never comes to pass we'll have a better library within the next year or two take moment's place

the state of js's "standard lib" is dire and it's a drat shame, but tbf it's not like other languages don't have similar problems (see python's popular "arrow" package). i just wish there was any path forward for the shipped-with-runtime standard lib to be shaped up, but idk that would be

  • Locked thread