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
gonadic io
Feb 16, 2011

>>=

Sapozhnik posted:

no escaping to worry about in non-degenerate cases so you can whip up a parser for it in like 10 loc

don't roll your own parser for common formats

Adbot
ADBOT LOVES YOU

gonadic io
Feb 16, 2011

>>=
just broke prod because the minimiser which we don't run in test failed.
one of the actual js guys diagnosed it as

quote:

The problem is that <app> doesn't use babel to transpile the arrowfunctions

wtf does any of this mean?

MononcQc
May 29, 2007

gonadic io posted:

just broke prod because the minimiser which we don't run in test failed.
one of the actual js guys diagnosed it as


wtf does any of this mean?

the minimiser works on an ecmascript version that the actual code developed does not use -- they likely run a newer one -- and they run a transpiler (babel) to convert from one ecmascript standard version to the other so the entire toolchain can work on the same codebase.

This is normal in js land since front-end browsers tend to support older poo poo than what the backend devs want, so they do whatever they need with whatever version on the backend and then transpile down to the front-end folks.

cinci zoo sniper
Mar 15, 2013




gonadic io posted:

just broke prod because the minimiser which we don't run in test failed.
one of the actual js guys diagnosed it as


wtf does any of this mean?

so, bear with idiot me. if i remember correctly, babel is a javascript "compiler" that transforms code between various dialects and versions of javascript, and is usually used so you can write in <modernthing> and then deploy to internet explorer 6 or whatever without breaking compatibility. sounds like it is failing to parse newly added syntactic sugar for oop

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

Arcsech posted:

my god, i have never been more grateful for our mediocre CI/CD system.

how do people live like this???

hah.

i'm not crying.

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

Powerful Two-Hander posted:

also I might be literally satan here but I detest popups and instead use modals

hi, satan

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

cinci zoo sniper posted:

so, bear with idiot me. if i remember correctly, babel is a javascript "compiler" that transforms code between various dialects and versions of javascript, and is usually used so you can write in <modernthing> and then deploy to internet explorer 6 or whatever without breaking compatibility. sounds like it is failing to parse newly added syntactic sugar for oop

[...document.querySelectorAll('.post')].forEach(post => post.textContent = 'poop');

that thing inside the forEach function call is an arrow function.

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
and basically that's shorthand for
JavaScript code:
function(post) {
	post.textContent = 'poop';
}

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


gonadic io posted:

just broke prod because the minimiser which we don't run in test failed.
one of the actual js guys diagnosed it as


wtf does any of this mean?

just lol if you have enough js getting loaded for it to be worth minifying it

gonadic io
Feb 16, 2011

>>=
ask me about my company starting not one, but two greenfield angular 1 apps in tyool 2017

cinci zoo sniper
Mar 15, 2013




gonadic io posted:

ask me about my company starting not one, but two greenfield angular 1 apps in tyool 2017

ask me about my financial company running php + mysql stack for everything

gonadic io
Feb 16, 2011

>>=

cinci zoo sniper posted:

ask me about my financial company running php + mysql stack for everything

could be worse. not a lot worse mind you.

cinci zoo sniper
Mar 15, 2013




gonadic io posted:

could be worse. not a lot worse mind you.

it was worse until i forced phase-out of mongodb

gonadic io
Feb 16, 2011

>>=

cinci zoo sniper posted:

it was worse until i forced phase-out of mongodb

lmao

cinci zoo sniper
Mar 15, 2013





we're also becoming friends with postgre!!

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Wheany posted:

and basically that's shorthand for
JavaScript code:
function(post) {
	post.textContent = 'poop';
}

in this example, yeah

but arrow functions have some pretty significant differences from regular functions, the main one being that they're lexically scoped and don't have their own locally-bound this.

akadajet
Sep 14, 2003

the talent deficit posted:

i mean it's literally the long term support release. and it doesn't work without a workaround that amounts to `don't use this ever`

how to reproduce:

install the node 6.x lts release, type `npm install npm@latest`

node 8 has been out for awhile and was always slated to get an lts release (it currently is the latest lts). there was never a reason to stay on 6 when 8 was out.

akadajet fucked around with this message at 14:36 on Nov 2, 2017

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
there's never a reason to use node, ever

akadajet
Sep 14, 2003

CRIP EATIN BREAD posted:

there's never a reason to use node, ever

it's better than the alternatives

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


