News for hackers. Stuff that matters.
Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by tbirrell on Wednesday June 21, 2017 @10:46AM (#14604210)
I assume the job is about coding, otherwise this would be a very interesting situation and will likely backfire as your friend will have no motivation to actually learn.

That said, here are some tips. Note that I have never taught someone to code, but I am familiar with mentoring someone through a skill set I already have. Consider all languages as placeholder terms for whatever stack you are going to teach, they are what I started my career in, so I'm using them here.

- Beware the curse of knowledge. Yeah, I know XYZ the most obvious thing in the world, but if you think back to the dawn of time, you'll remember when you didn't understand how a function worked.

- Start slow. This builds off the last one. Start with the basics. I personally learned to code in the following order. HTML > CSS > JS > jQuery > PHP > MySQL > PHP. Start easy and lay a solid foundation, then build on that.

- Teach the language before the framework. Okay, this is based off my learning experience rather than my teaching experience. However, if you want your friend to fully grasp and be able to keep going, teach them JS before jQuery and PHP before Laravel. Show them how the magic works. It will make it so much easier for them (and you) down the road.

- Have fun. I know that's a cliche ending to every list ever. But remember to make the process enjoyable. Presumably, you are a programer, and if you are anything like me, you love what you do. Try to instill that in your teaching. It'll make your friend more likely to stay and learn without fighting the process.

Good luck!

Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by in9 on Wednesday June 21, 2017 @11:14AM (#14604484)
In my mind, the JS stack is not the most useful for a non programmer, and I'd go with python.

It makes easy to have decent scripts/programs for office work (pandas + directory handling) imo

Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by gedrap on Wednesday June 21, 2017 @11:29AM (#14604615)
This book has similar ideas about basic practical applications of python https://automatetheboringstuff.com/
Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by tbirrell on Wednesday June 21, 2017 @11:46AM (#14604785)
True. Consider those as placeholder terms for whatever stack OP is going to teach.
Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by thinkMOAR on Wednesday June 21, 2017 @10:51AM (#14604255)
99.9% agreed THOUGH :)

a lot people in non coding jobs (e.g. managers) would benefit from being able to code, or least read it efficiently too.

Knowing how long something can take to code, what is complex and what is not, what out of the box functions there are and when coders have to come up with their own clever functions to achieve the set goal.

Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by auggierose on Wednesday June 21, 2017 @11:20AM (#14604539)
> HTML > CSS > JS > jQuery > PHP > MySQL > PHP

I apologise in advance for the snarky comment, but it seems you have not reached solid foundations yet :-)

Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by 8draco8 on Wednesday June 21, 2017 @12:08PM (#14604997)
I don't understand this push against PHP. PHP is a language that runs under significant part of the internet. Modern PHP is fast and efficient. I don't think it have more problems than so popular recently JS and in many cases, PHP with framework i better solution for webdev than ROR or Django.
Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by goshdarnheck on Wednesday June 21, 2017 @11:26AM (#14604580)
If you find yourself starting a statement with "I apologise [sic] in advance" then maybe consider not posting it.
Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by Stratoscope on Wednesday June 21, 2017 @02:11PM (#14606409)
That is excellent advice!

I just want to mention that the "[sic]" is not necessary. "Apologise" may be uncommon in the US and Canada, but it is the preferred spelling outside North America.

Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by auggierose on Wednesday June 21, 2017 @02:27PM (#14606557)
Oh I considered it.
Re:Ask HN: Teaching Code to Someone That Asked Me for a Job by tbirrell on Wednesday June 21, 2017 @11:51AM (#14604829)
I fear you missed the part where I said "start easy". It's all about small goals and achievable victories. :)