-
I started with basic, then did ASM coding and I think that gave me a better idea of how to create optimised code when i started writing in C
If i did it again I would definatly start with C, although dont be to quick to dismiss ASM, ive if you dont become a guru its a useful language to learn, especially if you wanna decompile and undertsand how malicous code works so that you can protect against it
I know you have stated programming language and what im going to suggest is a scripting language, but python ( http://www.python.org ), is great for beginers. I find it a great language for writing quick scripts to automate my jobs. You can even download a python 2 exe module / program to convert python scripts to exe's, python also works in *nix enviroments. There are many modules to do various tasks, one of my favorite is pyserial, for using the serial port
i2c
-
I'd say if you know nothing then yeah VB is ok. Its very fun and fast. But as a starting language it will only teach you some bad concepts. It will also make you very very very lazy when it comes to moveing on to something else. Well since I learned VB I picked up DB, basic, & (ect) litterally in a matter of seconds I made a hell of alot of things... I must have made like 7 programs that day... all of which were compiled in something based on basic.
Well thats fine. I did it for fun. But who uses DB besides maybe for something very graphical? Who still uses basic now days? If I want a REAL job, to produce worth while code, to not be limited to VB's sloppy mess, & make money off of what I create its all in some form of C. But however if I choose to sit around in a low end tech-support job for the rest of my life... I will most likely make databases in VB for some guy who knows nothing and later on in the day will pay nothing.
-
Sloppy programmers make sloppy code. Not the language. How many times do we need to have this discussion?
................/´¯/)
..............,/¯../
............./..../
......./´¯/'...'/´¯¯`·¸
..../'/.../..../......./¨¯\
..('(...´...´.... ¯~/'...')
...\.................'...../
....''...\.......... _.·´
......\..............(
-
well you see there is my problem
all the stuff i have read says 'now you are going to write your first programme ''hello world'' '
i get that
but then they peter out and do not show you any real working examples
i want to be able to write a programme like getleft, i understand what it does when i read the source code, but want to be able to write my own application
i would like to be able to set up my linux box to print of the first 4 pages of the new scientist ready for me to take to work each day.......(i have been reading to see if i can use cron to do this but all the help you get is how to tell you it is spring, summer or winter and echo a message to all logged in users. as much use a a chocloate teapot!! again it stop giving worked examples!!
see my point
so i want to find a well documented programming language with loads of examples...
few finished my rant
and the reason i want to write exe's is to write something really silly for all those windoz users!!
-
Well, I started in Euphoria (www.rapideuphoria.com). It has some nasty things though like non-32-bit integers, and a few little odd things. The language though is pretty good, it's interpreted (so it's pretty safe), but still offers some down in the grit functions. I liked it, it's got a nice setup, it's highly flexible, and it's just fun to code in whether you're just writing a short script, or building a full-fledged application. The free distro of it only has tracing for up to 300 statements (which is fine for a lot of your beginning programs), but only the registered version can bind the program for you to make it an exe.
It comes in windows and linux flavors. You can use the Eu->C converter to make C code (which is hardly readable) and compile that into a program. But again, the free distro puts in this little message that gives a euphoria ad before the program starts (/me is looking into removing that if possible).
After euphoria, i poked around in ASM a bit (not very successfully, but enough to get me educated about a lot of machine-level stuff). Then, I learned C. After C i dabbled in Perl a little bit (not anything amazing came out of it), and now i'm poking around in AWK. Once upon a time i did even write a QBASIC program or two. I played around with Java a little bit and tweaked example programs that were in the book as well.
But, more importantly, at present, i still code a bit in euphoria, but i'm working my way over into C for my stuff. After i grow more accustomed to C and thinking in C instead of euphoria, i'll probably use Perl for my scripting and interpreted language purposes.
So, you see, there's lots of fun languages. Really, i'd recommend you don't START with C, but it is still a nice language. I think you should start in some type of language like Euphoria, Delphi, Pascal, or Python. After that though, do whatever you want. In the job market, C++ and Java are pretty important, but as for hobbyist coding, i'd suggest a slightly more relaxed scripting language or something like that. You could always learn both and port the programs from one language to another for good practice.
-
Quote:
Originally posted here by yellowcat
well you see there is my problem
all the stuff i have read says 'now you are going to write your first programme ''hello world'' '
i get that
but then they peter out and do not show you any real working examples
i want to be able to write a programme like getleft, i understand what it does when i read the source code, but want to be able to write my own application
i would like to be able to set up my linux box to print of the first 4 pages of the new scientist ready for me to take to work each day.......(i have been reading to see if i can use cron to do this but all the help you get is how to tell you it is spring, summer or winter and echo a message to all logged in users. as much use a a chocloate teapot!! again it stop giving worked examples!!
see my point
so i want to find a well documented programming language with loads of examples...
few finished my rant
and the reason i want to write exe's is to write something really silly for all those windoz users!!
A "hello world" program is a standard for learning a new language. I suggest you READ the entire book front to back, and then again. Do ALL of the example programs, and make sure you understand what each line is doing and why before moving on to the next. "Programming" is much, much more than opening an editor and "coding." If you don't have a solid foundation of the basics, you will not have the understanding to move on to bigger projects.
There is no way around this. If being a programmer is something you want to do. Then do it right. Otherwise you're wasting your time.
-
fair point
and taken on board
(i am too impulsive and expect infinate knowledge imediatly..... i understand the basics and get furstrated why i can not programme my own operating system!!)
will re read the book i have on liberty basic (for windows) form fore and arft and back again like you say
i supose programming is a bit like skiing!!
-
Quote:
Originally posted here by SexyBadGirl
Sloppy programmers make sloppy code. Not the language.
Actually no thats not always the case. Let me give you a example. If I play with XOR operators so that it adds random values and positions my hello world texts into random places on the screen then when I compile it as a stand alone *.exe without adding the huge midi and X graphics it will come out to be around 400KB to 600KB in size. DB is really more or less a scripting language when you really thing about it. I could have just done the same thing in VB without playing with the settings to produce a small *.exe and it would only compile to around 30KB to 100KB in size and it could do the exact same thing.
And another thing... why do VB programers get so sloppy and lazy in the first place? Well maybe its because its so friendly that even my dumb dad can code in it and speaking of friendly VB corrects you with almost everything. Do you need to worry about includes... no everything you need can be point and clicked into your project. Oh and as for example source code... it is really shity so that soon you too can one day make some crap code :)
Oh and BTW if you ever want a job programing and if you have wasted many years learning many things... VB makes it so that if you program in other things you'll either be replaced within a year or so by a monkey who can make "Rapid and productive" piles of **** waiting to be fixed... And since you have more codeing skills you'll get a new position in tech-support where you will fix the work & mistakes of other peaple whom know nothing at all.
-
Quote:
Originally posted here by Juridian
Bleh @ C . C++, and grab stroustrups book on the language.
Stroustrup's book is an excellent reference book but not, in my opinion, the best guide to actually learning C++. Wiley's Teach Yourself C++ (Al Stevens) or Practical C++ Programming (Steve Oualline) are much better to start with.
TheSpecialist: I've made money off VB programming, when a GUI for a engineering program was needed in the space of a couple of weeks. Sure, it's not portable beyond Windows, but it supports Rapid Application Development (RAD) just like Delphi, so don't dismiss it too quickly.
-
printing out the new scientist is a cool idea, I havent looked into it but are there any consistancy in the URL? becuase if theres not then it could be quite hard to point the program at the correct place to download from
i think a scriptting language would work best for this task, add it to the startup on your linux box, sorted
i2c