Lurker News
Sometimes it takes a book or a course (or explanation from a mentor) for a topic to finally click for you that you were struggling with for a long time.

For me, it was Stanford's EE261 course that made Fourier Transform click for me. Here is the link: https://see.stanford.edu/course/ee261
Similarly for deep learning it was fast.ai courses.
For programming it was How to Design Programs at www.htdp.org.
Your topic of choice may be anything, not necessarily CS.

Comments (503) 244 threads

luuuzeta12 replies#
I've been struggling with wrapping my head around asynchronous programming with callbacks, promises and async/await in JS, however I think it's finally clicking after watching these YouTube videos and creating a document where I explain these concepts as if I'm teaching them to someone else:

* Philip Roberts's What the heck is the event loop anyway? - https://www.youtube.com/watch?v=8aGhZQkoFbQ
* The Story of Asynchronous JavaScript - https://www.youtube.com/watch?v=rivBfgaEyWQ
* JavaScript Callbacks, Promises, and Async / Await Explained - https://www.youtube.com/watch?v=JRNToFh3hxU
* Async Javascript Tutorial For Beginners (Callbacks, Promises, Async Await). - https://www.youtube.com/watch?v=_8gHHBlbziw
* Jake Archibald: In The Loop - setTimeout, micro tasks, requestAnimationFrame, requestIdleCallback, - https://www.youtube.com/watch?v=cCOL7MC4Pl0
Edit... I've been rewatching these videos, reading the MDN docs, the Eloquent JavaScript book, javascript.info, blogs about the subject, etc. This further proves you shouldn't limit yourself to a single resource, and instead fill up the laguna with water from different sources if you will.

electrondood1 reply#
The event loop one was a must-watch video for anyone who write Javascript. It even secured me a job offer.
luuuzeta#
I'd argue that you cannot understand asynchronous programming in JS without knowing how the call stack in the JS engine, web APIs (provided by the browser or NodeJS as far as I know), the callback/(macro)task queue, microtask queue, and the event loop all fit together. The JS engine is a small component of that entire environment, and not being aware of it is like walking in the dark with dim candle.

The fact I didn't know about these concepts is the reason why I always struggled to understand examples involving setTimeout, setInterval, etc.
Most videos on YouTube, even from well-known personalities in the programming YouTube community, simply jump into things without context at all even when the videos are titled "for beginners". Even some books and docs simply describe the spec without providing context and motivation.
Edit... Forgot to say Philip does an outstanding job in that video. He's even humble enough to admit it took him a few months to grasp what was going on.

thoughtpalette3 replies#
Commenting for later. Wish you could "favorite" comments.
solarmist2 replies#
You can. Click on the time for the comment. Then you can favorite it.
luuuzeta2 replies#
Wow this is well hidden. Thanks for the tip!

Continue this thread — 2 replies

thoughtpalette#
great tip! thanks!
baxtr1 reply#
You absolutely can. But beware: these are public.
texasbigdata1 reply#
Seems like a feature.

Continue this thread — 1 reply

mandeepj#
> Commenting for later. Wish you could "favorite" comments.

Or, you can upvote it (comment)

andrewstuart1 reply#
async programming IS hard to get your head around.

The resources you suggest are spot on.
AND, async programming will really only click when you do lots of it.
Read tons of async resources like the ones above, write lots of async code. One day you'll realise it's second nature.

luuuzeta1 reply#
Thanks a lot, I'll keep this in mind and try to write as much async code as possible.

>One day you'll realise it's second nature.
This is great but then the curse of knowledge hits you hard haha

funcDropShadow#
>> write lots of async code.

> Thanks a lot, I'll keep this in mind and try to write as much async code as possible.
Only write async code if the advantages outweigh the downsides, not just by default in order to do some training for yourself. Unless it is in a hobby project where training yourself is part of the goal.

