Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,720 members, 7,837,623 topics. Date: Thursday, 23 May 2024 at 08:29 AM

Javascript With NodeJS - Programming (3) - Nairaland

Nairaland Forum / Science/Technology / Programming / Javascript With NodeJS (16951 Views)

Lets Start A Real Web-deveopment Course Here Html+css+javascript+php+mysql / Which is more awesome to use for 'server-side programming', NodeJS or PHP? / Javascript In One PIX: Understand Javascript With Just A LOOK (2) (3) (4)

(1) (2) (3) (4) (5) (6) (7) (Reply) (Go Down)

Re: Javascript With NodeJS by Nobody: 6:17pm On Apr 14, 2015
Febup:
@ micodon

No need for you to be abusive if you have a different opinion to someone else. Node.js is used for creating a web server so there is no need for you to go on arguing about this, just accept it or leave it.

Yeah it can be used to create but its not , Accepting and sending Request to client is CGI there's more to Server however it just that Node can be built to also call external resources though. once again i see no reason for abuse, no one is here to convince anyone whatever you feel is correct to you then no problem, I just feel the need to correct things as its a common mistake people.
Re: Javascript With NodeJS by Nobody: 6:21pm On Apr 14, 2015
Febup:
Yes correct you use Node.js to create a web server, to listen for requests from JavaScript client application. JavaScript is a language and Node.js is a run-time environment.
The languages you mentioned are not a run-time environment so you need to get your facts right.

Every Language has a runtime environment , its during the runtime it has access to information such as variables, function, type check and all.
you get ?
Re: Javascript With NodeJS by Nobody: 9:42pm On Apr 14, 2015
@ pcguru1

Nice comments you've made. I got the information that Node.js is a run-time environment as described below:

Node.js is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux, FreeBSD, NonStop and IBM i.
http://en.wikipedia.org/wiki/Node.js

Now there is Node.js hosting from web hosting providers. This will make Node.js to be more popular with web developers.
Re: Javascript With NodeJS by micodon(m): 11:10pm On Apr 14, 2015
nah, dude...keep showcasing your ignorance. wannabe
Re: Javascript With NodeJS by Nobody: 8:25pm On Apr 15, 2015
Man cool down.
Re: Javascript With NodeJS by Booyakasha(f): 1:19pm On Apr 16, 2015
Guys, join Gdevit.com great spot for web developers and programmers...
Re: Javascript With NodeJS by nerdyorion: 3:09pm On Apr 16, 2015
An IT/Software company in Lagos which specializes in developing web and mobile applications desires to employ fresh graduates (Awaiting NYSC, Serving or recently

completed NYSC) to fill available vacancies.

- Strong knowledge of IT, preferably a background in computer science, engineering or other relevant disciplines
- Must have basic programming knowledge and be ready to learn e.g. .NET, SQL Server, Mobile App Development
- Must be intelligent, self-disciplined, confident and ready to work
- Physically and mentally fit to perform under pressure
- Must not be above 28 years

Interested candidates should kindly send CV to info@mobilixe.com on or before Tuesday 21th of April 2015.
Re: Javascript With NodeJS by Nobody: 8:50pm On Apr 22, 2015
Now with NodeJS Callback Hell is history.

"Now that we have formuploader.js (and it is loaded in the page as a script tag) we just need to require it and use it! Here is how our application specific code looks now:

var formUploader = require('formuploader')
document.querySelector('form').onsubmit = formUploader.submit

Now our application is only two lines of code and has the following benefits:"
Source: http://callbackhell.com
Re: Javascript With NodeJS by Nobody: 6:19am On Apr 23, 2015
Febup:
Now with NodeJS Callback Hell is history.

"Now that we have formuploader.js (and it is loaded in the page as a script tag) we just need to require it and use it! Here is how our application specific code looks now:

var formUploader = require('formuploader')
document.querySelector('form').onsubmit = formUploader.submit

Now our application is only two lines of code and has the following benefits:"
Source: http://callbackhell.com

I dont see anything here to stop callback hell they are just passing functions around. A good example would have been each method returning a deffered or a promise that way it can be resol ed and chained easily .the example in the link is not good enough. Check this out q.promise it explains better.
Re: Javascript With NodeJS by Nobody: 6:22am On Apr 23, 2015
Also careful when you read articles from programmers not all are always correct ot fit for use. Alot of people would argue angular is the best but I can give claims why anyone should use it for a full website. The industry these days is driven by hype. Angular hype,nodejs hype. Later bro

1 Like

Re: Javascript With NodeJS by micodon(m): 2:55pm On Apr 23, 2015
pcguru1:


