jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS 3v4l.org/ - Use this and post a link, if you need help with PHP/HackLang
I found some great Node.js/Express courses, the problem is they are from mid/late 2016, are they still relevant or did node/express change so much it wouldn't make sense using them?
it was like in 2010, react and angular didn't even existed back then
Brody Ross
you heard the meme, now hang your head in SHAAAAME
Ethan Wilson
easy there edgelord, everibody has to start somewhere, I pretty much teached myself php mysql and jQuery out of thin air
Jack Lopez
Yeah, that should be fine. I'm not sure exactly what's changed since then, but the core stuff should be the same.
Luis Butler
I'd like to develop a front-end + back-end for a media server. The basic idea is too have a simple authentication system after which you're presented with a dashboard and a few buttons, some which prompt for further input before sending a request. The back-end then parses the input and executes shell scripts.
Should I use node.js + express + cookie-parser + cookie-session for this or are there any other good alternatives? I'm not going to fuck around with any front-end libraries, just basic HTML+CSS+JS, it's small enough. I don't really like web development and just want this out of the way.
Colton Parker
>media server. plex
Thomas Evans
I already have plex running. I just want to make my own server running alongside for extra functionality, such as adding youtube links to download via youtube-dl and then parse via music brainz and adding torrents to rtorrent. I could use a webui but want 1 neat package for everything.
Gavin Bennett
any webapi developer here? i want to send computer generated files through api requests, would that save me bandwith or is better just send files directly? excel files, but they can be as big as 100MB sometimes.
Ryder Reed
What's the best Frontend framework to embed into my node.js app? I need some dynamic values to change after an HTTP request that returns some json data, nothing more than that. Anything light-weight and efficient to do the trick? Jquery won't cut it because its a value inside a string.
Cameron Adams
can't you do a pull request to plex to integrate in their services?
if you could pull that off it would be used for million of users
Gavin Murphy
I need to make a simple image slider. And I don't know shit about how to make one. pls help
Bentley Cooper
just take one premade breh, there's tons of it, literally google js slider
Austin Sanders
>feel like jerking off >go on /gif/ >find a random dump thread >don't know which vid to jerk off to >decide to make a random number generator to choose which image number I want >make it range from all the images >make it more elaborate and auto-scroll you to the number you rolled and point an arrow to it >make it have a roll button that's transparent and follows you in the corner so I can randomly roll which image I want to fap to >turn it into a userscript for future usage >aw yeah looks great >realize I no longer have a boner and don't wanna masturbate so get on anime basket weaving site to tell my autistic e-friends
>user script accidentally shares the webm on Facebook
Leo Collins
where can i host my website/projects as cheap as possible? i was thinking about github and aws.
Carter Russell
What build are you using? If its just php or plain html then x10freehosting or freehostingnoads. Aws doesnt allow hosting its for experimentation, but I think heroku does
Aiden Gonzalez
You know that feeling user? That's the /wedgie/ feeling. It's a feeling that can surpass ANY kind of boner. It's the feeling of your potential.
no matter where the fuck I place it the result is the same, any ideas?
Blake Miller
Arrow functions are still fucking shit if you have to use the code elsewhere, really such an odd addiction, who the hell thought >wow, writing function is so fucking tiresome, better change that
Is it because the video is position: fixed instead of absolute? Or is that intentional?
Lucas Foster
Lambda functions are for when you _don't_ need to reuse a function you dingus.
Cooper Cox
Yes, they're mainly intended for inline functions. And JavaScript does require a lot of inline functions, since it tends to involves a lot of callbacks.
David Williams
Wrong.
Jeremiah Lewis
It's because of browsers cross origin policy, nothing to do with javascript itself.
Aiden Gray
no u
Jaxon Kelly
>teached
Leo Diaz
Does Travis CI automatically install the dependencies listed in install_requires in setup.py? Can't ask any other general because I doubt they would know, and it's a Django package anyway.
*taught I realized I fucked up like a mintue after I posted it
Benjamin Howard
It just werks
John Kelly
I honestly don't understand grid-auto-rows with multiple values in CSS. I've went through the whole CSS grid guide at MDN and this is the only thing I can't grasp because it isn't explained.
What's grid-auto-rows actually doing here? How multiple values work?
TL;DR: What does this mean? grid-auto-rows: 100px 20px;
William Peterson
Actually a good question, lets say we create an identical copy of Discord or Visual code in native C++ or another language know for its "fastness", how much better would they perform than their JS counterparts, would the users even notice or care about a difference
There are new languages that are comin in to fight the old guard like RUST is called the succesor of C++ or Node is a better PHP etc. etc. but what about JS, is there anything that will dethrone it or is it impossible for now?
Lincoln Cook
Web Assambly - memeing but who knows-
Ethan Torres
Don't know shit about Web assembly but heard somewhere that its actually used WITH JS instead of replacing it.
Evan Campbell
>Don't know shit about Web assembly same
Matthew Cook
are you sure
Carter Anderson
Do you guys use a lot of npms in your Node projects? I see people using additional packages for every small piece of code instead of creating their own.
Brayden Bailey
>ironically thinking because he uses LISP, he's one to speak.
This is why millennial trash never get hired.
Kayden Harris
>implying there won't be a fucking turboautist who shats himself over worse font rendering of the c++ version
Jacob Sanchez
The problem is that developers can't agree on which language browsers should support. Google wanted Dart to be the alternative to JavaScript, but other companies refused and no one implemented it in their browsers. To make it viable, Google, Mozilla, Apple, Microsoft and possible Opera would have to reach an agreement, and none of them are interested in becoming dependent of someone else's property technology.
maybe a simple if instead of a ternary expression would suffice, since you practically don't have an else. or branchId = this.employment.branch || null; if the id will never be 0
Jack Taylor
Also if you're using typescript and know that the property is set you can do: const branchId = this.employment!.branch!.id
Nolan Campbell
c# has this since the last versions, it's the absolute best.
Henry Moore
Well first, web assembly isn't a language, it's a common bytecode that many languages will be able to compile to.
As of now, you can't just use wasm alone, there's no way to manipulate the DOM within webassembly. You have to have at least some layer of JS to do that stuff.
But webassembly isn't really meant to be used for that stuff anyway, it's more meant for more intensive computing like for in-browser games and stuff like that.
Michael Lee
I am learning Node.Js now as my first back-end "language" and i am scared if it goes to shit someday and i will have to learn new ones (i will probably but i'd like it not in fear of my preferred one dying) , how close are the back-end related technologies? Can you jump between them or are most completly different?
I don't think Node.js is going anywhere at this point unlike RoR and Spring. I will say though that since Node.js runs as a single threaded event loop, it's not going to be enthusiastically picked up by enterprises that care about stability.
Thomas Stewart
Arent they working on multi-threading? Node is a fairly young thing, its just developing
Jack Williams
New to TypeScript. totalUnits in the vals object literal has an initial value of 0. TS recognises it as a number. What am I doing wrong here, why is it thinking it is a string all of a sudden.
Btw I deleted the (vals['totalUnits'] as Number) part so no need to mention that.
Well it's JavaScript and that isn't going anywhere anytime soon. Node can come and go but JS is an integral part of browsers, part of the big three of languages (the others being HTML and CSS).
Leo Rivera
Only use square brackets for variable named properties. Use vals.totalUnits instead. Also it would pay showing us the declaration of "vals" and assigned types.
Parker Russell
Here's the relevant code.
vals.totalUnits on line 90 still brings up the same error. I have a bunch of errors and am not sure how to go about fixing them, would much appreciate a guiding review of anything that sticks out.
Because HTMLInputElements value is a string, and a number plus a string will create another string and not add them. Convert your value to a number first.
Grayson Ortiz
one is a number the other a string
of course you can do i < (form...
Thomas Brooks
>Convert your value to a number first. Yo I'm just using parseFloat cos that and parseInt are the only ways I know how to convert a value to a number right now.
You're now trying to parsing your HTMLInputElement as a number instead of its value.
James Rodriguez
Why do people prefer Python to JS when it comes to writing scripts or web scrapping?
Cooper Carter
Uh huh. Thank you for your patience.
I have set the type of the Form.getInputElements()['multiply_num'] as any, getting no error message.
I've been drinking, thinking is tough for me right now.
News update, I've written parseFloat((Form.getInputElements()['multiply_num'] as HTMLInputElement).value) and it's beginning to connect in the brain.
Cheers again for the assistance, now vals.totalUnits on line 90 is a number but the error message says type string is not assignable to type number, why does it think I'm attempting to turn it into a string
>Cheers again for the assistance, now vals.totalUnits on line 90 is a number but the error message says type string is not assignable to type number, why does it think I'm attempting to turn it into a string post the line
Thomas Williams
Essentially the same line 90 as in image posted except with dot notation instead of bracket notation
Aaron Sanders
You should probably use Number() instead of parseFloat()
Oliver Russell
Done. Also vals.drinks is now Array() instead of []
Camden Martinez
Does ayone use Laravel here? Is it possible to target the whole Laravel app to only use a specific schema in a database that has multiple schemas, where those other schemas are used by totally different apps?
Benjamin Howard
Nah, you can keep the square brackets notation for initialising arrays. Likewise for strings and objects. I use Number & String for it's prototypes or parsing in values (Array.from(), Object.keys, String(Val), Number(val), Boolean(val), etc).
Easton Lee
[] implicitly has an 'any' type, TS says. With Array() no such notice appears.
Ethan Thompson
Just have to proclaim my love for TS (TypeScript) by the way. I love how it forces me to check my code, since honestly my preferred approach to writing code is to write 'around' it first (i.e. test first, write afterwards) and TS works into that whole approach very well. It builds on the scaffolding around the code you write. Absolute godsend, and in case anybody is looking to make their JavaScript code more maintainable and intuitive to themselves and others, TypeScript is definitely the way to go.
Brayden Hernandez
One last TS question. 'Object.values' by itself brings up an error, saying "Property 'values' does not exist on type 'ObjectConstructor'". So I have re-set the type of 'Object' as 'any' according to advice online.
Is there any other way of solving this issue with Object.values, and, I assume, other Object methods like .keys and .entries? Because from what I understand, setting any as a type is something to avoid (if possible) and goes against the purpose of TS.
And one last general question. I read the term 'cast' a lot. Does the verb 'to cast' in the context of programming mean to assign a type to data?
That's why you either type the object with Array or CustomType[]. I wouldn't create your array with "Array()" because TS probably thinks is an "Array" type and not anything else meaning you can insert anything in to the array and no type checking would occur because it's still an array. In your case the type would be:
Probably need to update your tsconfig target with es2018
Connor Gutierrez
Thanks for the info, I'll refer back to it when I am more familiar with TS.
Thanks for the heads up.
Nathaniel Martinez
Holy shit you guys, Netflix posted some episodes of Jeopardy. I was mindlessly watching some and not doing too well with my answers.
The $1000 answer: What does PDF stand for? > Contestant 1 buzzes in and then can't think of what to say > Contestant 2 (confidently): "post script document"
I nearly spat my tea out, literally who doesn't know what a PDfFis? And I felt like a brainlet for most of watching that episode.
Did you know that using arrow functions inside classes does not make objects created from said classes inherit them using prototypes, instead they just create a new function altogether? I guess this isn't such a big deal on most cases but why would transpilers do this?