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 Get Real! » Mon Mar 30, 2015 2:17 am

Pyrpolizer wrote:
Get Real! wrote:
1)So why don’t you parse this text file? Can’t be that hard… 2)post a screen-full of it so we can see its contents.

As for the best language for you… 3)it depends on whether you just want to be fiddling with other people’s file headers or whether you want to write your OWN backgammon game and create the “.PP” file format! :wink:

To tinker with file headers you only need C++ as it can easily handle data structures and string parsing. These are the only two things you need to extract header info so I can't understand why you're not happy with that.

But… if you want to write your own backgammon game, get into Web Apps!


1)Who said i didn't? I was just answering your question to provide you a quick technical description of one of my recent projects.
2)Full screen of the parsed output is impossible..Like I said it produces thousands of lines. I will upload one tomorrow.
3)I already said that in this particular case the issue was for converting from one file format (from the parsed file) to another (the *.mat file format). No I am not interested to write any software that is already available.
I am only writing solutions to specific issues mainly for my own use that sometimes might also interest a limited number of people .Most have to do with tables , calculations, graphs, and text manipulation.

When someone says a "screenfull of text" they’re talking about 50-80 lines; how many lines can the average screen display at any given moment anyway?

But if you’ve already successfully parsed this text file then there’s no need for me to look into this.

So what’s your next requirement after you’ve parsed it? Did you want to also display the moves and you’re stuck?

Don’t get me wrong… I’m just trying to figure out why you would suggest learning a new language given that C++ can easily handle data structures and string parsing, and you've already done all that you say...

Are you stuck somewhere? :?
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 CBBB » Mon Mar 30, 2015 7:26 am

What's wrong with COBOL?
User avatar
CBBB
Leading Contributor
Leading Contributor
 
Posts: 11521
Joined: Tue May 20, 2008 1:15 pm
Location: Centre of the Universe

Re: What programming language would you suggest me??

Postby Pyrpolizer » Mon Mar 30, 2015 11:57 am

Get Real! wrote:But if you’ve already successfully parsed this text file then there’s no need for me to look into this.

So what’s your next requirement after you’ve parsed it? Did you want to also display the moves and you’re stuck?

Don’t get me wrong… I’m just trying to figure out why you would suggest learning a new language given that C++ can easily handle data structures and string parsing, and you've already done all that you say...

Are you stuck somewhere? :?


No, I am not stuck anywhere. It was just an example of what I need to do. And to be honest not a good example because this actually has to deal with simple manipulations on text, whereas most of what I do has to do with numbers and calculations plus a bit of text and graphs. I have uploaded the relevant files here if you want to have a look.
http://www.filedropper.com/xgconverted
As you can see the mat file was constructed fine with my Excel script, despite the fact that Excel is not that suitable for text manipulation purposes.
Basically I want to learn a new language to make my programs run on any windows PC, without the need of installing additional software. I started learning C++ which i know it can do that, but I didn't like it.
User avatar
Pyrpolizer
Leading Contributor
Leading Contributor
 
Posts: 12893
Joined: Wed Mar 29, 2006 11:33 pm

Re: What programming language would you suggest me??

Postby Sotos » Mon Mar 30, 2015 1:09 pm

I didn't know that you could use Excel to write such kind of programs!!! :shock: But anyway, if you want a general purpose language that doesn't need to be compiled then I will agree with GR... go with Javascript. Don't go into node.js or anything like that now. Start with just Javascript, HTML and CSS. With those 3 technologies (+ maybe a few libraries and frameworks to speed up your development) you can build web apps that anybody can run from anywhere. Not everybody has Excel but everything has a web browser, so anybody can run your apps from anywhere without even the need to install anything. And if you later want to package your app to make it run like a native application on windows, iOS, Android etc, there are ways to do it. Another language that is quite popular and is considered to be very nice is Python, but I don't have much experience with it. If you decide to go with Javascript let me know if you need some learning resources.
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 Pyrpolizer » Mon Mar 30, 2015 1:40 pm