mayankkaizen3 replies#
I wish someone can suggest me similar links for Python. Asynchronous programming has always been elusive to me.
tmh88j#
Effective Python has a great chapter that goes over concurrency and parallelism using threads, coroutines and subprocesses. There are a lot of non-trivial code examples that the author gradually shows how to improve with more advanced language features over the course of several chapters so it's not all thrown at you at once, enabling you see benefits and pitfalls of approaching problems with different techniques. I highly suggest it even beyond learning async features.
ericbarrett2 replies#
> creating a document where I explain these concepts as if I'm teaching them to someone else

Tangentially, that is a marvelous way to learn something. I often find that in explaining a complex topic I uncover gaps in my own understanding.

cudgy#
The Montessori model
luuuzeta#
I've realized it's so easy to read or watch something and fool yourself into thinking that you know the topic.

For example, coming up with your examples helps a lot. For instance, I found most of the examples quite underwhelming and confusing so I ended up creating my own asynchronous functions to demonstrate the concepts as I go along.

thecoppinger1 reply#
This is my learning goal right now, I can’t thank you enough!
luuuzeta#
You're welcome! Rewatch Philip's video as many times as you need until the concepts sink in, before you move into learning promises and await/async [1]. Similarly for Jake Archibald's video.

Good luck!
[1]: from what I gather asynchronous programming using callbacks isn't used anymore but it might be instructive to start with it, understand the issues with it, and why promises replaced this style.

luuuzeta2 replies#
I've your blog bookmarked and I'll be reading it this weekend haha. Thanks for putting it together!

>Callbacks are not asynchronous by nature, but can be used for asynchronous purposes.
Glad you mention this because some people make it since like callbacks are a de-facto asynchronous-based concept. Callbacks are simply anonymous functions or lambdas that you pass to asynchronous functions so you can work with the produced values. Correct me if I'm wrong though.

microjim#
More accurately -

Callbacks are anonymous functions [or references to named functions] that you pass to asynchronous [or synchronous] functions so you can work with the produced values [or do anything else]

Continue this thread — 1 more reply

Continue this thread — 5 more replies

foooobaba3 replies#
3blue1brown linear algebra + the linear algebra chapter from “all the math you missed but need to know for graduate school” - linear algebra and abstract vector spaces in general finally feel familiar.

Also, timbuktu manuscripts - showed a history that I had never really heard of. These are written manuscripts of african scholars which are hundreds of years old, and still exist today. Some record the history of great west african civilizations along with other things they studied (e.g. science, religion, math, literature, ect). I was never taught this history even existed but yet was made to learn the various details about asian, european, middle eastern, central/south american history. This, and the attempts to destroy/steal these manuscripts at various points in history, made it click how serious power of controlling information, and ultimately influencing beliefs can be, with respect to giving legitimacy to the various rulers/authorities. Beliefs/perceptions matter quite a lot. This 1hr lecture is quite good: https://m.youtube.com/watch?v=lQiqyyRfL2Y&t=16s
Behavioral biology class from Dr. Sapolsky (Sanford) - explains a lot of why we behave the way we do, from different biological perspectives https://m.youtube.com/playlist?list=PLqeYp3nxIYpF7dW7qK8OvLs...

dendrite91 reply#
On the Timbuktu manuscripts, I found this book really fascinating. I knew about bits of the story on a very rough sense but the details about various people, and excerpts from the manuscripts made for a book I had to finish. https://www.simonandschuster.com/books/The-Bad-Ass-Librarian...

Syria’s Secret Library By Mike Thomson was suggested to me while I was reading the previous book, but I haven't made time to read it just yet.

foooobaba#
Thanks for sharing, I’ll have to check these out.
bongwater_OS#
If it weren't for those Sapolsky lectures I would have never become intellectually curious. Beautiful lectures from a beautiful mind.
signaru#
Jeffrey Chasnov's linear algebra courses when you want to get your hands dirty. I made my first matrix inversion code after watching his videos. His videos are not code, but instead just going through and explaining process without skipping any details such that you'd understand enough to code it. He does many linear algebra examples by hand on a writing board which ends up more engaging than the typical slideshow that tends to skip the "tedious" details.

