The Best Cyprus Community

Skip to content


What programming language would you suggest me??

Feel free to talk about anything that you want.

Re: What programming language would you suggest me??

Postby Sotos » Tue Mar 31, 2015 10:47 pm

I simply suggested to use document.write() to quickly display the result to the screen for observation!

And I explained to you that you can't "document.write()" from Node... neither quickly nor slowly ;) document.write is something you do with HTML etc documents in a browser! If you want to output something quickly with Node you use console.log() ... you didn't know this basic thing and you want to present yourself as a Node expert? :roll:
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: What programming language would you suggest me??

Postby Get Real! » Tue Mar 31, 2015 10:52 pm

Sotos wrote:
I simply suggested to use document.write() to quickly display the result to the screen for observation!

And I explained to you that you can't "document.write()" from Node... neither quickly nor slowly ;) document.write is something you do with HTML etc documents in a browser! If you want to output something quickly with Node you use console.log() ... you didn't know this basic thing and you want to present yourself as a Node expert? :roll:

Baloney! You can mix javascript and Node.js no problems!

You can read a file into variable "S", make your changes to string "S", and then output to screen in a dozen ways... be it console.log or document.write!

Ade mana mou, bienne na pessis tzie enna bais skolion avrio!

:lol: :lol: :lol:
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: What programming language would you suggest me??

Postby Get Real! » Tue Mar 31, 2015 10:54 pm

Pyrpolizer wrote:I guess the original question should have been:
What programming language/s do YOU use? What can YOU do with it? What are the capabilities of this language? How would you grade yourself beginner, intermediate, advanced.

So let's start all over again Sotos, GR, et al.

I’ve already given you a link of my work so I’m sure you can download, install, and evaluate yourself.

As for Sotos… he’s got nothing to show for it because he can’t write jackshit anyway! :lol:

I mean the poor guy didn’t even know you could write programs in Excel! :roll: :lol:
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: What programming language would you suggest me??

Postby Sotos » Tue Mar 31, 2015 11:29 pm

Get Real! wrote:
Sotos wrote:
I simply suggested to use document.write() to quickly display the result to the screen for observation!

And I explained to you that you can't "document.write()" from Node... neither quickly nor slowly ;) document.write is something you do with HTML etc documents in a browser! If you want to output something quickly with Node you use console.log() ... you didn't know this basic thing and you want to present yourself as a Node expert? :roll:

Baloney! You can mix javascript and Node.js no problems!

You can read a file into variable "S", make your changes to string "S", and then output to screen in a dozen ways... be it console.log or document.write!

Ade mana mou, bienne na pessis tzie enna bais skolion avrio!

:lol: :lol: :lol:



You are clueless ;) "document.write" would be relevant only for doing something within a browser. Each web page loaded in the browser has its own "document" object. That object has properties such as "document.doctype" which holds the doctype of the HTML page, or "document.title" that contains that page title. There is no "document object" outside of a browser and therefore no such thing as "document.write()" (which is a method of the document object). So you can't use document.write() unless you are running javascript within a browser.
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: What programming language would you suggest me??

Postby Get Real! » Tue Mar 31, 2015 11:40 pm

Sotos wrote:You are clueless ;) "document.write" would be relevant only for doing something within a browser. Each web page loaded in the browser has its own "document" object. That object has properties such as "document.doctype" which holds the doctype of the HTML page, or "document.title" that contains that page title. There is no "document object" outside of a browser and therefore no such thing as "document.write()" (which is a method of the document object). So you can't use document.write() unless you are running javascript within a browser.

Hahaha... you probably just read that Node.js is sever-side javascript (which is true) and automatically assumed that you can't use it client-side! :lol:

Eneshis ybothesi... :lol:
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: What programming language would you suggest me??

Postby Sotos » Wed Apr 01, 2015 12:08 am

Get Real! wrote:
Sotos wrote:You are clueless ;) "document.write" would be relevant only for doing something within a browser. Each web page loaded in the browser has its own "document" object. That object has properties such as "document.doctype" which holds the doctype of the HTML page, or "document.title" that contains that page title. There is no "document object" outside of a browser and therefore no such thing as "document.write()" (which is a method of the document object). So you can't use document.write() unless you are running javascript within a browser.

Hahaha... you probably just read that Node.js is sever-side javascript (which is true) and automatically assumed that you can't use it client-side! :lol:

Eneshis ybothesi... :lol:


:roll: With Node.js you run javascript OUTSIDE of a browser, which can be any computer either you call it "server" or "GRs home computer". If you are running Javascript inside a browser then you are using the JavaScript engine of your browser, and it is only when you use the JavaScript engine of your browser that you can "document.write()" . I am not going to waste any more of my time with this. Anybody who knows Node.js knows that you are cluless. Anybody who doesn't know Node.js would again know that you are clueless because you constantly say nonsense in the forum and they should be complete idiots to take your word over mine ;)
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: What programming language would you suggest me??

Postby Get Real! » Wed Apr 01, 2015 12:28 am

