What programming language do you prefer?

The place for chatting and discussing subjects unrelated to Wesnoth.

Moderators: Forum Moderators, Developers

User avatar
atomicbomb
Posts: 87
Joined: January 13th, 2011, 12:10 pm
Location: Pontianak, Indonesia
Contact:

Re: What programming language do you prefer?

Post by atomicbomb » February 2nd, 2011, 5:30 am

PeterPorty wrote:You can also become a Dev with pure WML/Lua.
Cool, I wonder who is the developer with pure WML :D


Conclusion :
WML to make UMCs(IIRC someone said that some UMCs also use lua)
Any High level(perl,python,lua, etc) for beginner program
Any low level(C++, etc) for mre complicated program.
HTML/PHP/Java for web

am i right?
* shadowmaster hits atomicbomb with a watermelon
* atomicbomb hits shadowmaster with durian
(On wesbreak to take care of my 17 HS classes. Will be back in mid June.)
My Blog | Noisy Bird | My Fake FB Account | Story of Wesnoth Forums

User avatar
Frogger5
Posts: 951
Joined: November 7th, 2009, 11:45 pm

Re: What programming language do you prefer?

Post by Frogger5 » February 2nd, 2011, 6:33 am

Of course, there is also Basic, which is fairly easy from what I've seen/heard. But isn't used much nowadays? Nah don't use basic.
My spritework can be seen here.

Want to play Roll 2 Dodge, or even start your own game?http://rolltododge.freeforums.org/index.php We need you!

User avatar
ShikadiQueen
Posts: 74
Joined: October 4th, 2007, 6:12 pm
Location: Norsula IV
Contact:

Re: What programming language do you prefer?

Post by ShikadiQueen » February 2nd, 2011, 6:47 am

atomicbomb wrote:Hi guys, I'm interested in programming but I don't know the best programming language, and I need your reference.

so, what programming language do you prefer?
FLAMEWAR TIME!

:twisted:

Am I late?
I got better!

ajf
Posts: 22
Joined: March 8th, 2006, 12:49 pm

Re: What programming language do you prefer?

Post by ajf » February 2nd, 2011, 6:50 am

atomicbomb wrote: Any High level(perl,python,lua, etc) for beginner program
Any low level(C++, etc) for mre complicated program.
HTML/PHP/Java for web
I wouldn't suggest perl for beginners. lua I do not know.

HTML/PHP/Javascript for web. Java for just about everything, in particular quite good for learning, because there are many tutorials available online, it is less messy than c++ but still quite similar and just a very standard modern object-oriented programming language.

And don't forget Matlab for scientific dataanalysis :eng: :wink:

Cheers,
ajf

User avatar
atomicbomb
Posts: 87
Joined: January 13th, 2011, 12:10 pm
Location: Pontianak, Indonesia
Contact:

Re: What programming language do you prefer?

Post by atomicbomb » February 2nd, 2011, 7:16 am

Ah.. I forgot one important specification, FREE! There's some languages which requires money, and I also hate something that hard to debug (WML, C, CPP)... People said that it takes lot of hours to debug..

heh.. i think i should write an Interpreter for WML(maybe few years later) :lol2: so it's easy to debug it.
* shadowmaster hits atomicbomb with a watermelon
* atomicbomb hits shadowmaster with durian
(On wesbreak to take care of my 17 HS classes. Will be back in mid June.)
My Blog | Noisy Bird | My Fake FB Account | Story of Wesnoth Forums

User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

Re: What programming language do you prefer?

Post by Sapient » February 2nd, 2011, 8:11 am

Perl and C++ are not good programming languages for beginners.
HTML is more of a webpage design language than a programming language.
Flash games are written in a language known as ActionScript.
Debugging is hard in any programming language.

http://en.wikipedia.org/wiki/Programming_language

http://en.wikipedia.org/wiki/Educationa ... experience

http://en.wikipedia.org/wiki/Measuring_ ... popularity
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."

User avatar
Reepurr
Posts: 1088
Joined: August 29th, 2010, 5:38 pm

Re: What programming language do you prefer?

Post by Reepurr » February 2nd, 2011, 8:57 am

I agree with Sapient's post in general.

Here's a big "order of difficulty" list of coding for you.
Basic coding:
HTML
WML

Getting harder:
Java(?)
ActionScript
Lua

ARGH:
C
C+
C++
Perl(?)

Personally, I'm just moving into "Getting harder" - Lua - and that's pretty tricky, but understandable.
"What do you mean, "a dwarvish dragonguard with marksman is overpowered"?"

Story of a Drake Outcast | The Nonsense Era
Played HttT-Underground Channels? Thought it was rubbish? Help us develop it here!

User avatar
bigkahuna
Posts: 657
Joined: September 11th, 2010, 6:24 pm
Location: In your mind.

Re: What programming language do you prefer?

Post by bigkahuna » February 2nd, 2011, 3:12 pm

Reepurr wrote:Here's a big "order of difficulty" list of coding for you
That's a pretty decent list of difficulty.

atomicbomb wrote:I also hate something that hard to debug (WML, C, CPP)... People said that it takes lot of hours to debug.
Sapient wrote:Debugging is hard in any programming language.
Amen. I tried C++, and I could never find where in the world I messed up... In WML, I find it drastically easier (the stderr.txt file gives you a list of all your errors generally).
Check out my campaign Sweet Revenge!
Join the new R2D forum!

