We've hired several devs out of bootcamp, and they're all taught how to code, but not how to solve problems using code...
Anyone have material that might be good for this? Books, videos, courses?
Think Python: http://greenteapress.com/wp/think-python-2e/
Polya's How to Solve It: https://en.wikipedia.org/wiki/How_to_Solve_It
Udacity's Design of Computer Programs: https://www.udacity.com/course/design-of-computer-programs--...
these videos are quirky (!) for sure, but filled with some real gems and a depth of perspective that's rarely found in other online courses.
the link goes to a free video intended as an intro to the aspiring programmer.
I'm posting this only because I've seen several of these videos and think they've got something special.
Playing a lot of puzzle games help as well, especially games where the thing to do is very abstract like in a point-n-click adventure game.
>> They need to understand other styles so they can form their own
After 15 years of working professionally, I kindly have to disagree to a fair extent. It turns out that most - if not all - developers are not very good at writing clean code. Including (especially?) seniors who think they write the best code on their team. The code you're having the juniors dig through to tweak/maintain is probably terrible code that should not be used as a shining example of anything good. They're more likely to pick up someone else's bad habits than learn something useful.
It took me a very, very long time to realize that it's simply a matter of fact that no two developers think alike, and that any set of developers could argue all day as to why each other's code is ugly, unmaintainable, etc. There are extremely few instances where one implementation of any problem is "better" or "worse" than another - we simply think differently. My code will always be "smelly" to you, and your code will always be "smelly" to me.
Junior developers must be permitted to write new code from scratch. Whether it hits production as-is, or goes through weeks of refactoring, it's a must. No developer ever improved by only reading and maintaining other people's code. I have never met a developer who feels at home maintaining someone else's rushed garbage. And 80%+ of the code we write is rushed garbage to attain the 3 week mandatory deadline handed down by management even though we told them it would take 3 months.
There is a finite amount you can learn by reading other people's code. You might find specific idioms you admire and adopt, but you will not - and probably should not - try to conform to other developers' methods.
Not to mention, forcing new recruits to deal with everyone's legacy garbage is a surefire way to turn them off the industry before they've even begun. Let them code a small new feature; then sit down and find out what they did well and what needs improvement; truly tangible issues, not the typical "that's not how it's done" - which really only means "that's not how I would have done it".
I was part of ThoughtWorks interview process sometime back. In one of the rounds called Pair Programming, a senior developer worked with me on the given problem statement. I arrived at right solution, but he wasn't happy with the solution just because he didn't like the way I solved it. I came back and discussed the same solution with another senior developer and he liked the approach. However ThoughtWorks rejected me in the interview process.
I often wonder how pair programming is good (or even bad) in this context. How they can assume or think that two programmers going to solve the problem in "same" (or even ThoughtWorks "expected") way!
It takes a lot of restraint and stepping back from being in "first-person developer mode" to understand that someone else's unique approach is quite likely valid. I purport to be able to do so but I still find it incredibly difficult to ignore my brain's initial instinct to start pointing out the supposed flaws in someone else's structure, when the simple fact is my own code for the same problem would probably be filled with the same holes - just in a different form.
Honestly, there are only a few metrics that really matter when it comes to quality code:
1. Does the code accomplish the task it's supposed to? I mean really, this is practically the only thing that really matters in most cases. Simply: if deployed, will it work?
2. Are there no glaring security problems with the implementation?
3. Does the code not excessively overuse resources (cpu, memory, network/system calls, etc.)? Real excess beyond what is reasonable, not micro-optimizing.
4. Is the code not a complete mess? No serial use of copy/paste, crazy spaghetti mess, or inability or blatant refusal to follow basic coding standards?
That's it. Deploy that shit, and move on to the next problem. ;)
I always start with reading test cases rather than source code directly. Thats the way it should be (IMHO).
One person we were interviewing solved a problem pretty much exactly opposite to the way that we (and every other candidate) had solved it.
At first glance it simply looked wrong, but after a discussion with the candidate the strengths of the solution became apparent.
Happy to say they got the job, and ultimately turned out to be one of our best hires.
> There is a finite amount you can learn by reading other people's code. You might find specific idioms you admire and adopt, but you will not - and probably should not - try to conform to other developers' methods
From my own experience I disagree with this since reading other people's code has helped me improve a lot. I've noticed that I am so much more creative and intuitive about good software design when I go to write code now and I believe it is credit to reading code everyday
The vast majority are just shit though. That was a hard lesson to learn. You want to give people the benefit of the doubt, but the industry is full of people who have learned nearly nothing in their careers compared to a really good grad who has never worked anywhere but has raw talent and good problem solving skills.
I hope I am not alone in feeling that looking at the code of a well-engineered and well-structured project can be quite the artistic-appreciation experience, and that this experience always leaves you with some piece of knowledge and understanding you didn't have beforehand.
When I started a directed education, learning new programming concepts always expanded the set of problems that I could solve. Learning how to reason through them didn't come separately, it came through writing programs of increasing complexity over time.
Before learning any meaningful amount of programming, I was introduced to the idea of examining the capabilities of your available tools and using them to find creative solutions...with adventure games.
I would consider a curiosity for exploration and experimentation to be central requirements to become a problem solver (at least through the path that I did). Start with that general mindset, present a world for them to explore, introduce them to the tools they can do it with, and there's no way to stop them from that point on.
I don't think I learnt about problem solving in the abstract, it was more about specific applications of problem solving in the programming world.
1) Blockly Maze game (free) (https://blockly-games.appspot.com/maze?lang=en)
2) Jelly no Puzzle (free) (http://qrostar.skr.jp/index.cgi?page=jelly&lang=en)
3) Human Resource Machine (paid) (http://tomorrowcorporation.com/humanresourcemachine)
Frankly any Algorithms & Data structures book should do the trick. Choosing the right data structure is often half the solution when solving a problem. That plus SICP and a book about Discrete Math should be enough for 90% of the daily problems.
The problems that I see most junior devs struggling with are at a much higher level. How do you organize large scale programs? How do you make sure that different parts interact flawlessly? A book about design patterns could help here, but without experience you won't appreciate what the patterns are good for.
But by far the most difficult part to wrap your head around is concurrency. How do you make sure your assumptions all hold up when multiple threads / processes / users are all doing stuff in parallel? That's really hard to understand, and you need a combination of theory and experience to master this.
I'm not sure what my point is. Software development is hard, a bootcamp and an Algorithms book is probably a good start, but after that you need to still put in a lot of effort to reach your full potential.
Algorithms and data structures can actually be great not because you implement your own but because you can find out why your N^3 algorithm is slow (give you three guses) and why iterating through your data is slow (since you used the wrong data structure)
I like Bootcamps for what they are, a tool to fill Junior level positions for people to begin working their way into a career and I love teaching the people who graduate and are interested in continuing their career, but there is more to programming than paying for a Bootcamp and spinning up a Rails/React app.
PS: Forget anyone who says "I already know how to code, I don't need to learn this". Those people are fucking boat anchors, they just sink.
I think the best thing you can say for algorithms training is that, without it, you often don't notice that you need to get an algorithmist.
When people say, as my sibling commenters do, "find out why your n^3 approach is slow", or "do a substring match", I wonder what problems they're solving. Has this shit actually come up in your career, or is it just something that you imagine will come up? How many times has a cubic algorithm actually been the problem? As compared to doing five hundred DB queries, instead of one query that JOINs properly and returns a 500-row result set, which I see juniors and students do all the time, and is not an algorithms problem at all (it's the same asymptotic complexity, btw!). How many times have you tried to figure out a fast approach to substrings, and how rude was your code reviewer when they pointed you at the standard library?
I couldn't disagree more. Algorithms are the base level that you build on. Anything non-trivial you will have to understand what is available to you and create something new. Take something common, doing a substring match on a list of items. If you don't have algorithms knowledge I'd bet your solution is going to adversely affect the final program.
Good choices of data structures, and solid understanding of algorithms are the units of composition in creating software. IMO
> But by far the most difficult part to wrap your head around is concurrency. How do you make sure your assumptions all hold up when multiple threads / processes / users are all doing stuff in parallel? That's really hard to understand, and you need a combination of theory and experience to master this.
Or use Rust and have the compiler check it for you, so you don't have to be a wizard.
All junior (and many senior) devs struggle with that. This is solved with experience, not training.
That said, I don't think it's something that correlates to being a bootcamp grad. I'm usually the one `solving problems with code` and the closest thing that I have to an education in this industry is the boot camp I attended (lifelong programmer regardless). I know other boot camp grads who are the same way.
I encounter developers from all backgrounds who know how to code but can't solve problems. There's just _a lot_ of bootcamp grads right now.
(for reference, my real concern is my cousin is in a csci-150 course, having trouble because her prof isn't used to teaching to students who haven't been programming for years... nobody has bothered to figure out how to teach problem solving, and they're left to teach themselves or drop out)
From the preface:
The typical course on programming teaches a “tinker until it works” approach. When it works, students exclaim “It works!” and move on. Sadly, this phrase is also the shortest lie in computing, and it has cost many people many hours of their lives. In contrast, this book focuses on habits of good programming, addressing both professional and vocational programmers.
With “good programming,” we mean an approach to the creation of software that relies on systematic thought, planning, and understanding from the very beginning, at every stage and for every step. To emphasize the point, we speak of systematic program design and systematically designed programs.
is based on HtDP and uses Racket.
My dad has been trying to learn to code and all the courses labeled "learn to code" seem to be coding on the web. Not learning "How to solve problems using code".
Ive had to take him manually through basics of control structures, variables,etc.
How do you approach this problem and break it down.
I've seen problems like this solved by looping through the file twice, because they answer one question at a time...
But I'm hoping there is something out there that can teach the general process of breaking down the problem, identifying loops, identifying generalizable code, and anything else that needs to happen before your code can work.
# assuming file with $100\n$200\n$23\n$50 etc.
linenum_vals = 
with open('numbers.txt') as input_file:
for i, line in enumerate(input_file):
print("Not a number value on line", i)
total = 0
for i in linenum_vals:
total += i
half = total/2.0
for p in range(len(linenum_vals)):
if linenum_vals[p] == half:
print("Half of total found on line", linenum_vals[p])
if linenum_vals[p-1] < half and linenum_vals[p] > half:
print("Half of total in between lines", p-1, p)
if p+1 != len(linenum_vals):
if linenum_vals[p] < half and linenum_vals[p+1] > half:
print("Half of total in between lines", p, p+1)
print("Half of total wasn't found in the file.") # probably because the list of values isn't in order
At the end, return the highest key in the dictionary for your total, and then run a reduce that returns the first key/value pair that is >= half the total
I don't have any specific implementation - or if this idea would even work - but I do think sorting the lines first might be of help toward a better solution (I could be completely wrong on this). As well as tackling the totaling and checking from both ends of the list.
You'd have to keep track of everything, of course, in order to know at the end where in the -real list- (unsorted) the half-way total point is at. If this idea has any merit at least.
solving a problem: write a program that does (some open-ended business problem). Or generalize the socket listener so that it works on any platform, OS, hardware, network configuration, etc.
A coder might do great on confined problem space, but when you ask them to write a larger program they dont normally know how to design it. This isn't just true of bootcamp coders though. Tons of CS grads wouldn't do any better. Otherwise FizzBuzz would have never been a thing.
- When you have multiple layers of "companies" ( in a single table: Company) and every company has employees (table: Employee).
- List all company employees that have a random company as mother company, including their childs, all layers deep.
So you create a optional integer parentCompanyId on the Company for the inheritance ( that's easy)
How would you go further?
- You may not use a recursion of sql Queries (or in code) to procedurally get the parentCompany or "child companies" of all layers deep.
- You may change the database ( and you may use joins also)
It's not solely a programmer thing. You might like to consider people who have been trained to solve problems eg Engineers or Mathematicians int al - they will probably give you more bang for your buck. They will probably have some rudimentary or rather better programming skills as well.
Bugger bootcamps ...
You pays your money and takes your choice.
The problem is that they're teaching her syntax, but not really about how to solve the problems...
I don't remember being taught either... but it's certainly something I learned... She's incredibly frustrated because she sees her classmates breezing through class, because they've been programming for years and have learned the general problem-solving skills to get through class... she is having to learn both at the same time.
But, since there's so much focus on bootcamps lately, and it's a problem they ALSO have, I was hoping there was a solution there.
(my point being... colleges aren't doing a better job at this inherently... it's likely just that students have 4 years to figure it out or drop out, before joining the workplace)
I'm loving it. Obviously the "here are some commands" and "go find Google Chrome" made me laugh a little but I understand the audience they're for. I love how quickly we get into actually creating something, it keeps my interest when I see progress. It's been 15 minutes and I already have a Rails blog set up, yay!
Seriously, I haven't gotten that far in, but right now I'm fully believing there is a success story with your teaching method. Congrats, that's not an easy feat.
Message me if you have any questions along the way. I'm here to help.
Start looking into gems (devise for logins, paperclip for file attachments, and many more). You'll quickly see how things can be put together easily.
Rails' biggest downside isn't getting something working, it's customizing it for what you want.
I guess that's why PHP being embedded in HTML allows me to see the bigger picture.
First, from what I understand, Rails has a lot of "magic". So on that note, you're probably just not going to like Rails or Rails-like frameworks in general (like Django, lots of magic). PHP or even something like Flask might be better for you. Different people like different levels of abstraction, and believe it or not you can write web pages in C. PHP was originally designed as an abstraction over C, to add a little "magic" so you didn't need to know how things worked under the hood in order to get a web page running. These days, Rails is the new magic, and PHP is the new "under the hood".
Secondly, the course does go into more detail later on (I'm on #20 of the "build a saas app" right now), where after every video that you write code, there's a video that explains why you did that and what it does to the program. It actually goes into more detail than I was expecting for a tutorial that starts off with "here's how to install Google Chrome".
As it looks like after completing this course people should be quite capable to build their own solutions, I would recommend you to cover the security aspect more broadly.
Perhaps cover multiple commonly known attack vectors (and how they are mitigated) and basics of the cryptology.
I would also suggest you (based on the other comment here) to not push Chrome only. It is very important for our liberty to have various actively used browsers.
By the way, Rails is the craze from maybe 10-6 years ago. consider e.g.  But it is still far, far from dead. Time flies, but not as fast as you suggest.
Well, i don't see how you're going to be able to maintain this project(100's of hours of videos) without earning anything for it. Quality is bound to decrease in the long run.
I believe you should stick with your previous model(Free for a month or two, subscribe when its useful or pay a fixed sum for lifetime access).
I agree that it's a lot of work and wouldn't be unfair to seek some compensation.
Those here look kind of unrealistic since all reviews are worded thoughtfully, gave 5 stars, have similar length and no grammatical errors. Also, each user has a perfect portrait image as profile picture - this isn't even the case on LinkedIn...
I think we have Docker to thank for progress on this front.
We are now at a similar point to knowing HTML in 1998 would land you a plum job; except it's now frontend frameworks. There's going to be tremendous downward pressure on wages in the next few years; especially in web development.
I recommend everyone who wants to stay competitive to move on to harder things or leverage whatever soft skills they have.
There are plenty of Ruby jobs out there, and it's an elegant and well-designed language that's got a mature framework. Especially crucial for relative beginners: it doesn't have the flavor-of-the-week problem that JS does, nor is its most prominent example a legacy mess, as Wordpress is for PHP.
(I'm not an entirely uninterested observer: http://akkartik.name/post/mu)
having the ability to solve that problem for yourself is important... if you struggle with that you will struggle in most real world dev roles imo, because you will need to continue to do this for yourself throughout your career.