Jimmy Koppel Profile picture
Turning good engineers into great at https://t.co/b5295anmRU . Reverse engineer. Blogs about software design at https://t.co/RYL1GZ92df. Ph. D. in programming languages from @MIT.
Mar 8, 2023 23 tweets 5 min read
"The Flaws of Inheritance" by @CodeAesthetic1 is beautiful, as always.

Problem though, is that none of the things discussed in the video have anything to do with inheritance

Time for a 🧵 on the most mind-bending construction in mainstream programming languages @CodeAesthetic1 Some context: I was talking to Norman Ramsey a few months ago about his new book. We started talking about objects, and he told me he barely covers them. Why? "Objects are not an undergrad topic"
Dec 7, 2022 33 tweets 15 min read
1/

Had a blast Monday giving a code-review guest lecture for MIT's 6.1040 "Software Studio" class with Daniel Jackson. Now my head's full of examples of good and bad frontend code.

n^2 likes = n+1 examples of making cleaner and more robust frontend code

First one's free. Image 2/

First example:

What does this code do?

Say it in plain English.

It checks if something is going to happen less than three days from now.

But what does ity say?

It says: take the start time, subtract the present time, divide by some big number, and then compare to 3. Image