Sotos wrote:I didn't know that you could use Excel to write such kind of programs!!! :shock: But anyway, if you want a general purpose language that doesn't need to be compiled then I will agree with GR... go with Javascript. Don't go into node.js or anything like that now. Start with just Javascript, HTML and CSS. With those 3 technologies (+ maybe a few libraries and frameworks to speed up your development) you can build web apps that anybody can run from anywhere. Not everybody has Excel but everything has a web browser, so anybody can run your apps from anywhere without even the need to install anything. And if you later want to package your app to make it run like a native application on windows, iOS, Android etc, there are ways to do it. Another language that is quite popular and is considered to be very nice is Python, but I don't have much experience with it. If you decide to go with Javascript let me know if you need some learning resources.


Yes that's what I was thinking of. Java should be it. Most windows PCs do have it already installed as an add in for browsers don't they?
I already tried a bit of Python, it seems good, but I think it still has the same "distribution" problem.
Do you have any experience with visual basic with the grid option? I think that should be very similar to Excel, and it does produce exes that run on any windows PC

NB. Yes please do post some learning resources for Java. Concentrate on the one you personally used.
Last edited by Pyrpolizer on Mon Mar 30, 2015 2:08 pm, edited 1 time in total.
User avatar
Pyrpolizer
Leading Contributor
Leading Contributor
 
Posts: 12893
Joined: Wed Mar 29, 2006 11:33 pm

Re: What programming language would you suggest me??

Postby Pyrpolizer » Mon Mar 30, 2015 1:59 pm

Sotos wrote:I didn't know that you could use Excel to write such kind of programs!!! :shock: But anyway, if you want a general purpose language that doesn't need to be compiled then I will agree with GR... go with Javascript. Don't go into node.js or anything like that now. Start with just Javascript, HTML and CSS. With those 3 technologies (+ maybe a few libraries and frameworks to speed up your development) you can build web apps that anybody can run from anywhere. Not everybody has Excel but everything has a web browser, so anybody can run your apps from anywhere without even the need to install anything. And if you later want to package your app to make it run like a native application on windows, iOS, Android etc, there are ways to do it. Another language that is quite popular and is considered to be very nice is Python, but I don't have much experience with it. If you decide to go with Javascript let me know if you need some learning resources.


It has the basic text functions like LEN, MID, INSTR, find, replace, etc and can read from or write to text files using this command

Open "C:\XgConvertedFile.mat" For Append As #1
Print #1, TopassAll ' TopassAll is a one line string and you can write a complete text file by looping through
Close #1

But that's all the tools it has. Try to binary modify a file with Excel and you will have a heck of a time :wink:
User avatar
Pyrpolizer
Leading Contributor
Leading Contributor
 
Posts: 12893
Joined: Wed Mar 29, 2006 11:33 pm

Re: What programming language would you suggest me??

Postby Sotos » Mon Mar 30, 2015 2:21 pm

Javascript and Java are two completely different languages. Java can run in the browser with a plugin, but nobody is using it that way anymore. On the other hand Javascript comes with every browser built-in, it is not a plugin. Java is a very popular language also... but you will again need to compile it similarly to C++. Now for the file manipulations that you are talking I believe that Python should be better as that is not really the purpose of Javascript. There are ways to turn Python into .exe (example: http://www.py2exe.org/) so it can run on Windows computers directly. Go to www.lynda.com/trial to get 10 days trial. They have video tutorials of all major languages and a lot more. Their videos are of very high quality, just make sure you choose the most recent ones. If you decide on Javascript let me know and I will give you more resources.
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 Sotos » Mon Mar 30, 2015 2:31 pm

Here is the intro to Python course: http://www.lynda.com/Python-tutorials/U ... 467-2.html
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! » Mon Mar 30, 2015 4:39 pm

Hey Pyro, I’m gonna give you an early Xmas present! :lol:

With “Pyro’s Pyrotechnics” (as I’ve named it) you can extract any header from any file format in like a few minutes! :wink:

Pyro.PNG
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! » Mon Mar 30, 2015 5:36 pm

Sotos, without Node.js or similar platform (come to think of it I don’t know of any other substitute) you simply *can't* do true independent web apps because browsers won’t let you access the user’s hard disk and resources so your online pseudo-apps will be no different to limited stupid websites.

Node.js is like all the missing Javascript functions you always wanted but were forbidden to have in the name of “security”…it’s like all your Xmases come true! :lol:

Get into it Sotos… you’ll love it! :)
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

PreviousNext

Return to General Chat

Who is online

Users browsing this forum: No registered users and 0 guests