HNHacker News
TopNewBestAskShowJobs

macpete42

22 karma · joined August 1, 2021

submissionscomments
macpete42··on Decline in teen drug use continues, surprising experts
Works for Portugal since forever
macpete42··on Programming Is Mostly Thinking (2014)
Code is more flexible than text for drafting the idea. Later on it will expand into a fully working solution. Defining non functional interface definitions and data objects for "scribbling" the use case works best for me.
macpete42··on Unchecked Java: Say goodbye to checked exceptions
catch them at the source and return sealed classes (used like sum types) instead
macpete42··on Why did The Beatles get so many bad reviews?
This makes a lot of sense since quite often many positive reviews are just fake and paid.
macpete42··on Exercises for understanding Haskell Lenses (2019)
Lovely all these nonsense operators like ^. .~ just to save a few characters and make everything more magic than it is.
macpete42··on ‘Woof’, a pure Scala 3 logging library
code reviews would probably be a better fit to prevent that.
macpete42··on ‘Woof’, a pure Scala 3 logging library
Why would I verify logging which itself is a verification instrument? And, seriously, how hard is it to emit a diagnostic message so I need a test for that to get it right?
macpete42··on ‘Woof’, a pure Scala 3 logging library
the so called "purity" is achieved by using a higher kinded type and the cats IO monad. it's like adding "1+1" with a "mathematical-calculation-monoid-combine-factory-builder-singleton-locator-evaluator-pattern". I remember keeping it simple as an ultimate goal but maybe I am just too for this FP peeing contest? why is it such a frickin' deal to log a message somewhere?
macpete42··on Mistakes I've Made in AWS
I can confirm that: cloud helps to evade the incompetent sales and infrastructure teams in many companies. Saving money never works once your product scales out.
macpete42··on Why printers add secret tracking dots (2020)
How about adding custom additional yellow dots to render the hidden information useless?
macpete42··on Why printers add secret tracking dots (2020)
Would it be possible to print out on a piece of yellow paper to make the yellow dots undetectable?