|
The Leck posted:give us barrabas!
|
# ? May 4, 2016 00:20 |
|
|
# ? Jun 3, 2024 21:56 |
|
PleasureKevin posted:anyway look like java script bout to do it! also Babel looks terrible, use typescript if you're gonna go that direction
|
# ? May 4, 2016 16:05 |
|
is es6 good?
|
# ? May 4, 2016 16:59 |
|
yard salad posted:is es6 good?
|
# ? May 4, 2016 17:18 |
|
lmao what the gently caress
|
# ? May 4, 2016 17:21 |
|
i actually like it. but its basically unrecognizable from old js, especially with newfangled SPA frameworks
|
# ? May 4, 2016 17:28 |
|
Flat Daddy posted:i actually like it. how well does it work with angular 2.
|
# ? May 4, 2016 18:01 |
|
yeah the export/export default and using curly brackets sometimes for imports but not other times fucks me up all the time
|
# ? May 4, 2016 19:14 |
|
basically in that example if you docode:
its worse when using libraries and you don't memorize all the flipping exports
|
# ? May 4, 2016 19:19 |
|
somebody RP a javascript zealot and defend this, please.
|
# ? May 4, 2016 19:30 |
|
GameCube posted:somebody RP a javascript zealot and defend this, please. you can find almost everything in this screenshot in python, c#, and poo poo. except for the JSX. but there's nothing wrong with JSX, it just gets compiled to function calls.
|
# ? May 4, 2016 21:33 |
|
GameCube posted:somebody RP a javascript zealot and defend this, please. declarative code is easier to maintain than procedural code
|
# ? May 4, 2016 21:43 |
|
Flat Daddy posted:i actually like it. good, "old" JS was poo poo tier all around though talking about es6 now is all kinds wasted breath, the only place to ever use JS is in the front end and no way in hell will anyone be able to practically use it in the front end for at least 10 years
|
# ? May 4, 2016 23:01 |
|
My Linux Rig posted:good, "old" JS was poo poo tier all around
|
# ? May 4, 2016 23:06 |
|
GameCube posted:somebody RP a javascript zealot and defend this, please. well some of these comments don't seem to detract from JS at all like "classes just like a real programming language" and "ruby!" except i guess they're accusing JS of copying ruby? the HTML is there because this is a React component. not necessarily native javascript. but HTML in the component is a shock at first in React. people are used to having /index.html /js/script.js and /css/style.css and juggling 3 files. in React you can do all 3 in one self-contained file that you can reuse. /button.jsx will be a button with it's HTML mark-up, CSS (optional) and logic in one file that you can import within other components and use again, only passing in different properties to change it how you like. it's very good.
|
# ? May 5, 2016 01:05 |
|
Ludwig van Halen posted:basically in that example if you do how do you gently caress up imports that badly
|
# ? May 5, 2016 01:13 |
|
Ludwig van Halen posted:instead of putting the {} around connect like you're supposed to, you import the default export of 'react-redux', who knows what that is, and you've given it a different name, so the 'connect' you imported won't work like you expect (it'll be a completely different function) t'd the errors messages aren't exactly helpful. PleasureKevin posted:the HTML is there because this is a React component. not necessarily native javascript. but HTML in the component is a shock at first in React. people are used to having /index.html /js/script.js and /css/style.css and juggling 3 files. in React you can do all 3 in one self-contained file that you can reuse. /button.jsx will be a button with it's HTML mark-up, CSS (optional) and logic in one file that you can import within other components and use again, only passing in different properties to change it how you like.
|
# ? May 5, 2016 01:24 |
|
what the hell even is this?
|
# ? May 5, 2016 01:29 |
|
Shaggar posted:what the hell even is this? someone who gets confused by features like modules, inheritance, class annotations, const, and lambda expressions. you know all that poo poo they have in other languages like c# and java as far as the inline html templates. i dont get it either.
|
# ? May 5, 2016 01:37 |
|
is it like some ruby thing? what is it?
|
# ? May 5, 2016 01:38 |
|
Shaggar posted:is it like some ruby thing? what is it? it's javascript w/ the react template stuff
|
# ? May 5, 2016 01:39 |
|
shaggar you might want to take another l@@k at javascript. it's good now
|
# ? May 5, 2016 01:40 |
|
hey i found shaggar's youtube acct https://www.youtube.com/watch?v=1e1zzna-dNw
|
# ? May 5, 2016 01:47 |
|
yard salad posted:is es6 good? yes
|
# ? May 5, 2016 04:38 |
|
akadajet posted:it's javascript w/ the react template stuff lmao
|
# ? May 5, 2016 04:39 |
|
akadajet posted:shaggar you might want to take another l@@k at javascript. it's good now lol no its not. its complete trash.
|
# ? May 5, 2016 04:39 |
|
like idk how loving brain dead you'd have to be to like javascript. you'd have to be the dumbest motherfucker on the planet.
|
# ? May 5, 2016 04:40 |
|
node is job handouts for people too dumb to grok python
|
# ? May 5, 2016 05:04 |
|
Shaggar posted:like idk how loving brain dead you'd have to be to like javascript. you'd have to be the dumbest motherfucker on the planet. shagger was right
|
# ? May 5, 2016 05:08 |
|
Jonny 290 posted:node is job handouts for people too dumb to grok python is python 2/3 split still a thing
|
# ? May 5, 2016 05:19 |
|
maybe if your janitoring old poo poo? all our shits 3
|
# ? May 5, 2016 06:10 |
|
btw the @connect thing is called a decorator i use them but i'm not really sure what they do
|
# ? May 5, 2016 06:44 |
|
c# and java have those too for doing dumb oop poo poo or w/e
|
# ? May 5, 2016 06:51 |
|
PleasureKevin posted:btw the @connect thing is called a decorator in python they're magic wrapping function things. i use them but don't care enough to find out how they work
|
# ? May 5, 2016 09:04 |
|
in python i think if you have a function called pooper which takes a function and returns a new function then you can use it as a decorator like @pooper but it seems unecessarily complicated idk
|
# ? May 5, 2016 10:26 |
|
python has no practical uses
|
# ? May 5, 2016 11:49 |
|
SpaceAceJase posted:python has no practical uses
|
# ? May 5, 2016 12:49 |
|
Condiv posted:
idk i guess they wanted default exports to be anonymous functions, so when you import it you can give it whatever name you want even if its the name of another export, idk why you'd want to do that tho
|
# ? May 5, 2016 14:23 |
|
Ludwig van Halen posted:basically in that example if you do i'll agree with this. they should have just stuck with commonjs
|
# ? May 5, 2016 14:34 |
|
|
# ? Jun 3, 2024 21:56 |
|
akadajet posted:someone who gets confused by features like modules, inheritance, class annotations, const, and lambda expressions. you know all that poo poo they have in other languages like c# and java basically that image is the reaction to es6 of somebody who knows, and is quite happy with, es5 if you do understand es5 but know nothing about es6, then being told that that code is 100% valid javascript is a bit alarming
|
# ? May 5, 2016 14:57 |