I dont see anything here to stop callback hell they are just passing functions around. A good example would have been each method returning a deffered or a promise that way it can be resol ed and chained easily .the example in the link is not good enough. Check this out q.promise it explains better.

When you know how to programme, you'll understand. keep showcasing urself, dude.
Re: Javascript With NodeJS by micodon(m): 2:57pm On Apr 23, 2015
pcguru1:
Also careful when you read articles from programmers not all are always correct ot fit for use. Alot of people would argue angular is the best but I can give claims why anyone should use it for a full website. The industry these days is driven by hype. Angular hype,nodejs hype. Later bro

Leave this dude, bro. He doesnt know....and he does not want to know
Re: Javascript With NodeJS by kudaisi(m): 5:03am On Apr 24, 2015
Febup:
^^^
I just like the fact NodeJS uses JavaScipt syntax.
Really!!....you like the fact that nodeJS uses javascript syntax ? NODE JS WAS BUILT ON CHROME'S JAVASCRIPT RUNTIME ENGINE....... what other syntax do u suppose it to use?..abi you want to power another programming syntax with a runtime engine built for javascript ? Here's my conclusion on this post. After browsing through all of the OP's topics (None of which has to do with programming), I have come to the conclusion that you are a very controversial person and for some reason the attention you are getting from this post fuels something in you (which I barely care about). The programming section is for professionals and those that yearn to be one. And if you must be ONE... there are ethics programmers live as far as forums are concerned. They take constructive criticism as a pat on the back. They take senseless criticisms as ideas to be trashed (to be totally ignored). We avoid verbal confrontations that are not based on facts and logic (NOTE: Quoting google is exclusive).

Open your eyes man!!..... you have a post that has about three pages and you are the only that agrees completely with the point your are trying to make. Yet you still insist that everybody is wrong and you are right because you know how to google. It's not the way forward if you want to progress as a programmer. No programming language/framework is the best it's all about pros, cons, preferences and the context to which you intent to apply them. So just let this go and open you mind and heart to learning. NO MAN IS AN ISLAND.

1 Like

Re: Javascript With NodeJS by Nobody: 9:15pm On Apr 24, 2015
Take it or leave it, but the truth is that Node.JS is the future for web and mobile application development.

2 Likes

Re: Javascript With NodeJS by Nobody: 9:38pm On Apr 24, 2015
Febup:
Take it or leave it, but the truth is that Node.JS is the future for web and mobile application development.

Not really in mobile application Nodejs is only used to invoke Sdk commandline and others which is mostly Corodva . Unless you mean Javascript then yeah. I work on cordova and its limiting compared to native but am curious. Are you a developer ? You seem not to Answer questions directly.

1 Like

Re: Javascript With NodeJS by Nobody: 10:50am On Apr 25, 2015
pcguru1:


Not really in mobile application Nodejs is only used to invoke Sdk commandline and others which is mostly Corodva . Unless you mean Javascript then yeah. I work on cordova and its limiting compared to native but am curious. Are you a developer ? You seem not to Answer questions directly.

Yeah I'm a developer both front-end and back-end. Node.JS has a connector for SQLite. SQLite is one of five popular relational databases for mobile. It also has a connector for NoSQL for mobile apps. MongoDB can be used for mobile and Node.JS has a connector for it too.

Here is an article from IBM, You cannot also disregard their own view on Node.JS for mobile apps.

"Developing mobile apps with Node.js and MongoDB, Part 1: A team's methods and results

Thus, Node was able to deliver the same functionalities as Java, and it outperformed Java in terms of rapid development and better hardware utilization.

Node is a JavaScript web server runtime. Because it uses JavaScript, frontend developers can work in the same language as backend developers. This concept is referred to as JavaScript Everywhere. " Source http://www.ibm.com/developerworks/library/mo-nodejs-1/
Re: Javascript With NodeJS by Nobody: 11:10am On Apr 25, 2015
Febup:


Yea I'm a developer both front-end and back-end. Node.JS has a connector for SQLite. SQLite is one of five popular relational databases for mobile. It also has a connector for NoSQL for mobile apps. MongoDB can be use mobile and Node.JS has a connector for it too.

Here is an article from IBM, You cannot also disregard their own view on Node.JS for mobile apps.

"Developing mobile apps with Node.js and MongoDB, Part 1: A team's methods and results

Thus, Node was able to deliver the same functionalities as Java, and it outperformed Java in terms of rapid development and better hardware utilization.

Node is a JavaScript web server runtime. Because it uses JavaScript, frontend developers can work in the same language as backend developers. This concept is referred to as JavaScript Everywhere. " Source http://www.ibm.com/developerworks/library/mo-nodejs-1/






