Computer programming

jeff081692

Veteran
Joined
Aug 14, 2007
Messages
533
Location
Chicago,IL
WCA ID
2012JAME03
YouTube
Visit Channel
Hi. I want to make a program that tests me on the algorithms I know and time me kind of like PLL trainer but I have no clue where to start. Can anybody point me in the right direction on how to make a program like this? I plan on being a programmer in the future so making this program would help me in two ways.
 
first step: pick a language.

I made PLL Trainer in Visual Basic 6. Although it is very easy to make an Interface program like that in VB6, Visual Basic is a terrible programming language, as a whole.
VB .NET could be good for this, you might wanna look into that. I never personally tried it, but it's easy to make interface in that one too, and hopefully .NET is better programming language, and I know that many developers use it.

JNetCube was done in Java; a pretty good language. Most likely it is using the Swing library for the Interface though, which is a complete disaster, and it will be hard to try and find something more stupid than the Swing library, possibly in the entire universe.

One other language that is right now my favorite is Python. Very nice little neat programming language, and it has some Interface libraries that I didn't take a look at yet, so I don't know about those. I would recommend learning Python and giving that a shot. The downside to Python (and it is a pretty big one right now) is that not too many people have it. Certainly most of the newbie people don't, and while there are ways to convert your Python scripts to .exe executables using pyexe, it isn't always flawless and I had trouble with it before.

It really depends on your experience as a programmer from before. Without that I can't tell you more.
 
Last edited:
Java; a pretty good language.
o_O

Forget about graphics, make it text based at first. Some people think that Python is __very__ __easy__ to learn for beginners, so it might be a good choice as a first language. It's also available outside Windows (unlike Visual Basic), so you're free to switch to a better OS without leaving Python.

But it doesn't matter much which language you choose, picking up new ones becomes very easy once you know a few from different paradigms.
 
Last edited:
Could everyone please stop telling him which language to use? First he needs to decide what he actually wants to accomplish.

P.S. .NET is not a language. You can program in C++.NET, VB.NET, C#.NET, J#.NET, Ruby on Rails.NET, Python.NET and about 30 others. If you are interested in these, check out http://www.microsoft.com/learning/developer/default.mspx and download from http://www.microsoft.com/express/download/ (for free)

Actually all .NET languages share a Common Type System, and they compile into Common Intermediate Language, so really, all those languages are just one .NET language :), the differences are really mostly just a matter of syntax.

Anyway, I agree that he should have a clear idea of what he wants to do first. But C# or something in the .NET framework would probably be a good choice. I never worked in it, but a friend was showing me how easily he was creating an interface in their GUI interface builder, and it generated the code for him; that was nice and it looked easy. Maybe someone who actually worked with it could elaborate.
The downside of course is that this isn't really cross platform, but most of the people have wine emulators and stuff, so it isn't that big of a deal.
 
Well I want to make a simple program that can time me on the algorithms I know. A picture of the cube and the set up move comes up and I use the space bar to start and stop the timer. And everytime I learn a new algorithm I will put it into the program.
 
Could everyone please stop telling him which language to use? First he needs to decide what he actually wants to accomplish.

P.S. .NET is not a language. You can program in C++.NET, VB.NET, C#.NET, J#.NET, Ruby on Rails.NET, Python.NET and about 30 others. If you are interested in these, check out http://www.microsoft.com/learning/developer/default.mspx and download from http://www.microsoft.com/express/download/ (for free)

Actually all .NET languages share a Common Type System, and they compile into Common Intermediate Language, so really, all those languages are just one .NET language :), the differences are really mostly just a matter of syntax.

Anyway, I agree that he should have a clear idea of what he wants to do first. But C# or something in the .NET framework would probably be a good choice. I never worked in it, but a friend was showing me how easily he was creating an interface in their GUI interface builder, and it generated the code for him; that was nice and it looked easy. Maybe someone who actually worked with it could elaborate.
The downside of course is that this isn't really cross platform, but most of the people have wine emulators and stuff, so it isn't that big of a deal.
Just because they all compile to Intermediate Language doesn't mean they are one language. The concepts behind these languages can vary greatly (VB.NET vs C++.NET) and go much further than just a matter of syntax. However they all rely on the .NET Framework and can benefit from the enormous amount of built-in functionality.

