(TypeScript) Rule: Never use curried functions.
Because the compiler won't catch if the parameters change. Work with the compiler! #fivelinesofcode
Example:
This table cloth trick is a good metaphor for refactoring, since we are changing the underlying structure (the cloth), without changing functionality (the tableware).
It also illustrates the difference between taking small and big refactoring steps.
piped.video/XwaH-qT4Rm0?t=189
Btw. @LlewellynFalco you are mentioned in Five Lines of Code, as your Strong-Style Pairing is the single thing with the biggest impact on my career. For this, I am very grateful
Five Lines of Code is essentially 75% off today, because you get two copies for half price! You wont get a better deal than this 💰
manning.com/books/five-lines…
I still can't believe I am on Amazon 🤩 This has been a dream since I started working on the book 4 years ago. I am super excited to see how many people will pick up a copy. Some weekend reading maybe? 😁
amazon.com/Five-Lines-Code-w…
Five Lines of Code is back on Manning's bestseller list, and again I just want to thank everybody who has bought a copy! I wish you all a wonderful programming career!
Ref: manning.com/
Within the next few days Five Lines of Code will be sent to the printers, and it is looking great! The book describes a novel approach to learning about code quality and refactoring, focusing on minimizing cognitive overhead. Check it out mng.bz/7lvg#refactoring
A while ago I designed a new type of sudoku.
Two sudokus are entangled and have to be solved at once. In the two grids only the digit 9 align, thus there will be two numbers in every cell, except if there is a 9. The cages are just for aesthetics.
f-puzzles.com/?id=yxczgurh
My book Five Lines of Code is one of @ManningBooks 2020 best sellers 🥳 Again thank you to everyone who have picked up a copy 🙏 also: all best sellers are HALF OFF today!
manning.com/dotd
Today you have another chance to grab a copy my book for half price. With a really cool new chapter about structure in code coming out any day now! 😄
Get it here: manning.com/books/five-lines…
You can pick up my book Five Lines of Code for half price today! I just sent chapter 11 (out of 14) in for review, so it should be coming out soon..
Get it here: manning.com/books/five-lines…
My book Five Lines of Code is back on @ManningBooks best seller list! 🥳
Thank you so much to all the people who have purchased a copy! You are wonderful people! 🙏
If you haven't yet, you can check it out here: manning.com/books/five-lines…
Like many others, I also think this calls for recursion. We can take advantage of the fact that partitioning an even number results in two numbers with the same parity. In the base case (x<10) we can simply use isOdd; implemented in the obvious way.