If it's IBM Bluemix you can using then its not a *mobile app* but *mobile web app* as the final deployment is going to be on a web meaning NodeJS is the Server then again Java would be the Server just as PHP, so it would be weird to call it an advantage because all i see here is NodeJS being used to make REST Calls in place of Java. but i do know that Nodejs is being talking about brining in Mobile space, maybe when it comes i can bring it up at the office for evaluation and analayze if there's any advantage over other Solutions like e.g Cordova and Telerik's script (can't remember the name). But NodeJs has no distribution for mobile that i know of, Can you share the link that shows Nodejs is deployable on mobile, it would be quite interesting for others to evaluate too.

And yes Nodejs utilizes resources than Java but then again Nodejs is single thread meaning one process so that's not even an argument. my only fear with that is Can Nodejs's single thread really serve a shitload amount of request compared to Java and others
Re: Javascript With NodeJS by Nobody: 11:21am On Apr 25, 2015
pcguru1:


If it's IBM Bluemix you can using then its not a *mobile app* but *mobile web app* as the final deployment is going to be on a web meaning NodeJS is the Server then again Java would be the Server just as PHP, so it would be weird to call it an advantage because all i see here is NodeJS being used to make REST Calls in place of Java. but i do know that Nodejs is being talking about brining in Mobile space, maybe when it comes i can bring it up at the office for evaluation and analayze if there's any advantage over other Solutions like e.g Cordova and Telerik's script (can't remember the name). But NodeJs has no distribution for mobile that i know of, Can you share the link that shows Nodejs is deployable on mobile, it would be quite interesting for others to evaluate too.

And yes Nodejs utilizes resources than Java but then again Nodejs is single thread meaning one process so that's not even an argument. my only fear with that is Can Nodejs's single thread really serve a shitload amount of request compared to Java and others

I have not yet done any projects with Node.JS though I intent to try it out, but from what the big guys like IBM have been doing with is so far, it is my belief that Node.JS will definitely become number choice for web and mobile app development.
Re: Javascript With NodeJS by Nobody: 11:24am On Apr 25, 2015
Febup:


Yea I'm a developer both front-end and back-end. Node.JS has a connector for SQLite. SQLite is one of five popular relational databases for mobile. It also has a connector for NoSQL for mobile apps. MongoDB can be used for mobile and Node.JS has a connector for it too.

Here is an article from IBM, You cannot also disregard their own view on Node.JS for mobile apps.

"Developing mobile apps with Node.js and MongoDB, Part 1: A team's methods and results

Thus, Node was able to deliver the same functionalities as Java, and it outperformed Java in terms of rapid development and better hardware utilization.




Node is a JavaScript web server runtime. Because it uses JavaScript, frontend developers can work in the same language as backend developers. This concept is referred to as JavaScript Everywhere. " Source http://www.ibm.com/developerworks/library/mo-nodejs-1/


Also i am quoting from the same source as you omitted some important points:

