Off Topic > Off Topic
Programming Megathread
TheBlackParrot:
--- Quote from: Ono-Sendai on February 10, 2016, 12:36:42 PM ---why do you use nwjs over electron? I've always used the latter and am curious.
--- End quote ---
never knew the latter existed
$trinick:
--- Quote from: Ono-Sendai on February 10, 2016, 02:50:42 AM ---nice meme fam. do you have a job yet?
--- End quote ---
Yeah I work for a company that makes a core processor for credit unions.
Foxscotch:
[10:09:31 AM] Foxscotch: computer feelings can not be hurt
[10:10:36 AM] Foxscotch: computer feels only what you tell it to feel
also
--- Quote from: TheBlackParrot on February 10, 2016, 06:17:27 AM ---i'm probably not even using nwjs to its full extent but w/e
--- End quote ---
I wish people would be more clear
I can't figure out what this nwjs thing is supposed to do
I also can't figure out what the advantages are of using requirejs instead of just importing all the needed scripts in script tags
Otis Da HousKat:
I've been working with node on that shotgun website project and I can say that the entire platform and community surrounding node is complete rubbish. There is so much infighting between developers that no standards ever take hold. For any module I look up I can find a dozen others with similar names doing the same thing hooking into the same APIs which are all broken in their own forgeted up undocumented ways. And then there is the hell in which every developer assumes you would never want to perform some tasks synchronously over the natural asynchronous model that node imposes on everything...
I'll be glad when this is over.
Ono-Sendai:
--- Quote from: Otis Da HousKat on February 11, 2016, 10:37:42 AM ---I've been working with node on that shotgun website project and I can say that the entire platform and community surrounding node is complete rubbish. There is so much infighting between developers that no standards ever take hold. For any module I look up I can find a dozen others with similar names doing the same thing hooking into the same APIs which are all broken in their own forgeted up undocumented ways. And then there is the hell in which every developer assumes you would never want to perform some tasks synchronously over the natural asynchronous model that node imposes on everything...
I'll be glad when this is over.
--- End quote ---
this is a pretty common sentiment. i always try and select projects based on the number of github stars which can be pretty ineffective sometimes. you can promise-ify apis that arent written to be async depending on the situation but it can be a pain in the butt. another good option would be to use babel and use async/await as it makes writing async code way better but transpilers are already iffy if if your build process doesnt use them already (webpack/gulp/etc) you might as well not bother
node is pretty schizophrenic and npm library versions can also be hellish. i would suggest checking your node_modules into your source control to reduce problems. just a tip if you arent doing it already
--- Quote from: Foxscotch on February 11, 2016, 10:17:51 AM ---[10:09:31 AM] Foxscotch: computer feelings can not be hurt
[10:10:36 AM] Foxscotch: computer feels only what you tell it to feel
alsoI wish people would be more clear
I can't figure out what this nwjs thing is supposed to do
I also can't figure out what the advantages are of using requirejs instead of just importing all the needed scripts in script tags
--- End quote ---
nwjs and electron give you a webkit context and you can basically create a local webapp using nodejs. its a pretty easy way to write cross platform gui applications. require.js/AMD and common.js etc are module import systems which make it easy to split your code across multiple files. you should write javascript in a way where everything is a small module that does one specific purpose. theres no other way to build 'large' javascript applications that are also maintainable. there are programs where you can concatenate all your dependencies together and minify them to reduce network usage
--- Quote from: $trinick on February 10, 2016, 02:43:38 PM ---Yeah I work for a company that makes a core processor for credit unions.
--- End quote ---
hey thats cool. im at a web startup now doing fullstack development. theres lots of memes but it pays pretty well so i cant complain even though its kinda monkey coding tbh