how can people gently caress up a merge so bad? I suck at using svn but even I know that merging a branch to trunk should *probably* include all the folders in the branch and not just the ones that were additive only but no, they merged about 50%of the changes and then took a new branch that unsurprisingly didn't work

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat

Powerful Two-Hander posted:

how can people gently caress up a merge so bad? I suck at using svn but even I know that merging a branch to trunk should *probably* include all the folders in the branch and not just the ones that were additive only but no, they merged about 50%of the changes and then took a new branch that unsurprisingly didn't work

svn.txt

HoboMan
Nov 4, 2010

akadajet posted:

it's better than the alternatives

lol, no

Shaggar
Apr 26, 2006

akadajet posted:

it's better than the alternatives

lol source ur quotes

HoboMan
Nov 4, 2010

i guess you are probably correct if you mean the alternatives in the domain of server-side javascript interpreters

VikingofRock
Aug 24, 2008




cinci zoo sniper posted:

we're also becoming friends with postgre!!

Wait I thought the YOSpinion was that postgres was good?

Main Paineframe
Oct 27, 2010

it's supported in everything except IE, Edge, and Opera Mini, so that's 90% of users. good enough for me

gonadic io posted:

just broke prod because the minimiser which we don't run in test failed.
one of the actual js guys diagnosed it as


wtf does any of this mean?

someone was writing their code using Javascript 6 (aka ES6) syntax, but your minimizer only understood Javascript 5 (aka ES5) syntax

a tool called Babel exists that will convert ES6 syntax to ES5 syntax for the sake of tools and browsers that haven't been updated to handle the new syntax yet, and the JS guys say you should add it to your build process and run the JS through that before you run it through the minimizer

in general, web devs have this annoying tendency to use new stuff as soon as it's added to the language, without waiting for silly things like "browser support" or "clearing up vague or poorly-worded parts of the spec", and it's caused all sorts of trouble in the web

cinci zoo sniper
Mar 15, 2013




VikingofRock posted:

Wait I thought the YOSpinion was that postgres was good?

yes it is, the joke is that we are just starting to adopt it in 2k17

akadajet
Sep 14, 2003


tough talk from a trump guy

cinci zoo sniper
Mar 15, 2013




wish me luck im touching https://plot.ly/dash/ for a weekend

akadajet
Sep 14, 2003

cinci zoo sniper posted:

wish me luck im touching https://plot.ly/dash/ for a weekend

daesh framework for python

cinci zoo sniper
Mar 15, 2013




akadajet posted:

daesh framework for python

it's shiny for python basically since i really don't want r in prod, even if its intranet website writte by a coworker who is an r gnugnard

gonadic io
Feb 16, 2011

>>=

cinci zoo sniper posted:

yes it is, the joke is that we are just starting to adopt it in 2k17

god i wish this company was starting to adopt it

cinci zoo sniper
Mar 15, 2013




gonadic io posted:

god i wish this company was starting to adopt it

what are you on, sybase?

gonadic io
Feb 16, 2011

>>=

cinci zoo sniper posted:

what are you on, sybase?

mysql

cinci zoo sniper
Mar 15, 2013





oh rip. we had some fuckiness when some of our mysql replicas became mariadb but then not (dont ask), but all is good and well now and no new product will be made with anything but postgre

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


nearly got through a release without a fuckup and then whoops turns out a lovely 10 year old service uses inline SQL with zero error handling so blew up

Ellie Crabcakes
Feb 1, 2008

Stop emailing my boyfriend Gay Crungus

gonadic io posted:

could be worse. not a lot worse mind you.
Could be. Coldfusion is still in use.

CRIP EATIN BREAD posted:

there's never a reason to use node, ever
There is precisely one: starting a node project at a lovely company you plan on leaving so they will expend resources in inevitably-fruitless attempts to polish that turd and be cursed forever with the sort of developer who willingly subjects themself to it.

Ciaphas
Nov 20, 2005

> BEWARE, COWARD :ovr:


holy loving lmao, coldfusion

W O W that's a blast from the past

cinci zoo sniper
Mar 15, 2013




Ciaphas posted:

holy loving lmao, coldfusion

W O W that's a blast from the past

i remember making website in macromedia dreamweaver :colbert:

Adbot
ADBOT LOVES YOU

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat

cinci zoo sniper posted:

i remember making website in macromedia dreamweaver :colbert:

dreamweaver received an update on october 19, 2017

  • Locked thread