1. BlueMix is a cloud solution meaning unlike Cordova that runs on the WebView of various Mobile OS, these runs on the server so its a mobile web application , turn off your data and try running it , also Cordova speaks to the Hardware (this is my job at work so i know about this, because i wrote one for a bank *due to contract can't say suing things* not from my current job o i know my colleagues are on this platform too) BlueMix is solution for Nodejs meaning its on the server side, as for Mongodb i know there's installed on a server but the possiblity of deploying on mobile is not strange though.

2. From the article it mentions ExpressJS which is a NodeJS server framework so this is not again i must mention a mobile application, its a web application.

3.
Thus, Node was able to deliver the same functionalities as Java, and it outperformed Java in terms of rapid development and better hardware utilization.
This is misleading this means utilization of server hardware not mobile hardware, which is not a debatable argument as i mentioned earlier Nodejs is Single Threaded so that's no brainer



It would have be more fun arguing or debating with you, but it seems am arguing to "Referenced Material" that are out of context. anyway won't be replying to you anymore if you can't bother to share your own opinions, because am just talking to myself as far as i am concerned. but anyway all the best bro wink

1 Like

Re: Javascript With NodeJS by Nobody: 11:30am On Apr 25, 2015
Febup:


I have not yet done any projects with Node.JS though I intent to try it out, but from what the big guys like IBM have been doing with is so far, it is my belief that Node.JS will definitely become number choice for web and mobile app development.

sadly IBM Bluemix isn't free or even close too. for Real time app Node is good, A friend and I built a stuff that used our Mobile Accelerometer to draw on another system web page in Nodejs i only assisted with the code oh, am not a UI person anymore
Re: Javascript With NodeJS by Nobody: 1:01pm On Apr 25, 2015
pcguru1:

But NodeJs has no distribution for mobile that i know of, Can you share the link that shows Nodejs is deployable on mobile, it would be quite interesting for others to evaluate too.

NodeJS is a runtime environment, which you program with JavaScript. A runtime environment sits on an operating system. Node.JS allows you to write your front-end back end with JavaScript and you deploy your mobile app as an IOS, Android or any other mobile app platform you have built the mobile app on.
Re: Javascript With NodeJS by Nobody: 1:42pm On Apr 25, 2015
Febup:


NodeJS is a runtime environment, which you program with JavaScript. A runtime environment sits on an operating system. Node.JS allows you to write your front-end back end with JavaScript and you deploy your mobile app as an IOS, Android or any other mobile app platform you have built the mobile app on.

Bot
Re: Javascript With NodeJS by Nobody: 6:53pm On Apr 25, 2015
For you guys criticising Node.JS, well the fear of Node.JS is the beginning of wisdom as it is matching forward and taking programming territories, including the territories you've been comfortable with using other languages.
Re: Javascript With NodeJS by micodon(m): 11:59pm On Apr 25, 2015
Febup:


NodeJS is a runtime environment, which you program with JavaScript. A runtime environment sits on an operating system. Node.JS allows you to write your front-end back end with JavaScript and you deploy your mobile app as an IOS, Android or any other mobile app platform you have built the mobile app on.

Please tell me how you program mobile apps with Nodejs.where are the sdk's? is invoking Terminal lines via node commands programming?
Re: Javascript With NodeJS by micodon(m): 12:05am On Apr 26, 2015
Febup:
For you guys criticising Node.JS, well the fear of Node.JS is the beginning of wisdom as it is matching forward and taking programming territories, including the territories you've been comfortable with using other languages.

i have written apps in python, Php, The .NETs, Ruby on Rails and NodeJs. so what are you saying. its about using the right tools for the job. Node's strength is in concurrency. But then, there re kings in that area like Erlang, Scala, and the almighty go-lang. when nodejs becomes the defacto choice for the web, call me
Re: Javascript With NodeJS by micodon(m): 12:07am On Apr 26, 2015
micodon:


When you know how to programme, you'll understand. keep showcasing urself, dude.

Bros, this aint for u. sorry
Re: Javascript With NodeJS by Nobody: 12:21am On Apr 26, 2015
as far as am concerned he's not a developer so that last word bot is my last reply to him. nothing he says or talks about are his own words and clearly has no experience in Nodejs because he has no idea about what he's talking about besides work plenty my table sef embarassed
Re: Javascript With NodeJS by micodon(m): 7:47am On Apr 26, 2015
pcguru1:
as far as am concerned he's not a developer so that last word bot is my last reply to him. nothing he says or talks about are his own words and clearly has no experience in Nodejs because he has no idea about what he's talking about besides work plenty my table sef embarassed

it's not just about node. he talks like he has no idea of programming concepts at all. probably one of these WordPress-only guys
Re: Javascript With NodeJS by Nobody: 4:31pm On Apr 26, 2015
@ pcguru1 and micodon

The best way to settle our score here is for us to engage in a programming competition to know who is a developer among us three, I want us to go for a two player Ayo - Web or Mobile game. You can use any language of your choice. Are you in for this? Or you just want to chicken out and stick to your WordPress-only development, that requires no idea of programming concepts.

Re: Javascript With NodeJS by micodon(m): 6:33pm On Apr 26, 2015
Febup:
@ pcguru1 and micodon

The best way to settle our score here is for us to engage in a programming competition to know who is a developer among us three, I want us to go for a two player Ayo - Web or Mobile game. You can use any language of your choice. Are you in for this? Or you just want to chicken out and stick to your WordPress-only development, that requires no idea of programming concepts.

maybe you dont have work to do. i want us to do this face to face. i dont want you to go googling stuff. one office. one problem.
Re: Javascript With NodeJS by Nobody: 6:46pm On Apr 26, 2015
micodon:
i dont want you to go googling stuff. one office. one problem.

There is no ready made code for this game on Google so no excuse for you. We should do it here in the open for others to see. I don't own Node.JS so there is no offence if I Google for information about Node.JS

(1) (2) (3) (4) (5) (6) (7) (Reply)

List Of All IT Certifications 1611 / Front-End Developer Or Back-End Developer: Which Job Title Has A Higher Salary? / Should We Make Mobile Apps Or Web Apps For The Nigerian/African Market?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 67
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.