https://www.youtube.com/playlist?list=PLkZjai-2Jcxlg-Z1roB0p...

gwbas1c4 replies#
The E-Myth Revisited: Why Most Small Businesses Don't Work and What to Do About It (Michael E. Gerber)

What it taught me is that effective organizations invest heavily in training newcomers how to do their jobs / processes. I see this everywhere; when I walk into a business and something's "just off," it's almost always because management is dropping the ball on training newcomers how to do their jobs.
In my specific case, I was having trouble getting good bug reports, and my teammates were struggling with poorly written tickets. I had to take the time to explain what the process was for handing off work from QA to developers. Things moved much more smoothly after that. (IE, I had to explain that all tickets needed steps to reproduce, except in very specific circumstances.)
https://www.amazon.com/Myth-Revisited-Small-Businesses-About...

rahimnathwani#
You can't train people if you don't standardize first! This could be as simple as deciding what elements a big report should contain, or as complex as a multi-page standard operating procedure (SOP) for a knarly process.
mjburgess#
100% agree with this... it's very strange. The younger the business I've worked at, the more they assume incoming talent has the skills. And its exactly the opposite.
is_true1 reply#
I think the problem is that most people managing organizations don't see the value in processes.
gwbas1c#
It's a cultural thing. I've seen it in California companies, but not in Massachusetts companies. (In MA, people will talk about SOPs all the time.)

> In my specific case, I was having trouble getting good bug reports,
I just had to avoid the word "process."
What I've also observed is that some people in the startup scene think processes are restrictive. That's usually a sign of a company / leader that's too immature to effectively manage through high growth. (You can't have exponential startup growth without processes.)

AlwaysRock4 replies#
My first question for recruiters is always about how a company trains/mentors employees. I have gotten maybe 5 good responses out of the 100's of times I've asked that question.

It's shocking to me. Every employee you hire is going to have to be trained on SOMETHING that is new to them or specific to your company. Why dont companies spend more time developing onboarding and training programs that actually work?

tsycho1 reply#
While your question itself is good, it's unfortunately quite likely that the recruiters won't actually know the answer. So their answer isn't a good signal.

Separately, in larger companies, there will be significant variance between the onboarding process of teams/orgs.

AlwaysRock#
Sure. Recruiters wont know the answers to a lot of questions. Especially things that are not talked about often or focused on at the company. If a company is proud of their internal training program they would highlight that to potential employees and anything a recruiter can use to sell the company they will.

It's true that a recruiter might not know about a companies training program and that program may exist and actually be good. But its much more likely they wont know because one either doesnt exist or isnt formalized at all and isnt a focus for the company.

cassepipe#
Because companies prefer offloading the cost of education onto society but then endlessly complain on how formation is too broad, that is not catered specifically to their needs while not be willing to pay for it. Ok I (hope I am) exaggerating but there seems to be something like that going on in my country

Continue this thread — 2 more replies

denton-scratch#
No book. Just one course.

I was a rather humble support guy for COBOL applications, so I had to learn COBOL, which I did.
I was sent by my manager for a one-off, three-day "advanced COBOL" course.
It wasn't about advanced COBOL; it was an advanced course on the seven-pass Burroughs COBOL compiler. Memory was short in those days, hence the seven passes; intermediate results were files on disk. We learned that by nulling the executable for a chosen pass, we could hack the intermediate files, to do things COBOL programs weren't supposed to do, like calling OS functions.
I learned how parsers work, and how parse trees are represented. I learned about intermediate code, optimisers, interpreters, and code generators. I got interested in compilers, and wrote a source-level debugger. It was just a three-day course, but it was incredibly valuable to me. Perhaps life-changing.
Perhaps it's not so much that that course made something click that wasn't clicking for me; rather, it inspired an interest in me that simply wasn't there before.
As I said this was a one-off course. There was about seven of us, and I don't believe anyone else ever received that training.

Load more comments