From tutorial to programmer - how?

Status
Not open for further replies.

Thegn

Ars Legatus Legionis
14,610
Subscriptor++
On my phone, so I apologize for crappy spelling and formatting.

I majored in software dev 24 years ago, dropped out of college for unrelated reasons to my chosen major, and ended up doing it support by default. I occasionally go run through a tutorial (just did this with the python tutorial at code academy) and end up wondering what I should be doing next if I want to actually go somewhere with it. The language tutorials are very easy for me - I understand the core concepts of OOP, just relearning how these devs have chosen to implement it. The problem comes from trying to figure out where I go next, to turn it from something other than a hobby.

(My current screwaround is following some guy's 40 part "write an RPG in XNA 4.0" tutorial)

Edit: question is what should my next steps be?
 
Write a meaningful (to you) program. Language and platform don't really matter as much as just doing it. Games are popular for this. I once spent six months writing a tank wars clone in C++, for example. When you hit a "how do I do X" roadblock, fire up Google and start researching/experimenting with different solutions. Rinse and repeat.

If you're trying to make a career out of this, you have an uphill battle to get hired as a dev anywhere without a recent degree or experience. One way around this, and an excellent way to hone your programming skills once writing personal apps gets easy/boring, is to start making open source contributions.
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=28021679#p28021679:2qy41fip said:
Korov[/url]":2qy41fip]Write a meaningful (to you) program. Language and platform don't really matter as much as just doing it.
Very much this. Find a need that you have and don't have a piece of software ready at hand that solves that need. Using whatever language you're learning; write it. It certainly doesn't have to be anything complex so long as you know what you need (or want) the program to do then you can figure out how to do it. Once you've got it implemented then go over it with a fine toothed comb. Take a look at the standards for the language you used and try to identify how your code compares to those. Provide your code to others and ask them to review it so you can find issues with your style or implementation that you don't know about.

If you know the basic program flow that you need and you know the basic syntax and semantics of a language then the rest of learning the basics is answering the "How do I do X in <language>. The best way to begin answering them is to simply write something. Experience with (and reading about) the language will teach you the semantic sugars of the language as well as any unique concepts that may exist within it.
 

Thegn

Ars Legatus Legionis
14,610
Subscriptor++
Finishing my bachelor's degree isn't off the table - I've got an aa and some post-aa credits. As mentioned, I'm doing the XNA (I know its being discontinued, hoping that Monogame picks up on that front) thing and will be cranking out my own roguelike once I'm feeling a bit more comfortable.

I think what I'm looking for is more on the art of programming - there was a book I read in college (sadly lost) that really broke down oop and finite state autonoma in a clear way for me. More resources like that are what I'm looking for.
 

Jehos

Ars Legatus Legionis
55,560
Some good advice here.

Finishing your degree will be the biggest thing you can do. If you came and applied with me with a recent CS degree, I wouldn't care how old you are. People change careers all the time. The fact that you're motivated to learn new stuff is a good thing.

I also agree with writing apps on your own or contributing to open source projects. Proving that you can do the work is also a good thing.

Doing both makes you totally hireable as a developer. Just put together a resume, and your cover letter story is "I've done support for X years, I've always been interested in programming, so I decided to make a career switch".
 
I struggled with learning to program for many, many years, until I finally made a certain decision; since then I have learned enough of several programming languages to be able to write useful code, and for C#, JavaScript/jQuery, and PHP I went beyond that cursory level of learning and went much deeper than with other languages. Here’s how I did it, with a little bit of prior history up front:

I have used computers since I was less than 18 months old, and I am now 25 years of age. Both of my parents work in computer-related fields: my father as a Linux sysadmin and my mother on the hardware end of things with network switches and that sort of kit.

I had always wanted to learn how to program, but I always ended up giving up in frustration before I could do much that was useful. In second grade I learned enough BASIC to be able to draw shapes with the ‘turtle’ in thee school computer lab, and in high school I tried out DarkBASIC, which is a 3d-capable game engine of sorts (neither object-oriented nor functional, though closer to functional than anything else. I managed to get a 3d model of a dude to be able to walk around on some random-height terrain using DarkBASIC, and that’s as far as I got.

So about four years ago I said ‘eff it, I;m gonna learn to make a game with the Unity game engine or die trying!’ And so I tried learning C3, but again I was unsuccessful. There seemed to be some sort of fundamental disconnect between code and my thoughts; I have always had a terrible time learning other languages (got furthest with German and Japanese, but failed miserably at the romance languages). I would have some idea of what I wanted to do in my mind, but by the time I had looked up how to do it in whatever programming language I was trying to learn, I had lost either the idea or the inspiration to implement that idea.

Everything changed three years ago. And here’s the part where I explain what I think you should do to gain a working knowledge of a language, ie. the ability to do useful things with it:

Take a language you want to learn, and recreate something that already exists with that language. When you feel frustrated, push through it; literally force yourself to not give up.

For Unity and C# specifically, I decided I would recreate an old PPC pre-OSX Mac game called Pegleg. I encourage you to find a mac, download an emulator for classic Mac PPC stuff, and play the game. It is the most fun spaceship arcade game I have ever played, and that’s not just nostalgia speaking from playing it in that same computer lab where I tried learning BASIC in grade school.

The idea here is that you don’t have to try and maintain your inspiration for making something up from scratch while going through the first few extremely frustrating and painful days; instead you will have a fully-finished idea of what you are trying to create right there in front of you. I could open up my classic Mac emulator and play Pegleg and see exactly what it was I was trying to create.

Naturally, the first few days - probably the first whole week - you’re gonna spend about 98% of your time scouring the web for information on how to do some totally trivial thing. Thankfully there’s a full reference guide for C# and the Unity APIs on the Unity web page, so I had a reference that was easy to find. It’s gonna be shitty, it’s gonna literally hurt; your brain is going to complain and be frustrated and want to give up. But if you power through it by sheer force of will, and keep your eyes focused on the end goal that you are trying to emulate or recreate, you can push through that first week, and it will become much easier. You will still spend time looking things up, but it’ll be closer to 10, 20, or 30% of your time, instead of 98%, with the rest of the time spent coding.

Around the third week or so I began to realize that I was thinking in code; this is the point that second-language teachers stress: you need to stop thinking in English and then translating to Spanish or whatever and just think in Spanish to begin with. Likewise, you will begin to be able to conceptualize what you want to do and the implementation will be fully-formed or at least mostly-formed in code, with no ‘thinking in English’ between those two steps.

Doing this I ended up getting good enough with C# and Unity’s various functions that I finished up my Pegleg clone and began a realtime with pausing for planing tactics game. I never finished that project, but I go back to it every month or two and continue to write more code, both to keep chipping away at it cause the task is so huge but also so as to keep the incredibly hard-won C# knowledge I gained fresh.

Now, I would say that learning through copying something that’s already extant might just be a fluke if I used that method once. But I also used it to learn HTML, CSS (now I use SASS, but I digress), JavaScript for the web (and jQuery as well, plus various jQuery-based extensions), and finally PHP. I will skip the details of learning HTML, CSS, and JS, because those weren’t so hard; PHP was the hard one.

And so I decided I would recreate Wordpress. Yes, that’s right: I picked the hardest task I could think of. And that’s the other key to my method: choose something to emulate, but also make that choice something that will be incredibly hard to do when starting with no knowledge of the language in question, provided that you’re seriously dedicated to just powering through whatever frustration you will feel (and you WILL feel frustrations!)

One and a half months later, starting from exactly 0 PHP knowledge, I had a fully-functional blog engine using MySQL and PHP, with comments, posts, pages, all the relevant display code, logins with reasonable security, etc etc. I had achieved my goal, and was now proficient in PHP and MySQL in addition to all the other web-related stuff like JS.

I do not claim to be an expert with C#, PHP, or anything else; that takes years if not decades. But I consider that I have learned more than I ever imagined that I could in a period of time that was so short it shocked me. I gained a newfound appreciation both for my determination to do something despite any unpleasantries as well as for my capacity to learn things I decide I want to learn.

Whether or not this method will work for you I cannot say, but I used it to learn C#, HTML, CSS, JS, jQuery, and PHP/MySQL in the course of a year and a half, when I had spent literally the entire prior portion of my life struggling to do even the most basic things with code. I hope it might be interesting you you and I hope that it works for you if you decide to try it!

In summary: dedicate yourself to recreating an already extant thing - whether game or blog framework or responsive web-designed website. Decide that you will simply not fail. And choose something that is hard to implement. Then just do it.

Cheers, and good luck!

EDIT: There's two things I realized might be good to mention. The first is that I learned enough HTML, CSS, JS, and especially PHP/MySQL that I am currently working a two-month contract job creating the online catalog for a small, local business using MySQL and PHP. So using the method of recreating something that already exists - preferably something that will be incredibly hard to implement with zero knowledge of whatever language you're aiming for - is actually capable of teaching you enough to be useful in 'real life', ie. not just as a hobby thing. I'm not suggesting you're gonna become the lead programmer in language XYZ for the Fortune 500 company ABC by recreating something that's already extant using that language, but it did teach me enough that I can make extra cash by answering Craigslist employment ads or ads on various job boards.

Second, when you've recreated whatever you were aiming for, come back six or nine months later and recreate the entire thing from scratch - NO reusing code. This does a few things: first, it's just a fun exercise to see how much better you are at the language and how much smaller and tidier the code is - I'm currently rewriting that blog engine from scratch with a code reduction of about 40%. Second, it will teach you things you didn't learn the first time around by being able to think 'gee, how can I do this better/easier/with less code?'. And finally it will produce a better end product, should you aim to use that end product for something, as is the case with using the end result from my current rewrite of my blog engine for the website of my music recording, mixing, and record producing business, which is my day-job. By redoing it (and specifically redoing it with a focus on building in security from the first line of code instead of tacking security on once I had the prior fully-functional blog engine) I will have a much more effective, better, cleaner, and more secure website in the end.
 

MilleniX

Ars Tribunus Angusticlavius
8,138
Subscriptor++
The path with the least friction to actually getting hired, and in a job with the kind of income to make the career-change worthwhile, is definitely to finish your degree. I would start by calling around to programs near you or offered online and asking them what you would have to take given what you've already done. If you find a university with an industrial co-op program, sparing you the issue of getting an intern placement as a non-traditional student, you'll have recent applicable experience when you're actually applying for jobs.
 
I think there's a more important question: what do you want to do with programming? There are so many different things that fall under programming, and it's not really possible to learn them all concurrently. The actual act of programming is really an issue of 1) learning how to express what you'd like to do algorithmically, 2) learn how to implement algorithms in code, 3) learn how to implement the code for some system. What you want to do impacts each step pretty greatly.
 
[url=http:/civis/viewtopic.php?p=28022501#p28022501:2qphq9pd said:
InThane[/url]":2qphq9pd]Finishing my bachelor's degree isn't off the table

That could be a problem. It should be.

A degree in CS is useless. No one knows how to educate a programmer. Getting a degree in CS is a lot (identical in my opinion) like getting a degree in 18th century English poetry; unless your goal is to teach the subject you don't need the degree, and if you get the degree, you still won't know how to teach the subject. If you know how a computer works, can use and editor, run a compiler, use a debugger, you're most of the way there.

Write software. It's the only way.
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
That's a facile generalization. CS degree exposes you to things you Should Know, even if it doesn't teach it to perfection. "Write software" doesn't teach you how to do algorithmic analysis or help you understand type theory; you have to know what exists, and how it fits into the grand scheme of things. And, yes, both are critical skills to be more than a grunt-and-grind monkey coder.

(I know one self-taught programmer who I would hire. He posts here. I have worked with around a dozen. I would hire none of them.)
 

Kilgaine

Ars Tribunus Angusticlavius
9,459
I'm attempting this as well. I'm good at going through tutorials, and most of the concepts make sense to me, but yeah, I haven't pushed myself to take the time and actually plan out my own program to begin working on. It's a big step, and it's difficult to do that. I get the feeling once that's done, things begin to really come together. I went through most of "Learn Python the Hard Way" until I got to the part where I was supposed to make my own game. I spent a week or two thinking about it, coming up with good ideas on things to do. Basically a simple text game with a small number of rooms or "scenes", and I thought about adding some other stuff, like a help, or menu that showed possible commands, and also a semi-random combat system. But I never even took the first steps for some reason. :(

Now I'm going through a book on C#. I figured this is probably more useful for myself and the environments I work and play in. Hopefully when I get to that same point (make your own program) I'll actually do it this time. There's a lot of things in C# that are a bit confusing at first, I think especially since I used that Python tutorial. First off, using an IDE. I'm sure that makes things easier very quickly, and I can already see a lot of the benefits as compared to Notepad++ that I was using before. But the book I'm using for C# basically tells me to cut out the canned code on a new project and write in new stuff, and I'm not exactly sure why. It also means that if I forget to remove one of the files, then even if I have everything typed in correctly I was hitting errors.

Could anyone recommend a C# book that's relevant and good? I know a book can only help so much, but I think it's useful for some of the basics of C#, and also programming in general that someone from the outside might not know.

[url=http:/civis/viewtopic.php?p=28022331#p28022331:1e1k7pdd said:
Blacken00100[/url]":1e1k7pdd]Spend ten thousand hours making things you care about and throwing them away because they aren't fucking good enough to be seen by other people whose opinions you respect.

Worked for me, anyway. :|
You probably don't respect my opinions, you can always show that stuff to me! :p
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
@Kilgaine, forget the books *code*
If you can't think of something you want to write that's not a good sign but you could just start seeing how far through project Euler you can get.

Coding is a learned skill that, like many, improves with directed practice and constructive criticism.

Also degrees in CS are far from useless, they just don't make you a programmer on their own. There are very smart self taught people who don't need one (PeterB is another good example from the fora, even if rarely present in this one now) but if you really want to be a good programmer then you will likely end up teaching yourself all those things. Most people benefit from help in doing so, both from experts and peers.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
[url=http:/civis/viewtopic.php?p=28187687#p28187687:1t23xqt6 said:
Kilgaine[/url]":1t23xqt6]Fair enough, and I appreciate the response. :)
I literally shudder at the thought of code I wrote from 15 years ago. Literally, it made me shiver when I recalled the horrors.
I would be embarrassed at the stuff people find in SVN (of a CVS export, of a VSS export) at my current place were it not for knowing that the people finding it remember their code from a decade ago too.

I sincerely hope I think back with derision on my code now in a decade because it will mean I got *better*
 
Status
Not open for further replies.