News for hackers. Stuff that matters.

macpete42

Works for Portugal since forever
Re:Programming Is Mostly Thinking on Sunday April 21, 2024 @07:10AM (#40104723)
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.
catch them at the source and return sealed classes (used like sum types) instead
Re:Why Did the Beatles Get So Many Bad Reviews? on Saturday February 04, 2023 @03:14AM (#34652695)
This makes a lot of sense since quite often many positive reviews are just fake and paid.
Re:Haskell Lens Tutorial by Exercises on Tuesday December 06, 2022 @07:23AM (#33878574)
Lovely all these nonsense operators like ^. .~ just to save a few characters and make everything more magic than it is.
Re:‘Woof’, a pure Scala 3 logging library on Saturday December 18, 2021 @04:35PM (#29608756)
code reviews would probably be a better fit to prevent that.
Re:‘Woof’, a pure Scala 3 logging library on Saturday December 18, 2021 @03:42PM (#29608326)
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?
Re:‘Woof’, a pure Scala 3 logging library on Saturday December 18, 2021 @02:50PM (#29607904)
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?
Re:Mistakes I've Made in AWS on Saturday September 11, 2021 @05:29AM (#28490609)
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.
Re:Why printers add secret tracking dots (2020) on Sunday August 01, 2021 @02:16PM (#28028572)
How about adding custom additional yellow dots to render the hidden information useless?
Re:Why printers add secret tracking dots (2020) on Sunday August 01, 2021 @09:45AM (#28026189)
Would it be possible to print out on a piece of yellow paper to make the yellow dots undetectable?