r/learnprogramming • u/jpayne0061 • Sep 23 '19
Are you cut out to be a programmer?
The short answer is YES. If you want to be.
I see posts all the time on this sub, which are basically asking this same question. And for good reason! Programming is hard for most people. Myself included. Personally, it took me about a year of practicing every day before it clicked.
But there are lots of difficult things that people learn that are complicated. Right now, your brain is performing an extremely complex task, which is reading English. You probably cannot remember learning English, but I can assure you that you sucked at it for the first few years! The trick to learning it was constant practice and not giving up.
Are some people naturally better at speaking, reading and writing the English language? Yes, of course! Some kids sound eloquent at the age of 6, while others sound like a caveman. But as adults, most people have learned English well enough that they can communicate their ideas to others, and that's what matters most.
The same goes for programming. Most of us will struggle along like toddlers learning their first language until eventually, we are writing complex logic and apps that get the job done.
One of the biggest tips I can give new learners is to NOT focus on learning a framework or specific technology. Start with a popular programming language with lots of community support, like python or javascript, pick a course/tutorial/book/whatever and stick to it. You should be watching/reading videos about 25% of the time and trying to program your own stuff (even if it's just a slightly different variant of what you're watching) about 75% of the time.
Also, in the beginning stages of learning programming, write your logic down ON PAPER before you try to type it into your machine. Programming syntax is precise, and bouncing back and forth between syntax and logic is extremely difficult for beginners. Writing stuff down on paper will allow your brain to focus on the logic. For the record, I have been programming for about 5-6 years and still write down complex logic on paper before I program it.
Yes, you are cut out to be a programmer. If you can read this post, you're not too stupid.
3
Sep 23 '19
I am taking my first intro to programming logic class and we just started loops, accumulators, counters, and now we are on arrays.
Is is normal to feel completely overwhelmed?
3
u/mikeymop Sep 23 '19
The syntax is scary at first.
As you look at it more. And more permutations of it it starts to become easier to imagine and understand.
Eventually you'll do data structures like linked list, stack, and queue. It will look like black magic but as you keep doing them the same will happen.
You just gotta grind, just like math.
1
u/jpayne0061 Sep 23 '19
Absolutely it is. Learning to program is hard for most people (even smart people!). Don't be discouraged if other people catch on quicker. Just keep up the work and try not to get too frustrated. If you're getting too overwhelmed, take a 5 minute break and walk around for a bit.
Keeping with the language analogy, if you walked into a German class and the teacher starts speaking in German, it would be normal to be confused and overwhelmed. But just take it in stride. Keep up the practice and eventually things WILL click. It might take a few months for some topics to sink in, but it will happen.
There have been some topics that took me as long as a year to truly understand. Sometimes, I would just work on other programming topics for a while and come back to the topics later.
3
Sep 23 '19
not everyone is cut out for programming. it does have a pretty high bar when it comes to intelligence. that said, people who really want to learn programming after trying it are probably able.
anyone can learn it, but it will be a nightmare for some and challenging ride for others.
1
u/jpayne0061 Sep 23 '19
I guess I could have elaborated on the definition of "cut out".
The craft will almost certainly be very challenging for some people. Whether or not they enjoy it and keep up with it is their decision
3
u/buffjeremy Sep 23 '19
Yes but I’m not trying to get a job reading English. Just because I can eventually get something a little bit doesn’t mean I should attempt to enter a job market doing that thing when millions of others will be better than me
0
u/jpayne0061 Sep 24 '19
Why not? There are probably tons of programmers better than me, but I still like my job and my employer is happy with my work
2
u/Ariahx Sep 23 '19
I'm currently studying CS in college (java) and I basically wasted a whole year, just being lazy. I'm trying to get back in the grove to not waste all the money and time I have already put into learning programming. How many hours do you think I should put in daily to catch up to where my school is at right now? My knowledge of Java is miniscule right now.
Also, in the beginning stages of learning programming, write your logic down ON PAPER before you try to type it into your machine. Programming syntax is precise, and bouncing back and forth between syntax and logic is extremely difficult for beginners. Writing stuff down on paper will allow your brain to focus on the logic. For the record, I have been programming for about 5-6 years and still write down complex logic on paper before I program it.
Could you elaborate more on this? I don't understand what you mean by "logic" when talking about programming. Thank you for this post.
Edit: wanted to clarify that I lost a year not because I was lazy but I was busy with work. Wasn't trying to give off the vibe that I just gave up at some point.
2
u/jpayne0061 Sep 23 '19
When I was learning part-time, I spent 2-3 hours a day. But everyone is different.
Regarding writing the logic down on paper...there is a simple, famous programming problem called "fizz buzz", or something like that. Essentially, given an array of numbers, you print "fizz" if the number is divisible by 3, "buzz" if it's divisible by 5 and "fizz buzz" if it's divisible by both.
Instead of jumping right into code, you might write down the rules on paper, like so:
for each of the numbers: if it's divisible by 3, then print out "fizz" if it's divisible by 5, then print out "fizz" if it's divisible by 3 and it's divisible by 5, then print out "fizz buzz"It allows you to separate code and the actual logic
4
1
2
u/VirulentCitrine Sep 23 '19
What would make learning programming much easier is if people in the programming world were more friendly and less anti-social, honestly.
Even as an experienced programmer, if I go to a language specific subreddit of a language that I just started learning, and I ask a simple question about it, most of the responses are defensive and nasty as if you're insulting their mother tongue. By and large, this is the sentiment across the programming sphere and it would do the entire field good if it changed to a more positive attitude. I think this type of experience is why companies like Github have had to institute strict code of conduct guidelines pertaining to behavior because programming discussions, especially related to questions/bugs, tend to turn into screeching matches (happens frequently on Github).
1
2
u/accordingtobo Sep 23 '19
Even as an experienced programmer, if I go to a language specific subreddit of a language that I just started learning, and I ask a simple question about it, most of the responses are defensive
Most of these types of questions only ever appear because the askee did not do their due diligence before asking, or if they did do their due diligence, they did not provide enough information when asking.
To your assertion that "most responsive are defensive" it is simply because most questions of this nature do not show the least bit of respect for their implicit demand on their peer's time and attention.
Should I agree with you, that the people who respond need to observe some courtesy then the same thing applies to the people asking questions. But that isn't what happens.
Mostly, what happens is someone doesn't do their due diligence. They ask their question, and then they have the gall to be offended because "The community is toxic" when someone tells them to go help themselves to the veritable treasure trove of free knowledge available by a simple search.
Frequently, if you type the exact same question they posted into a search engine it will yield one or two relevant Stack Overflow posts that could help them solve their problem.
Is answering bluntly really "anti-social" behavior? I don't think so.
I do agree with your latter point about discussions devolving and needing to have proper decorum then, but I see that as a separate issue to the specific first example you brought up.
2
u/meecro Sep 24 '19
And often, they don't bother to learn how to use google search correctly, that is, defining their question, use search parameters, etc. Sadly, a lot of times it isn't researched by the person asking the question. Like you said, don't do their due diligence. The researching of a problem, structuring the question/explaining the problem, that is all part of the learning curve. Sometimes i believe that it doesn't help very much how programmers/hackers are portrayed in media too.
2
Sep 23 '19
Not really you have to be able to do high levels of math in order to be a good programmer. Most people wash out of Comp Sci because of the math.
1
268
u/I-AM-NOT-THAT-DUCK Sep 23 '19
See I’m at this weird stage where I’m more of an intermediate java programmer (finished two courses on it in school and working through DS&A now), but I can’t seem to want or find something that I want to work on in my spare time. I love to code. But I can’t find something that I want to code if that makes sense.
144
Sep 23 '19
just try to replicate stuff, build tetris or twitter
80
u/I-AM-NOT-THAT-DUCK Sep 23 '19
Yeah I was thinking that. Then I find something I want and don’t know where to start, so I end up watching a guide on the whole thing :(
113
Sep 23 '19
Then you aren't really an intermediate java programmer, which is fine. Keep doing the guides but don't just repeat stuff. Try to make modifications and add features.
1
u/BlueAdmir Sep 23 '19 edited Sep 23 '19
Eh, disagree, it's ok to use someone's already-built foundation if you build your own stuff on top of it.
70
u/EMCoupling Sep 23 '19
That's not the problem he was talking about. Even seasoned developers leverage pre-existing code to build something new.
He's a beginner not because he's using other people's resources as a guideline, but because he doesn't even know where to start.
22
Sep 23 '19
This is right, and it's also one of the reasons I see people easily discouraged by programming. They think they're intermediate when they complete a few college courses on a specific language, but programming is like music, and both are like learning a foreign language. You can learn to read someone else's work, but (unless you're a prodigy) you need practical experience before you're going to be able to create your own ideas and turn those into form.
There's nothing wrong with being a beginner or true beginner even. It's just that you do need to learn to walk before you can successfully run and then run for a long time before you're ready for the marathon.
7
u/I-AM-NOT-THAT-DUCK Sep 23 '19
You’re completely right. I don’t care what label I possess, whether that be beginner or intermediate. My point was that I know OOP, most data structures, design etc.
7
u/Little_Shitty Sep 23 '19
I don't worry too much about what label describes my skills or whatever. I've been programming for 20 years and I often feel inadequate, or like I don't know as much as others, or I don't know the latest trendy thing. The bottom line is, I've been employed in it for two decades, people are happy with my work, and I make a decent living. Put whatever label on that you want. Maybe I'm saying try to get a job and you'll feel like you don't know shit until you learn that shop's environment. You're still getting paid and learning every day.
4
Sep 23 '19
Good attitude. There is importance in labels. They tell you where you should be going and what you should be doing. For someone with your level, where you understand the basics (or more?) of theory, I'd point them to Project Euler. https://projecteuler.net/archives
This more math and logic than actual programming, but the beauty is that it's not about solving the problem. Solving the problem is easy. It's about understanding the language well enough to solve the problem quickly. It's about building efficient code you can then reference for later projects which build on these functions.
1
16
u/Shipdits Sep 23 '19
Start by breaking it down. What do you need?
You need to make blocks that fit together.
How do you draw a block? Or part of a block, start there.
How do you move that block?
How do you make different shapes out of that block?
How do you move the block against a background?
How do you stop a block once it hits the "bottom"? How about when it hits another block?
And so on.
Break a larger task into smaller chunks and work on how to implement each step.
5
u/R1psaw Sep 23 '19
This is fantastic advice. You need to know exactly what it is that you want to make before you can start writing it out. The same logic can be applied to almost every aspect of life.
4
u/Inoko Sep 23 '19
Absolutely. And computers are STUPID. Get in the habit of listing out all your assumptions and "everyone knows that" steps. It's not just "get bread and spread jam on it," it's "make sure you already purchased bread, open the bag the bread is in, select two slices, remove them from the bag, place them on the counter. Open the fridge, grab the raspberry jam, place it on the counter, open the lid, open the drawer, grab a knife, put some jam on the knife, spread the jam on one piece of bread." etc. etc.
The higher level the programming language, the closer you get to "get bread, get jam, make sandwich" but the lower the level the more explicit you have to be. And as a newbie, learning to be explicit is heckin' helpful.
5
u/Berufius Sep 23 '19
I hear this a lot and for some people it works. For me it doesn't. I can't see the usefulness of building something that's already been done a hundred times better by others. I often felt stupid because I couldn't set myself to just 'make' something.
What helps me a lot is a real project. A project in which my work matters to someone else. For me, and I know this is personal, this helped me to learn, try, make mistakes, take courses, etcetera. I do small projects for my brother's business and he is really helped by my beginners work. This gives me much more satisfaction and incentive to learn than 'just' recreating someone else's work.
0
Sep 23 '19
[deleted]
9
1
u/manere Sep 30 '19
Fun fact. I did a simular example as you are doing in university and it was the first and last time I ever used modulo %.
39
u/ColombianoD Sep 23 '19 edited Sep 23 '19
Tip: create a full stack web application and SDLC process from scratch. You’ll learn an unbelievable amount that, when you talk about it in interviews, gives you a metric ton of brownie points. It also makes interviews SUPER easy because say you get asked about REST services, you can easily pivot to “yeah so when I was creating my site I required several REST services, which did X Y and Z”
I interview CS masters students all the time who don’t know Java from JavaScript. The people I love as an interviewer are the ones who have hobby projects they can describe in detail — being able to reason out to me why you went with Option A design choice instead of B are almost always getting offers. The reasoning doesn’t have to be perfect, just showing a bit of due diligence inspires great confidence in competence.
Like describing why you went with Angular instead of React on the front end, or why you went with websockets as opposed to REST, or why you went with mongo vs a relational database.
No one in this industry knows everything, but people with the curiosity to figure out why there are different ways of doing things are 100% the people I want on my team
15
u/madmax299 Sep 23 '19
I interview CS masters students all the time who don’t know Java from JavaScript
I keep reading stuff like this. Even in an interview last week my interviewer had to make sure I knew what a linked list was because he had CS grads who didn't know.
being able to reason out to me why you went with Option A design choice instead of B are almost always getting offers.
I also do this multiple times for multiple projects in almost every interview, but I have not gotten any offers. I feel like I am doing everything right and standing out from the crowd. Where do I find interviewers like you?!
5
u/TheShepard15 Sep 23 '19
Honestly some offers are a wash before you even walk in the door. Many of my offers were pretty much locked in before the interview started due to me knowing people at the company. Other times I've be sitting in an interview where the one's asking questions just so happen to all be from the same school. And sure enough the position is filled by another alum.
Theres a billion stupid reasons not to succeed in an interview, some of those you can control, but some you cant.
0
Sep 23 '19
[deleted]
5
u/SIG-ILL Sep 23 '19
Joking around during an interview is a requirement for your company? Could you explain that? Not asking in a criticizing way, I'm just very surprised and a bit confused. Could be a cultural difference thing?
5
u/yakri Sep 23 '19
It's about personality fit. We have built a really friendly group of people and we want to hire someone personable that will get along with us. Both candidates that made it to interviews met this criteria last time we hired for something.
6
u/SIG-ILL Sep 23 '19
Interesting. I've yet to meet a software engineer (in person) that possess both such a great personality and great technical skills, so it's nice that you're able to find them for your company . But even if I did, I doubt they would be joking around during a job interview, I feel like at least in my region/country that's generally not really appreciated and makes someone look like they're not taking the interview or themselves seriously.
1
u/yakri Sep 23 '19
This is in the USA along/adjacent the west coast. I'm in Phoenix AZ specifically.
I'm sure there are places where things are a little different here as it is a big country after all, but it's at least not rare in this area.
Just keep in mind that when I say joking around I mean we all have a good chuckle at some nervous flubs, maybe a couple jokes we can relate to come out, maybe a few opportunistic quips come out, and we usually set the lighter tone ourselves in the second half of the interview after technical questions.
It's not like a circus clown act we're just looking for someone who's not completely over serious, and who's friendly.
3
u/Little_Shitty Sep 23 '19
Haha, yeah, but, I'm funny how? Funny like a clown? I amuse you? I make you laugh? I'm here to f***in' amuse you?
** crosses name off list **
→ More replies (1)1
u/SIG-ILL Sep 23 '19
Alright, setting the lighter tone yourselves sure helps and makes it easier for me to understand/picture how such an interview would work. Thanks for the explanation!
1
u/randomWanderer520 Sep 25 '19
Me and my interviewer joked around during my interview. Talking about building a compiler for a cs class, and how horrendous it was. What kind of joking do you mean?
3
u/sqrk_ Sep 23 '19
I'm also surprised and I feel like there's no way for me to know whether that's wanted behavior. I could have the biggest energy and be the funnest person in the world but I wouldn't do it in that context, because I'm afraid of exactly that, not getting the job.
5
u/yakri Sep 23 '19
There isn't any way to know exactly how people want you to act.
It's best to try and just be the best version of yourself. If you manage to get hired by misrepresenting your personality and attitude, at least you'll have a job but possibly neither you nor your new team will be happy about it.
I can't in all actual honesty recommend total honesty in interviews or in life in general, but if you manage to "cheat" your way in past culture/personality fit you're kind of shooting yourself in the foot.
1
u/sqrk_ Sep 25 '19
It's not to the point of "cheating" or seeming like a person then turning out to be a different one. It's just not knowing if that entreprise tolerates humor. If I get hired and then see that people are easy going then I'll act the same way. If I see that everyone keeps it strictly to professional stuff then I'll do the same. Especially as a fresh graduate who's desperate to get an offer.
7
u/soriel Sep 23 '19
Where can I learn more about this stuff? I dabbled in full stack, but all it did was effectively allow you to post text to a database and view the public records of it. I would like to learn more about things like React and REST services, do you have a recommendation as far as a starting point?
8
u/Rogermcfarley Sep 23 '19
The Odin Project and Open App Academy have two well structured courses which are free. Open App Academy has a very good React course as part of their full stack training.
10
u/Bobby_feta Sep 23 '19 edited Sep 23 '19
Honestly... nearly everyone gets to this stage. The intro courses... they’ll get you some of the way and then there’s a huge gap between “knowing” the language, and CS principles and some algoritms and such and actually being able to make something you want to make without the feeling of doubt that you really can or that if you can you can’t do it ‘properly’.
It’s fine to feel like that - most everyone did to some degree at some point - all that matters is you don’t stop and you make yourself code. Don’t just keep doing beginner course after beginner course, but take a course in something you don’t know, try and work out someone else’s code on github, look at projects other people are sharing in learning programming groups and try and work out how maybe just a piece of it was done, even if you’re just looking at someone else’s code and writing it out yourself it’s something that’s moving you forward.
I see too many people do an intro to programming in python, then in java, then in C or whatever, and ... yes you learn, but you’re also dubbling down on what you’ve already done. What inspired me was a video on one of the Tony hawks games back in the day. Rodney Mullen was explaining how he became one of the best just by being at the skate park every day and staying until he learnt something new every day. Really that’s all you have to do - make yourself code every day, and every day try to understand just one line of code or function or class or whatever you couldn’t understand before or work out how to do something you didn’t already know how to do.
Everyone has heard the advice that you should just start doing your own projects .... but I think too many people get stuck with that advice thinking that in order to do X they have to first do A,B,C... and to do A they have to do A1, A2, A3, etc and so they never really start. Just... make yourself do something, pretty much anything every day. It’s great when you get an idea or a passion and you can just code, code, code, but also when you’re plum out of ideas, just hit GitHub, or your fellow student community, don’t worry too much about what it is you’re looking at just try to understand it, replicate it and modify it, then try and work out how else it could have been done and where that way could be better or worse, and that’s good enough for today.
6
Sep 23 '19
There are three kinds of projects I find motivating, I'd recommend trying:
Things that just seem cool. Eg; I made an anonymous file-sharing app based on location, because I was like awe hellz yeah super secret spy dead drops
Things or features you wanna see. Is there an app you use but part of it annoys you? Fuck that, you'll make a better one. Do the same for things you'd like to exist
Games. We're all secretly five years old. Even just some basic unity projects can help you learn stuff useful outside of games, and it's fun.
4
Sep 23 '19
Do you know Spring, hibernate, and something like Swagger?
0
u/Fusion89k Sep 23 '19
You just reminded me why I hate enterprise Java. You're not even writing Java anymore, you're just writing annotations for your chosen framework.
2
2
0
Sep 23 '19
[deleted]
0
u/Fusion89k Sep 23 '19
Until something doesn't work and you spend all your time reading the docs and trying to understand the framework instead of the language.
7
u/Dizzfizz Sep 23 '19
I came here through r/all and don’t know a lot about programming so I‘m not sure if this might be a dumb idea, but if you (and probably a lot of others here) don‘t have ideas what to code for practice, you could create a sub where people can post silly little requests.
For example, Tetris with different block shapes, or a program that counts cards at uno. Stuff like that, things that people come up with but that aren‘t important enough to pay someone to create it.
I know this would pull a lot of shitty requests and choosing beggars, but I‘m sure that occasionally, there would be some really cool ideas for programmers to practice on. And as an added bonus and motivation, you’re making someone‘s day every time you fulfill a request.
7
u/I-AM-NOT-THAT-DUCK Sep 23 '19
Actually this does exist, I forget the sub name. The problem though is working on something you aren’t passionate about. And some of these things can take weeks or months to build if the main point of building them is to learn new skills. Good suggestion though, I may have to try it out.
8
Sep 23 '19
There’s a sub called r/dailyprogrammer which might be what you mentioned. There’s a new challenge each day which ranges in difficulty.
0
Sep 23 '19
[deleted]
2
Sep 23 '19
Ah yeah I didn't realise! I haven't actually used it, but the challenges should still be some good practice.
3
u/gcgsauce Sep 23 '19
Try android development...do kotlin though which is basically an extension of java...make some basic apps.
2
u/Buttershine_Beta Sep 23 '19
I do codewars. I like solving logic problems but hate configuration. If that sounds like you great.
2
u/TheKingOfWit Sep 23 '19
I don't think beginner it intermediate is important, but I always find it strange when someone considers themselves not a beginner in less than 3-5 years. But beginner, intermediate, advanced is a very simple way to look at programming skill.... Anyway
I have this issue constantly. What to build? Or what to build that I still want to build 4 days later. Depends on you as a person. I like to do things for/with others. Building stuff for friends helps me, the trick then becomes having them stay excited enough to talk about my progress with me. And to have someone to explain what issues arose and how I delt with them. Some people find open source or community contributions to solve this issue.
But so far, you defined the symptom, not the cause. Find out why. Maybe it's depression, pot/drugs, general motivation issues, environment.
I would like to stress environment cause it's often thought to be trivial, but your programming location might have too many distractions or stressors in the environment.
Hope you find your why, knowing why is empowering.
2
Sep 23 '19
I keep having this problem too. I’ll start a course, get a feel for the very basics, then I never seem to ha any ideas. for projects I want to do. But there’s lists everywhere if examples of stuff to make
1
u/blacktongue Sep 23 '19
I hear this a lot, and I know there are people/businesses out there who could use your help at your current skull level and just don't know how to ask for it. I know I'm one, I'm trying to learn programming well enough to know how to ask for the right solutions.
Maybe there's room for a way to connect low-budget businesses/hobbyists with budding programmers looking for practice. Kind of like getting discounted haircuts at the stylist school. I'm sure there are folks out there faking it till they make it who know less than you, but I think there's room for people to be honest about their skill level.
1
u/Borahulo100 Sep 23 '19
This is the same for me !! I am an IT professional that manages applications. I just want to learn some coding because I enjoy computers and IT. I plan on starting with Python because there are so many good resources and user groups. I just have no idea what programs I will write.
1
u/LuckySpartan Sep 23 '19
Maybe you just haven't found something you want to make yet. Personally, I found creating apps is fun. Something you can own after feels rewarding for me.
1
u/TheRealCasadaro Sep 23 '19 edited Aug 02 '20
You're not weird. Maybe you are meant to be sharing what you know with other developing programmers. Maybe the thing you're supposed to be working on in your spare time is using code to teach other people to code.
22
Sep 23 '19
The hump is the most difficult part of learning any new language or framework. It could last 4 weeks or 3 months (or longer). It all depends on how much effort you put into learning and asking questions. I live for that lightbulb moment in learning any new language but I’ve also lived in those hopeless moments. Especially working through a framework like Redux and (god help me) Brightscript. You WILL get over that hump and then you’ll look back hoping you’re not still asleep and just imagining the moment. My advice is to be stubborn and keep going. Try to spend some time writing your own app or script too as you watch tutorials and read literature. I’ll also admit that walking away for a day or two can sometimes lead to breakthroughs. I was literally in the shower when Redux finally clicked. Bonus points if you pursue local groups through Meetup to help you along your path. Best and kindest people I ever met were fellow devs in the trenches.
14
u/Ceofreak Sep 23 '19
Thanks for this.
I work in the Cybersecurity industry and everything I have learned, I have learned through self-study. Now I am trying to learn programming in self-study.
I did many difficult things throughout my life where most people would just say "Nah, fuck that" (Learning Cybersecurity & Linux from scratch, Brazilian Jiu Jitsu, etc). But I have to say... Programming is BY FAR the hardest thing that I have ever tried to learn. I say tried to learn because I am still at the beginning.
I started coding several times already and always dropped it again. I thought because I really suck at math I would not have a chance at all.
But since I study Web Development now, things have changed because I am more of a visual learner, so writing code in JavaScript and seeing stuff happen on the screen really does the thing for me. I am way too deep in now to drop it again.
It's a fucking struggle but I will stick with it and really hope I get to the moment where it "clicks".
What kept me from dropping it, in the beginning, this was, I found a great course on Udemy that kept me really motivated. The instructor made it so much fun that there was no way that I wouldn't want to know what happens next.
That being said, it's a fucking struggle, but even the smallest victories bring great satisfaction. I will keep struggling.
3
u/Techmesomecoolstuff Sep 23 '19
Hey mate great post! I want to go into cyber security someday. Started a computer science degree a few months ago. Having had no prior coding experience I’ve been finding it harder than expected. But, like almost anything, the more time and effort spent the easier things become.
Keep trying, and failing. That’s the best way to learn anything . Don’t be afraid to suck for a few years. Most tech guys I’ve spoken to said it takes awhile to get your head around it.
Also how are you liking BJJ? Another thing I plan on doing someday haha.
Have a great day!
2
u/Ceofreak Sep 23 '19
BJJ is one of the best things you can do. I trained a couple of years but had to stop like 3 years ago because of family obligations.
Yea I guess we just need to stick with it!
Great day to you as well!
2
u/Techmesomecoolstuff Sep 24 '19
I’ve got a few mates who do it. They are always recommending it. Only heard great things. Hopefully you’re able to get back into it.
100% it’ll pay off!
0
Sep 23 '19
[deleted]
3
u/Ceofreak Sep 23 '19
Plenty of stuff out there for free on YouTube. I have a huge article on How to get started with Cybersecurity on my own blog. Check it out if you want!
1
u/Esternocleido Sep 23 '19
Which course In ucademy? Sound like what i need right now.
2
u/Ceofreak Sep 23 '19
I used Colt Steele's Web Development Bootcamp. Although, having the knowledge I have now, I would advise against it. Although Colt is a great teacher, the course is pretty outdated. It should be called "How to be Web Developer in 2014".
He uses a lot of dated tools and also there is no ES6+ JavaScript, which is a big point.
Courses that were recommended to me many times were those by Maximilian Schwarzmüller, Andrei Neagoie and Jonas Schmedtmann. I'm looking for an updated course myself right now.
28
u/ReelAwesome Sep 23 '19
For me its like learning music. I found an interest in logic and the like very early in life, somewhere around 4th grade. I have memories of asking my father how to spell "baseeka" (BASIC-A) so i could launch some things on our Tandy 1000. Programming has come very easy to me my entire like as a result. Its how I think, internally, because of how I chose to spend my formative years.
To contrast that, i took up the piano at age 25. I absolutely love it and its a great past time. I play every day. But, after many years I still don't "think like a musician". I can replicate inflections and add "emotion" to a piece if you tell me what to do but I have very difficult time trying to come up with it on my own, and that's with properly notated music. My ability to recognize phrases and play lyrically is greatly lacking compared to those individuals of equal years of skill but who are much younger. They were learning how to think while they were learning music; I was not.
I've played some advanced sonatas quite well (according to my teacher) but its never felt quite "fluid". Musicians from a young age frequently tell me I'm "over thinking it" .. but its just what I do. I break it down to its smallest component parts to learn; which isn't helpful most of the time in music. . but its a must is programming.
So yes, I agree anyone is cut out to be a programmer...just like anyone is cut out to be a musician. But picking it up later in life is hard; especially if you've not exposed yourself to the non-programming-but-required-skillsets for developers. Can you get there? Absolutely! But your uphill battle is going to be much more difficult. I'm a "good but not great" musician and I've learned to live with that. I could probably land some gigs at old folks homes and bars but I'm never going to make it to carnegie hall.
Many of the later-in-life programmers I've met are the same way. They are "good but not great"...and that's fine. There is a place for everyone in the development world, you just need to temper your expectations. And of course there are always exceptions to the rule. The best JavaScript develeoper I've ever met didn't open an IDE till he was 38; he runs circles around the the kids with masters degrees.
Just my two cents.
9
u/GlueGuy00 Sep 23 '19
Struggling to find a job because I didn't work on it hard enough back in college. Now I'm trying to catch up all those time I used for leisure. *Sigh* I don't even know where to start right now. Pressure coming from self, parents and friends sure is awakening.
5
u/internally Sep 23 '19
I know some people who are very wise but shouldn't be programmers in my opinion.. Not that they aren't capable of it, but they need to have the heart for it. They should want to learn and continue learning, not just because it has some "easy" elements to it or for the money (again, my opinion), but because it's an expanding world that may never stop! Don't you want to be part of that?
On the other hand, I know some people who are very capable of computer science (i.e. my ex, who was a geek for technology and an incredible gamer (hehehe)) but are unconfident to pursue it. They think because they dislike math or didn't grasp a program at the first line, they can't program, and they never try it.
Sometimes I think it's really a case of how far a person is willing to go to learn. Even if they have the skills, to what extent will they dedicate to the field? I don't even mean hobby vs career wise, but a little more than that, especially before they start slipping behind..
Whatever, maybe it's not as deep as I think it is, but I think programming can be beautiful and rigorous. I got a C in my intro class because I didn't put enough hours into it, especially with calculus and chemistry in the way. Man, never again. Now that I'm in Data Structures with a freer schedule, I feel a tad more confident. I love what I'm learning. I can do it all day. But truly, that's just me. (And that's coming from someone who probably excels in that class than math haha. )x)
5
u/RaZvAn15 Sep 23 '19
the thing is i did 2 courses and i am still a "beginner" because i never had an idea of what to do with my new skills. after a while i forgot all i have learned. it kind of sucks.
8
u/yudhiesh Sep 23 '19
A lot of people underestimate how long it takes to even be an average programmer. You aren't going to be Geohotz in 6 months and you gotta realize that consistent efforts over a few years will yield better results.
2
u/_realitycheck_ Sep 23 '19
It takes a long time. A significant portion of your life. Takes longer to be one of the greats.
Like John Carmack1
u/Ah_The_Elusive_4chan Sep 23 '19
99.9% of programmers will probably never be on par with "the greats" tbh
4
u/sjc139x Sep 23 '19
I'm a baby programmer (3 months working, 9 months total coding), and I needed to hear this. ☺️💚
15
u/okayifimust Sep 23 '19
Also, in the beginning stages of learning programming, write your logic down ON PAPER before you try to type it into your machine. Programming syntax is precise, and bouncing back and forth between syntax and logic is extremely difficult for beginners. Writing stuff down on paper will allow your brain to focus on the logic. For the record, I have been programming for about 5-6 years and still write down complex logic on paper before I program it.
Yes, if you think programming is the act of typing code into a computer, and that a good programmer is one who does more typing and less of everything else, then I suspect almost everybody can learn how to program.
I would still feel compelled to point out that between reading and writing, you decided to use the non-creative activity as a metaphor.
I wonder, do you think writing a shopping list and writing a novel is basically the same thing, too? Would you look at a novelist and wonder if they are good enough to head straight to writing without all those annoying outlines and notes that beginner's still use?
Programming is hard. Almost all of it is abstract and non-intuitive. Competent programmers make a lot of money for a reason. (Incidentally, without basic literacy skills you're essentially unemployable.)
Yes, I'll concede that most people can learn the syntax of a programming language and that they will get a trivial program to compile.
I would be surprised if people that want to learn have no higher ambition than that, though.
I've seen many people fail to grasp the basic concepts, I've seen university students unable to comprehend the basics of formal logic, and I've seen countless people who after years of working with a computer still typed with two fingers and needed to search each and every key.
I would never recommend that any of them should take up programming. More likely than not, they would never be good at it, they would struggle forever. It would be unrewarding and frustrating.
And those were smart, educated and successful people. Just not at all cut out to be programmers.
4
Sep 23 '19
I swear I didn’t read your comment before I made mine. Lots of the same thoughts, though.
7
u/okayifimust Sep 23 '19
No worries. I don't think our points are particularily original either way.
From "Ratatouille" : Not everyone can become a great artist, but a great artist can come from anywhere.
2
u/PopaShifter Sep 23 '19
oof, i type with two fingers. I don't really feel like it affects my ability to program though because most of the stuff I do isn't rehearsed and mostly structuring/googling. Whether that will change as I improve I don't know.
I average about 85WPM on 10fastfingers and >95% accuracy. I kinda wish I could force myself to type with more fingers but it feels so weird after typing with two fingers for so long (index + middle).
4
u/okayifimust Sep 23 '19
Programming isn't typing.
Using two fingers is inefficient and unergonomic, but it's no worse than that.
What I was describing are people who have worked with modern computers for many years and still haven't gotten used to where any of the keys are. No single key press is fluid or looks natural.
7
u/atalaterdate Sep 23 '19
I have an Associate's degree in Computer Science at my junior college. I still to this day struggle with programming and I admit, I don't practice enough due to my hectic schedule. I forget just as quickly as I learn if enough times goes by then I need a refresher course on the most basic things just to get the coding vibe again. Shit sucks!
3
Sep 23 '19
That's because you're actually supposed to program on daily bases.
Awhile ago, I asked on I asked if I should re-learn PHP. I used to learn it like 12 years ago and I didn't do any project in years and boom…I had forgotten everything, but now it's all coming back to me.
3
3
u/lostindiversity Sep 23 '19
As someone who teaches programming I would agree to that sentiment. I have had students with completely different backgrounds that reached a passable level after a short time. However, as with every craft the amount of work they had to put in depended on their initial level and talent. I also had students who struggled with programming - but I mostly observed that they also lacked the dedication to invest the necessary time.
I use the term "craft" on purpose to make clear that in my opinion programming is something that can only be learned (and taught) through repeated practice - it is not primarily a matter of knowledge. And the skill that you have to acquire is independent of the language's syntax or the computer's internals.Rather, programming requires the skill to comprehend a problem (in English language) , to disassemble its logical structure and finally translate it into a graph of if-conditions and loops. This process of abstraction and reconstruction is essential and something that can only be acquired through repeated practice. Writing the code is only the very last part and not the one the students struggle with.I found that making this process transparent to the students and focusing on practicing these steps of translation from "English" to "code" can be beneficial.
Finally, I want to remark on one thing I read in this thread. First, I do not think one needs a math background to learn programming. On the contrary, a someone who teaches undergraduate students I experienced that mathematicians on average are not great programmers. Some of them even have difficulties learning programming, even though they may be good in their field of maths. (Obviously, there are also some outstanding programmers among them)
4
u/SirMarbles Sep 23 '19
As a student writing logic first makes an assignment easier, but with the time needed to complete is impossible. It’s either wing the code or worry about my other 40(exaggeration) classes on top of that.
Like I can write a paper in 4 hours. The programming assignment takes 8+.
Professors tend to make programming assignments next to impossible without classmates working together. Then get pissed that they worked together.
Then the professor doesn’t actually teach how to code just the way the topic works. I have to spend hours trying to figure out the coding language for it online.
The course is on data structures and algorithms.
2
u/okayifimust Sep 23 '19
If you are teaching undergrads, all of your students have passed a bunch of tests before you ever lay eyes on them. The very incompetent and inept will never be in your classes.
Do people ever fail your classes?
1
u/lostindiversity Sep 24 '19
I am teaching programming as a voluntary extracurricular course in the semester break for everyone that is interested. So no one can fail this. But I definitely had some students that would fail if this were a real class (they mostly stopped attending in between). Due to the voluntary nature I only get students with some intrinsic motivation, at least. Additionally, as you say due to me teaching at a university all students definitely have some level of qualification.
Sure, there are some people who are most likely to never learn programming. But I would argue that there is no specific prior knowledge or talent required - except for being willing to spend sufficient time on practicing it. I observed that the students who were doing that made good progress, irrespective of their background.
3
u/Smiliey Sep 23 '19
I would say "yes" IF YOU ENJOY IT... In my humble opinion, I think people who need to ask themselves that question are likely not cut out because a.) they aren't enjoying themselves, and b.) are most likely motivated by the false notion that it's "easy money" (which is NEVER a good sole reason to do something). Think of it this way; does someone who enjoys hiking, cycling, or playing basketball every ask themselves if they're "cut out" to do those things..? No, they just do it because they love it.
5
5
u/e-gorman Sep 23 '19
Not everyone is cut out to be a programmer just because you achieved it. Peddling this feel-good nonsense can be incredibly harmful to those who legitimately do not have a chance in this field and despite anything you say, these people exist. No matter how hard they work, they will never ever get to a professional level of programming. Just like no matter how hard I work, I will never make the NBA. I don't know why this is such a controversial persepctive.
1
u/TehLittleOne Sep 23 '19
I actually wholeheartedly disagree. Programming is a difficult task and not everyone is cut out to do it. Some people pick it up quicker or more naturally but some people just can't make the connections required.
To give some supporting arguments:
In university when I was studying several people dropped out of the program while the few of us that finished it were breezing. We actually only had around 10% of the first year class actually finish the program.
In America they have a problem with truckers who are going to lose their job due to automation. As a result they tried initiatives to teach programming to truckers to help them when that happens. The effectiveness of retraining varies from country to country, they've had around 50% success rate in various European nations while the effectiveness in America was much worse. Even if you're looking at the 50% success rate from Europe that's still 1 in 2 people just not being able to do it.
I wouldn't advocate for people to not do it but I would never tell someone "of course you can do it" because the reality is they can't.
0
u/jpayne0061 Sep 24 '19
The fact that someone dropped out of a university program is not a sound argument that everyone cannot learn to program.
For instance, people probably drop out of language programs (like Mandarin) because they're hard, but that does not mean that everyone cannot learn Mandarin
2
u/TehLittleOne Sep 24 '19
It's not a sound argument and you can't realistically provide one. You're not going to be able to prove that for all people, there exists some person who cannot learn the language. Even if a person tries their entire life and fails that wouldn't be conclusive of the claim.
All you can do is use empirical and statistical evidence to support your argument. My empirical evidence was my first hand experience at people being unable to learn. My statistical evidence was the effectiveness of retraining people to be programmers, which in Europe had just above 50%
5
Sep 23 '19
Sometimes it feels like some people just are born with the knowledge. Like its an innate talent to program and you either have it or you don't. As if somehow, the capability of learning how to program in just one simple language, not even accounting for more than that, is impossible. Your post really helped me realize that's not the case. I really appreciate it.
2
u/nazgul_123 Sep 23 '19
I think it might have to do with some people having already learned the skills to some extent before starting programming. A person who's good at math, for instance, may have an edge because they've already learned how to argue formally, what constitutes a proof, etc. which all help in algorithmic thinking.
2
u/danybeam Sep 23 '19
I thought this was going to be WAAAAAY different. I love your advice and I would like to encourage others to follow it.
Another angle that I would suggest is that instead of watching/programming 25/75 do watching until you feel comfortable understanding a concept or group of concepts, nobody never tells this but you don't have to force yourself to program if you feel you're not ready. Don't misunderstand you have to write code eventually or at least a flow chart somewhere. But if you don't feel ready don't force yourself.
P.S.: if you feel you really get a concept but are afraid of writing code that's when you force yourself to write it. That's a special case
2
u/Waywoah Sep 23 '19
My problem is that I'm not sure how to come up with projects that fit my skill level. I'm still very much a beginner (currently learning about strings in C++), and most sites that have project idea list things that are too difficult for my level, but at the same time there's only so many things you can do just outputting stuff to the screen.
2
u/okayifimust Sep 23 '19
Before you can reasonably look at doing projects, you need to work on a few basics.
Control structures, I.e. if/then/else, switch/case and various loops. That includes logic operators. Variables and their manipulation. Functions, returns and early returns.
Then you can start solving small tasks; at that stage you should not focus on just solving the task but also on learning the right way of doing things. The right way will almost always be something that you have never heared of before or didn't chose to use.
When you notice that the suggested way of doing things matches your choices, pick projects just outside of your comfort zone.
1
u/Waywoah Sep 23 '19
I know all of the things you listed as basics. What kind of tasks are you referring to?
1
u/okayifimust Sep 23 '19
With just those and little more, check out any of the sites with coding challenges. Not to advance throigh them as quickly as possible, but to use as a starting point for best practices, edge cases and further study.
1
u/pag07 Sep 23 '19
If you know the aforementioned basics you are set. Almost. For everyone including the rockstar programmer that earns 500k it is necessary to google things and to learn frameworks.
Googling and searching for a solution takes time and is not easy. Sometimes it takes an hour to find out how the framework enables your way of solving a problem only to find out later that you understood the framework wrong.
I know that's frustrating, however this time spend is time well spend. The programming ecosystem is infinitely large and you need to somehow get an overview. It gets easier the more niche you get. Nobody knows all embedded frameworks, web frameworks and data congestion frameworks at once.
Just take your time and play around with everything that's out there.
2
u/BelleVieLime Sep 23 '19
Please, encrypt your data in the database. Its 5% more effort to learn, but your company and maybe even your PII will be safe.
2
Sep 23 '19
Right, I totally agree. I have also learned it now after few months in coding. Its always better to just think about a simple problem and try to solve it in the programming language you are learning.
2
Sep 23 '19
OMG, thanks very much this post, I am looking for a people who in real-world programmer can share some stories with helpful hints for beginners. you are my mentor!
2
2
2
u/HaniHaeyo Sep 23 '19
Yes I am too stupid. Tried learning a handful of languages over approximately a decade, and no matter how well I memorize a language, my brain just fails to understand how to build a project from the ground. Even properly building divs in a website feels too complicated.
2
u/radiant_orange Sep 23 '19
Programming is essentially applied maths. Some tasks might be simple but some require complex mental abstraction behind the scenes (ever tried multithreading with lockfree approach?) . There are claims that everyone can learn even high level maths, if those are true then your claim might hold as well. But each person will most likely take different amount of time to learn and i am not sure if time scaling* in this is well explored.
As a programmer you might often do a job where you never go beyond certain level of difficulty, and as such you will be successful.
So it depends on how you define a programmer.
Is it someone who can get a job and be successful in that ? Then it depends if the majority can reach the threshold that is required by an average job. And I would say that they can. However requirements might change with rise of the AI.
Or is it someone who can solve most problems with highest level of a reasonable efficiency ? Then no, it's not that it would be not doable, you just might not reach that level during your lifetime* , i would say this depends on your current capability.
Well this is what i think .
1
1
1
u/rainbow_unicorn_barf Sep 23 '19
The mods should sticky this! What a sweet post. Thanks for the encouragement.
1
Sep 23 '19
I've just started Traversy Medias crash course series and am planning to go through all of it and then get started on the Odin Project and App Academy Open.
Hoping to get the hang of it and move my career forward because I am soooooooooooo bored at the moment.
1
1
u/cluckinho Sep 23 '19
Can anyone recommend the best route to work on the ‘logic’ aspect of programming? Right now I kind of feel like I try to just replicate code as I’m learning and I don’t know if that is the best way to go about things.
Or maybe the logic aspect will come eventually with practice?
2
Sep 23 '19
You have to learn to reason first.
One approach is to think of it like the scientific method. First develop an understanding of the problem space, then hypothesize a possible solution, finally probe the hypothesis with a prototype solution. If your prototype appears to satisfy the problem, then you can invest the time to make it production worthy.
1
1
u/SirMarbles Sep 23 '19
What’s the best way to learn nested loops in java? I’m in my sophomore year of uni for comp sci. Nested loops always fuck me up. I tend to mix numbers up that screw me over on assignments. I’ve watched almost every video on it and still can’t get it.
4
u/speedything Sep 23 '19
It's just a loop within a loop. Let's say you are creating a tic-tac-toe board...
for (int x= 0; x< 3; x++) { CreateARow(x); } void CreateRow(int x) { for (int y= 0; y< 3; y++) { CreateSquare(x, y); } }Hopefully this is easy to follow. The x loop runs and first of all calls CreateRow(0). This function now runs through it's loop...
CreateSquare(0, 0)
CreateSquare(0, 1)
CreateSquare(0, 2)
Once this is done, the x loop increments and repeats with the value of 1...
CreateSquare(1, 0)
CreateSquare(1, 1)
CreateSquare(1, 2)
Finally, it does this for value x = 2, before it reaches its limit and exits.
But there's no real need to do this as two functions. Instead you can just encapsulate the y loop directly within the x loop...
for (int x= 0; x< 3; x++) { for (int y= 0; y< 3; y++) { CreateSquare(x, y); } }Edit: Just saw you say Java. This is C#, but it's basically the same
1
u/Xae0n Sep 23 '19
Also learn the logic in the algorithm. Language doesn't really matter. When you know how algorithm works, learning a language will be a lot easier
1
u/CodedCoder Sep 23 '19
Can you give an example of something you would write in a notebook please?
2
u/meecro Sep 24 '19
You mean Pseudocode? I got something.
Let's say you want to write a little piece of code that reacts if you press the 'k' button on your keyboard. IF. That should ring a bell. You should use an if statement:
if ('k' is pressed){
//do this (if this was run on youtube, the play/pause of the video would be toggled.)
}
If you don't know the basics of a if statement, feel free to ask, better yet, google it. Hint: Whatever you write in the parentheses is the condition. It has to become 'true', for the if-function to run the code. In this case it would become true if the user presses the 'k' key on his keyboard.
Please tell me if that's to complex or bad explained, and i will try to further simplify it for you.
Any questions? Please ask. No matter how simple they sound to you.
1
u/CodedCoder Sep 24 '19
Ahh this makes sense thank you very much. I bought me a note book to take notes and I end up copying almost everything the person says or the page says so I know I am not taking notes correctly.
2
u/meecro Sep 24 '19
I'm glad that i could help you! I also use notes, and end up having a lot of them. So here too would be a chance to create a function, your own function, for sorting your notes, or if you save them digitally too, arrange them by date etc...i could go on and on, but just let's focus on one thing first:-)If you have any further questions, please feel free to ask anytime!
1
1
1
u/Reira_valentine Sep 23 '19
I'm fucking terrible at math, and wanted to try ro study being a programmer. I just lose motivation when I get confused.
1
u/meecro Sep 24 '19
What did confuse you the most?
1
u/Reira_valentine Sep 24 '19
Booleans. And true and false. I tried java.js and python so far.
I enjoy css and html, but never truly built anything with it. Just modified css style sheets from other peoples designs. Changed colors.
1
u/meecro Sep 24 '19
That's a start. While at css and html, why not try some javascript? Start with creating html elements dynamically with javascript. That teaches you about dynamic webpages as well. And you can work with javascript directly in the browser's console if you want to. Though i would suggest an IDE like Visual Studio Code. If you need help to setup a environment, feel free to message me! It's just as easy as to install the IDE you want to use, and then create your first project which consists of 3 files: html/css/javascript.
Booleans are literally true and false, and it may help you to research boolean logic/boolean algebra in terms of logic gates. After all, that's how computers are build. There's for example a course called 'Nand2Tetris' for this.
You mean Java the language? As for Python, i'd say that's a great start. Why not take a text document you got lying around, making a copy of it (for backup reasons), then load (read) it with python, and apply some sorting functions (sort lines of file alphabetically)?
That may sound boring now, but as you proceed further and deeper...you will awe at the possibilities.
1
1
u/LessBlack Sep 23 '19
Honestly, I never had problem with programming, I LOVE IT and it clicked in first month, I adapted that kind of life where you search for anything and I like it, I'm smarter and in all ways better version of previous myself and I only code for 11 months. I hope I be ome great programmers and engineer. Good luck to you guys that are starting out because it is a road that never ends.
1
u/badabadaboomboom Sep 23 '19
I agree with the writing down logic part. It's also very useful to take notes because learning a new language can be very daunting at first.
1
u/Krisp143 Sep 23 '19
Thank you for the encouraging words and yeah your right it's just all about the grind and passion :3!
1
u/skilliard7 Sep 23 '19
Also, in the beginning stages of learning programming, write your logic down ON PAPER before you try to type it into your machine. Programming syntax is precise, and bouncing back and forth between syntax and logic is extremely difficult for beginners.
I'm going to expand on this and say instead of writing it on paper, write a function(with no internal code) for each thing your program needs to do, and then fill that function with comments on how you would achieve it, before you write any actual code.
That way, you outline your ideas, but then when you're done outlining, you've created a great to do list for yourself and can work 1 step at a time.
1
u/meecro Sep 24 '19
yep, pseudocode is a cool thing. to add to this, i'd say name the functions accordingly and don't make it too complex. if you want a function that takes one parameter, say a string, and the function should reverse that string, just name it 'stringReverse' for now. later, you can always rename/refine it. and you should always strive to refine your code - it's a process. Don't try to make it perfect, work constantly on it.
1
u/ElizaTrollingYa Sep 23 '19
IDK, I have worked with people that make me feel like I am still wearing training wheels years later.
I think some folks have the mind for it over others regardless of effort . We can still get rather decent or good enough to be a little dangerous. Some people are just really really good at it for no other reason than they must have been abducted or raised by aliens!
Huge difference between folks who can modify/enhance what already exists, those who understand the concept of how in theory it could be done and then the ones who actually have the talent I am working to get to before I like die or something.
If all else fails you can help coach the talent, get decent enough to maintain something that already exists or try to fall into QA/think tank roles.
Perhaps I will find some sort of automatic coding ritual in the book of shadows or something to get on to that master level folks I look up to are on...
I do not believe I am anywhere near a legit programmer however, I am more persistent than most people therefore I am always getting better. Just likely will not be in the MIT/Silicone Valley version of the NBA anytime soon no matter how many more thousand hours I invest in it. Unless you of course count the ones who are like amazing and end up working on like a single button and are too comfortable to leave and look into something more meaningful. I understand the appeal of being somewhat of a whore in the job market.
Always try. How else would one learn if it was meant to be?
1
u/donteatyourvegs Sep 24 '19
there's different types of programmers. I don't think anyone can become a systems programmer or cryptographer. I do think anyone of average intelligence can become something easy like front end developer or automation or something like that.
1
u/SnowyDavid Sep 24 '19
"Don't Give Up" is so cliché now, but it really is the most important thing to keep in mind. SOOOOOO many people fail unnecessarily just because they gave up.
That's actually how pretty much everyone fails. Unless you're dead, you can always claw your way one inch closer to a computer, and I don't think many people die trying to learn programming. Assuming you survive, giving up is literally the only way you can fail.
It may be tempting to give up in order to save your time, but is whatever you'd rather be doing REALLY that important?
1
u/thevagrant88 Sep 24 '19
I think most people getting into programming without really understanding what you can do with it, making it easily to lose focus or guidance. I really wish there were more beginner material aimed toward what you think you'd like to do with programing rather then throwing web dev or python materials in your face. It's probably done that way because they are safe bets, but it still would be nice to know exactly what we were learning from the beginning so we could contextualize everything better.
-1
u/LonelyMolecule Sep 23 '19
Im stuck on mooc exercise 13 and nobody's helping me nice
1
u/meecro Sep 24 '19
It's that course from the Helsinki Uni, right? It seems that someone had the same problem:
Greetings
1
u/LonelyMolecule Sep 24 '19
Yes.
1
u/meecro Sep 24 '19
Have you read through it? It seems that the OP there has tried some approaches, and ran into an error while running the copied code. Have you some error messages too? What have you tried so far?
1
u/LonelyMolecule Sep 24 '19
1
u/meecro Sep 24 '19
mhm looks like eclipse just can't load NHLStatistics via import somehow. I'll delve a little bit further into this, and while at it maybe taking that course too. Sounds interesting. Since your a student at the uni, aren't their any studs/profs that could give you an hint?
1
u/LonelyMolecule Sep 24 '19
It's my first year in community college. I'm doing this outside school. Also...what about dynamic import?
1
u/meecro Sep 24 '19
mhm even if it's complicated to you now, i'd say stay at it. as for dynamic import, well, there's something you know that i don't know much about. do you mean maybe only importing parts of the file?
1
u/LonelyMolecule Sep 24 '19
If you don't mind, can you please do the exercise yourself and let's see if you have the same problem.
I use eclipse. and the instruction is above. file is here
→ More replies (4)0
0
Sep 23 '19
[deleted]
8
Sep 23 '19
If you have a smartphone then you could use something like Termux + Hacker's Keyboard. Termux provides a command line interface which is basically Linux. You can install a lot of language compilers like for C, C++, PHP and Python. Hacker's keyboard gives you some extra buttons that are available for a physical keyboard. They're both available on Playstore and I still use both to this day!
1
u/PatriotGrrrl Sep 23 '19
Termux is great but IMO it's best used along with an external editor. I really like DroidEdit. It has many useful features like multiple tabs (REALLY useful for HTML/CSS/JS), syntax highlighting, search & replace, etc.
1
Sep 24 '19
Let me give DroidEdit a try then! But, Termux does have multiple tab support and syntax highlighting can be added to Vim(if you installed it). But the main problem is that I can't get the HTML files I make to use external files like JS scripts, CSS and images. This forces me to use inline CSS and JS and no images. Does DroidEdit allow you to add external scripts?
1
u/PatriotGrrrl Sep 24 '19 edited Sep 24 '19
I'm not sure what you mean by an editor "allowing you to add external scripts". You can reference css files and such from an html file regardless of what editor you use to create them, an html file is just a text file.
Maybe your problem has to do with where you're saving them? I keep all my stuff in folders under /storage/emulated/0 (aka /sdcard) not in whatever directory Termux opens with.
Termux starts in /data/data/com.termux/files/home, and I can't access that at all from outside of Termux, so its no surprise that a browser couldn't either.
1
Sep 24 '19 edited Sep 24 '19
Yep. I've tried moving it outside the Termux directories to my sdcard and it still didn't work. I also tried running a server form Termux through the command line and it still didn't work(the server ran and served my html but no luck on the reference files).
Edit:
Just tested it again. I created a directory in my sdcard, created an HTML file and a CSS file. Referenced the CSS file from the HTML file. No luck.
Edit 2:
Downloaded DroidEdit and opened the HTML file I created from it(no edits). Then used the Preview In Browser option. It worked somehow.
Edit 3:
It seems DroidEdit opens it as a file with file:/// and uses an absoulte path. And when I open it directly it opens with content:// and uses a relative path.
Edit 4:
It works with the "open" command in Termux. I've never used it for opening HTML files before and now I feel stupid lol.
1
u/PatriotGrrrl Sep 24 '19 edited Sep 24 '19
How are you trying to view the html file - running a server or just opening the html file in a browser? I don't think I've ever run a server on Android so idk anything about that. But if you were opening a file in /sdcard with a regular browser (not like lynx or somethng from within termux) then Termux isn't involved at all.
Did you ever run the termux-setup-storage command? If not, that might help, it does more than just give Termux storage permissions.
1
Sep 24 '19
Yes, I've run that command. And did both actually. I tried opening it directly from the File Manager and also with the PHP built in server ie. typing PHP -S localhost:8000 and accessing localhost:8000 from the browser.
1
u/PatriotGrrrl Sep 24 '19 edited Sep 24 '19
Interesting, when I use the termux-open command to send a file (from /sdcard) to Firefox the url is something like file://data/user/0/org.mozilla.tirefox/cache/contentURI/foo.html and the CSS doesn't work.
It is content://com.termux.files/storage etc. in Chrome, but instead of displaying it immediately, Chrome downloads it, which breaks the CSS.
1
Sep 24 '19 edited Sep 24 '19
Ugh, I've made a mistake there. When I ran the open command and selected Chrome it immediately opened. I must've seen the previously opened tab and thought it worked. But changing the URL Chrome uses(when using the open command) from content to file fixed it.
Edit:
I also got the local server working! Turns out it was because I was serving the file like
php -S localhost:8000 test.htmlWhen I changed test.html to index.html and ran:
php -S localhost:8000It worked!
37
u/[deleted] Sep 23 '19
Sorry, but I’ve seen so many people try to be programmers who really shouldn’t be programmers.
Yes, you can make analogies like learning English, but knowing English doesn’t make someone a writer. Stringing together words so that someone will want to read them and have enjoyment from them is way different than knowing the language. It’s about creativity and plot and character development, etc.
With programming, it’s really about problem solving in addition to using real hardware to transform data. That combination of skills is really difficult for many to grasp. If you have one skill and not the other, you likely won’t be a good programmer even though you may be able to string together some code.
So by all means try your best, but realize when you are way behind in problem solving or grasping how to talk to hardware through code. Programming isn’t the best path for everyone.