Sotos wrote:
Get Real! wrote:
Sotos wrote:You are clueless ;) "document.write" would be relevant only for doing something within a browser. Each web page loaded in the browser has its own "document" object. That object has properties such as "document.doctype" which holds the doctype of the HTML page, or "document.title" that contains that page title. There is no "document object" outside of a browser and therefore no such thing as "document.write()" (which is a method of the document object). So you can't use document.write() unless you are running javascript within a browser.

Hahaha... you probably just read that Node.js is sever-side javascript (which is true) and automatically assumed that you can't use it client-side! :lol:

Eneshis ybothesi... :lol:


:roll: With Node.js you run javascript OUTSIDE of a browser, which can be any computer either you call it "server" or "GRs home computer". If you are running Javascript inside a browser then you are using the JavaScript engine of your browser, and it is only when you use the JavaScript engine of your browser that you can "document.write()" . I am not going to waste any more of my time with this. Anybody who knows Node.js knows that you are cluless. Anybody who doesn't know Node.js would again know that you are clueless because you constantly say nonsense in the forum and they should be complete idiots to take your word over mine ;)

Re, you couldn’t even put 3 lines of basic Node.js code together tzie millas akoma? :roll: :lol:

I can read-in a file with Node.js into a variable, and then on the second line process that variable with plain vanilla javascript… and both actions happen one after the other while in Chromium. (a browser engine)

The “outside of the browser” you mention is the client-side disk I/O of Node.js, while the “inside of the browser” is the variable’s processing and output to screen. Get it?

So YES, I could call as my 3rd instruction document.write() to display that string if I wanted to. It’ll work just fine for a quick test although that’s not how I do things inside programs.

So which part of the above don’t you understand? :lol:
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: What programming language would you suggest me??

Postby Get Real! » Wed Apr 01, 2015 12:35 am

And btw… talk is cheap!

Why don’t you go back and solve that problem I gave you? That’s ok, you can use console.log()… I don’t care how you output to screen… in fact don’t even output to screen, I’ll do that part myself so how’s that? :roll:

Go on, show us what a power-programmer you are!

Talk is cheap baby! :wink:
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: What programming language would you suggest me??

Postby Pyrpolizer » Wed Apr 01, 2015 12:46 am

Get Real! wrote:
Pyrpolizer wrote:I guess the original question should have been:
What programming language/s do YOU use? What can YOU do with it? What are the capabilities of this language? How would you grade yourself beginner, intermediate, advanced.

So let's start all over again Sotos, GR, et al.

I’ve already given you a link of my work so I’m sure you can download, install, and evaluate yourself.

As for Sotos… he’s got nothing to show for it because he can’t write jackshit anyway! :lol:

I mean the poor guy didn’t even know you could write programs in Excel! :roll: :lol:


You are both much superior than me in programming so I can't really judge anyone.
Yes I ve downloaded your work and seen it. it's ironic that the interface looks like a copy from nodes hahaha
So what programming language/s do you usually use for your programs?

Unfortunately that's not the kind of a project that would trigger me to write a program though.I do programs when I feel i need something I can't find over the net.

My first program was an accounting program that I did for my business when I started. It served my needs fine at least in the beginning. Not really a stand alone program just a lot of automations on Excel.

The next one was similar -automate passing the stock exchange daily data from Stockwatch.com to a an Excel file for analysis, graphs and formulae to buy-sell-hold.

The real programs followed later, I did a lot of file format conversions none of which is available on the net, a program for offline use of google earth files by a GPS system for mobiles, I wrote a sudoku solver that uses standard human logic- not algorithms, I wrote many programs that have to do with the maths behind backgammon, calculating equities, live and dead cube take points, etc etc.
The last one, was one that would run about 100,000 times to collect statistics to demonstrate some issues in games where luck and skill interact.I could give you a description of the task to write your own program if you like. You will be totally surprised by the results.

Oh I forgot. My real first program was a very destructive virus that I made on Excel.There was a girl from Limassol by the nick of "Fioroulla" sending my son viruses deliberately over the IRC. I made an Excel file with a photograph. As soon as the file opened the receiver would look at the photo for about 3-4 seconds. Then it would activate a batch file that would delete the registry of both win 95 and win 98.
My son send his "photo" to Fioroulla. She disappeared from IRC for ever within seconds. :"No such user name". :D
Problem is my son gave the file it to his friends kai egine to sose, they destroyed thousands of computers. One idiot of his friends even destroyed his own just to make sure the photo works :lol: :lol: :lol:
User avatar
Pyrpolizer
Leading Contributor
Leading Contributor
 
Posts: 12892
Joined: Wed Mar 29, 2006 11:33 pm

Re: What programming language would you suggest me??

Postby Sotos » Wed Apr 01, 2015 12:53 am

I already wrote it for you. You want it in a nice format? :roll: Here:
Code: Select all
var fs = require("fs"), f = process.argv[2];
fs.readFile(f, 'utf8', function(error, text) {
   fs.writeFile(f, text.replace(/(“|”)/g, '"').replace(/’/g, "'"));
});

Assuming you name the above file "modify.js" and you place your text in "test.txt" then in cmd you type: node modify.js test.txt and test.txt will be modified accordingly. Now show it to me with "document.write()" using Node NOT the Javascript engine of a browser ( and Chromium is a browser) :lol:
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

PreviousNext

Return to General Chat

Who is online

Users browsing this forum: No registered users and 0 guests