User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

Re: What programming language do you prefer?

Post by Sapient » February 2nd, 2011, 3:49 pm

Here's a quote by Brian Kernighan (one of the creators of Unix): "The most effective debugging tool is still careful thought, coupled with judiciously placed print statements."

He said that in 1979 but there is still some truth to it.
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."

MCP
Posts: 518
Joined: May 23rd, 2005, 5:23 pm
Location: California

Re: What programming language do you prefer?

Post by MCP » February 2nd, 2011, 7:16 pm

That's funny, I find WML difficult to debug compared with C++ or C.

Python is an interpreted language which makes it 'easier' to learn, in my opinion.

Learn python by programming games (will update with more links if I get them):
http://inventwithpython.com/ (read the book online for free)
http://rene.f0o.com/mywiki/LectureOne (decent)

Learn python by using it for math or engineering applications (The gui is in a web browser such as Firefox):
http://www.sagemath.org
http://www.sagemath.org/help-video.html

I find either of these appeal to people with different types of applications in mind.

Reasons for python:
1. Well documented.
2. Lots of people use it.
3. Motivation: Since you're into games, there are many introductions for learning to program by implementing games.
4. It's getting faster. It is generally at least 10 times slower than C/C++ or java equivalent, if not more. I've gotten even over 100 times slower in simple test apps. However with newer things in the works such as converting python to bytecode, I noted in these same test it was only 2 to 3 times slower than the C equivalent.

ajf
Posts: 22
Joined: March 8th, 2006, 12:49 pm

Re: What programming language do you prefer?

Post by ajf » February 2nd, 2011, 7:47 pm

Reasons against Python:
- Whitespaces matter :doh:

Cheers,
ajf

User avatar
Crendgrim
Moderator Emeritus
Posts: 1328
Joined: October 15th, 2010, 10:39 am
Location: Germany

Re: What programming language do you prefer?

Post by Crendgrim » February 2nd, 2011, 9:33 pm

ajf:
I don't think that's a reason against it. How often did I see people who didn't know what was wrong with their code, because they didn't indent correctly. The code lines were somewhere spread but not there where they should have been. (No, this wasn't one guy but many, many persons whom I helped)
Regarding that, I really like Python's way to force people to indent as they should do. I also used to program in Python (but that's a few years ago; with Python 2.4 or 2.5 IIRC) but stopped, because I didn't really got into the syntax. But at least it helped me developing a rather clear programming style ;)

So I personally prefer Java and C/C++ for "real" programs and - of course :P - PHP / XHTML / CSS / JavaScript for web programming.


Crend
UMC Story Images — Story images for your campaign!

MCP
Posts: 518
Joined: May 23rd, 2005, 5:23 pm
Location: California

Re: What programming language do you prefer?

Post by MCP » February 2nd, 2011, 10:50 pm

ajf wrote:Reasons against Python:
- Whitespaces matter :doh:

Cheers,
ajf
Which archaic text editor are you using? Every text editor I use will auto-indent Python, much less C, java, etc.

Both of these editors auto-indent, format, and highlight for read-ability.
Simple on windows (for instance): Notepad++
More complicated development environment: Eclipse for large projects in C/C++ and java.


Notepad++ example:
Use sage from sagemath.org above linked. The GUI is in the web browser. So if using Firefox, get the plug-in 'It's all text' and link it to notepad++. Notepad++ auto-indents and highlights python, copies it back into the web browser GUI when the programming has saved something.

I always use whitespace and indentation no matter what programming language I use, eg C, Java, matlab, bash script, and WML, because it makes code more readable. Everyone who works on my project is REQUIRED to do the same (NASA/AMES) because it's important for other people to be able to read code. To hate on python because of whitespaces is [censored], especially since one should rarely have to think about it because of modern text editors. To not like python for other reasons is fine. People can choose to speak to the machines in whatever language they want.

User avatar
Crushmaster
Posts: 383
Joined: August 9th, 2008, 3:38 pm
Location: United States
Contact:

Re: What programming language do you prefer?

Post by Crushmaster » February 3rd, 2011, 4:33 am

I'm really taking a liking to English.

Yes, I know, I'm sorry.
God bless,
Crushmaster.
Godspeed, random person!
NeedGod - User:Crushmaster

User avatar
saiko-chriskun
Posts: 14
Joined: January 3rd, 2011, 12:43 am
Contact:

Re: What programming language do you prefer?

Post by saiko-chriskun » February 3rd, 2011, 5:37 am

I posted a similar question awhile back, and since then have decided to focus on Lua, Haskell, and more recently, Assembly and C.

Haskell is the king of functional programming, really, which imo is really good practice. It'll make you a better programmer even if you don't plan on using it that often. You can also branch out into web development in it with snap.

Lua is, well, lua; works with all existing C libraries and is the most popular game scripting language. I've been doing my game design with love so far.

I've started on Assembly and C more recently to try and get into kernel development in the future, and get a real sense for what the compiler is really doing under the hood. I'd only recommend these two (esp. Assembly) if you really enjoy programming in of itself and want to learn more.

My two cents 8)

Post Reply