For a beginning programmer I would recommend VB.NET (Express) because that is really the easiest language (very simular to plain english) to start building simple programs. The link I posted to Visual Studio Express would be a very good tool to start building GUI applications with.

Finally, you don't need "wine emulators and stuff". You just need Mono (for Linux)
 
Actually all .NET languages share a Common Type System, and they compile into Common Intermediate Language, so really, all those languages are just one .NET language :), the differences are really mostly just a matter of syntax.
Are Lisp, Java, Prolog and SML also just one language? I mean, in the end, they're all reduced to assembly since that's the only language the processor actually understands.
 
Actually all .NET languages share a Common Type System, and they compile into Common Intermediate Language, so really, all those languages are just one .NET language :), the differences are really mostly just a matter of syntax.
Are Lisp, Java, Prolog and SML also just one language? I mean, in the end, they're all reduced to assembly since that's the only language the processor actually understands.

it is arguably true. as a matter of fact i had just this discussion with a professor just before the semester was over. We were discussing the complete redundancy in the vast amount of all programming languages. I don't know if you've heard of Scheme? We sometimes jokingly refer to it as Lisp 2.0. I am not sure if there are other language like Scheme right now, but Scheme allows you to build macro's that effectively let you modify the actual syntax of the programming language. And the prof is now doing research on how to actually build other programming languages from Scheme. For example Java syntax was already pretty much reproduced in Scheme, and I'm sure more could follow. So his idea is pretty much that there should be one master language for programming. Theoretically this is a nice concept but I doubt it can ever work in practice, unfortunately. For example Java is very restrictive in it's syntax and rules, but maybe that's a good thing when you are dealing with hundreds of developers, each doing their own thing.
Anyway this is not a topic for this thread, but it's an interesting anyway.

and jeff, for that it seems VB.NET is indeed a pretty good start. I'm going to refer you to one website that I used when I was starting out with Visual Basic, it is basically just a giant forum where you can ask questions should you come across some difficulties:

http://www.xtremevbtalk.com/

good luck
 
I will do power point for now but since I want to be a programmer I wanted to get a little experience in making a program because right now I don't really know anything. I have some good resources to look into now and I will make the kind I want after I get sub 20 with COLL because I will really need it when I start ZBLL.
 
For a beginning programmer I would recommend VB.NET (Express) because that is really the easiest language (very simular to plain english) to start building simple programs.
Umm, how many (and what) programming languages do you know? It's ridiculous to say that any single one is "the easiest". I'd actually claim that brain**** is among the very easiest, it takes just a few minutes to learn and you can easily do simple things with it.

Being similar to natural languages isn't necessarily a good thing (ugh, just look at AppleScript). I prefer languages that look more like math than English.


We sometimes jokingly refer to [Scheme] as Lisp 2.0.
Why? Scheme is actually a Lisp-1, meaning it has only one namespace. Common Lisp is a Lisp-2.

I am not sure if there are other language like Scheme right now, but Scheme allows you to build macro's that effectively let you modify the actual syntax of the programming language.
Macros are common in all Lisps, and Common Lisp has even more powerful macros than Scheme.


Regarding learning Python: http://bash.org/?780063
Ok, I'll try:
Code:
fac 0 = 1
fac n = n * fac (n-1)

fac2 n | n == 0    = 1
       | otherwise = n * fac2 (n-1)

Yay, both work!
...but it's Haskell, not Python.
 
Last edited:
i actually like to agree with you Johannes on preferring languages that have syntax very similar to math. Natural Language is one giant ambiguous mess.

By the way, have you seen all the funny programming languages that people thought of, such as the LOLCATs programming language LOLCODE? :)
One other comes to mind called Chef:
http://en.wikipedia.org/wiki/Chef_(programming_language)
Also the Whitespace programming language? :D
One really crazy branch as well are programming languages where a program is just a picture. I'm sure you heard of most of the above

Programming Languages are so much fun :)
 
Back
Top