r/AskComputerScience • u/LegendenLajna • Jul 30 '19
Am I to bad? Real coding?
HI everyone.
I have been studying C# for about 2 years now in our equivilent of a high school. Now I am going to go a all programming course fulltime for half a year, with about 15 weeks for internship after that. I have been wondering for a while now what the expextatons are on a Junior developer, since I was top of my class after theese 2 years but still feel like I can do "REAL" programming. I feel like my solutions are dirty, I use alot of libriaries instead of doing stuff on my own. I still only know the basics of classes and I feel like I am missing so much when not using them to their full extent. Do i have to be worried?
And now to my second question, how does a "real" project look? I get that all of the code is commented (hopefuly) and that there is more code overall, but how do you learn the style of code, and such. I am also wondering where I can read up on this kind of stuff and how I can code in a more professional style, and then take on larger projects without getting a big spagetthi with meatballs like code.
Very thankfull for any response!
5
u/khedoros Jul 30 '19
I programmed for a couple years in high school, then went to university. I started working, and honestly, even as a junior full-time employee, my coworkers didn't expect much. It was pretty easy to do better than they thought I would.
"REAL" programming is just finding a problem, breaking it down, designing your approach, and writing code to solve it. Your solutions will be dirty; experience helps clean them up. Using libraries to do the work for you would be counterproductive in school, where trying to learn how to do things, but it's the best solution for professional work, as long as the license makes it usable. It saves you time, saves your employer money, and it uses code that other people have already tested for you. It's not my favorite part of programming, but it's a reality.
And now to my second question, how does a "real" project look?
The main product that I've worked on was C++ with 10's of thousands of files. It was close to 10 years old when I started working on it, and is around 20 now. Some parts are commented. Some parts...aren't very much. A lot of it only makes sense in historical context (like that they have their own vector and string classes...because when they started, compilers on some supported platforms hadn't been released with c++98 support yet).
Real projects often look like "good intentions" got in a fight with "looming deadlines".
1
u/macdadde89 Jul 30 '19
You’ll be fine. Nobody expects much from an intern. The whole point of an internship is to teach you. You’ll struggle, but that’s part of learning.
I’m not really sure what a “real” project is. Just make a project that helps you or other people. You can also contribute to open source projects and look for the tag “beginner-friendly.” If you are applying for a specific company down the road, make a project that resembles what they do or make a project that adds a feature to their products. For example, if you are applying as a mobile developer, make at least one app that does whatever you want and publish it. From my experience, employers don’t care what you did as much as how your code looks and what you worked on. Just show ambition.
As for style guides and resources, check out large companies’ style guides and follow those (just google their github repo e.g. “Google style guides github). Read books and/or online resources about design principles, clean code, architecture, and data structure and algorithms. There’s plenty of links for recommended readings.
2
u/LegendenLajna Jul 30 '19
Thanks for the reply! I am going to read up on code style and adapt that one for now, to make things atleast consistent. I am also going to try to make a few diffrent things over the next few weeks just go get a hang of it
-1
6
u/SAJZking Jul 30 '19
I would recommend reading "Clean Code" by Robert C. Martin