Readit News logoReadit News
adamkl commented on 2026 Kia EV3 First Drive Review: More Like This, Please   thedrive.com/car-reviews/... · Posted by u/peutetre
csunbird · a year ago
These are what I have my eyes on - a small battery to do 10-20km trips within the day (and easier parking as there are designated charging points for charging EVs in my city). Any personal recommendations for a a crossover type car?
adamkl · a year ago
The Mitsubishi Outlander PHEV is very good (and is available without a wait). It differs from some of the other PHEVs in that it is really an EV (with 2 electric motors) and uses the gas engine primarily as a generator. This means it drives like an EV (no transmission, no power bands, just smooth acceleration at all times). A downside is that when running on gas, it's not as efficient because of the losses of going from mechanical energy to electrical energy back to mechanical, but I regularly get 70-80km on a charge, so the engine only kicks in on long weekend trips.
adamkl commented on Grokking Simplicity: Taming complex software with functional thinking   bagerbach.com/books/grokk... · Posted by u/jasim
adamkl · 2 years ago
If you like these notes, you should read the (very good) book:

https://www.manning.com/books/grokking-simplicity

adamkl commented on How to Lose Functional Programming at Work   robertwpearce.com/how-to-... · Posted by u/todsacerdoti
Tainnor · 3 years ago
If your functions are "stateless" (by which I assume you mean they don't depend on or modify outside state), then they are pure functions so... that's exactly FP?
adamkl · 3 years ago
That’s my point. FP can be as simple as that, and applied to any codebase. It’s all the extra stuff (which is good) that typically “defines” FP that scares people away, and keeps them from seeing the utility of a simple, pure function.
adamkl commented on How to Lose Functional Programming at Work   robertwpearce.com/how-to-... · Posted by u/todsacerdoti
badpun · 3 years ago
> but the tricky logic can be isolated in pure functions

That's not really FP though. In FP, you only have pure functions and not a mix of pure and impure.

adamkl · 3 years ago
Perfect is the enemy of good. I’ll take any percentage of pure functions that I can get.
adamkl commented on How to Lose Functional Programming at Work   robertwpearce.com/how-to-... · Posted by u/todsacerdoti
badpun · 3 years ago
They're pretty hard to use consistently in languages which aren't accomodating for them though, such as Haskel or Scala. In Java, C++ etc. you can't really program without majority of your functions having side effects - or at least I haven't yet seen anyone doing it.
adamkl · 3 years ago
It’s true that people don’t do it, because of language conventions, but there is no barrier to entry when it comes to writing functions (or methods in these languages) that operate solely as transformations of inputs to outputs. You then orchestrate these “pure” functions with simpler side-effectful methods that handle the external dependencies (data fetching/writing etc).

There’s no pushback because of “strange” FP patterns, code looks just like normal imperative code, but the tricky logic can be isolated in pure functions. The push back is only because of the strong OOP conventions.

adamkl commented on How to Lose Functional Programming at Work   robertwpearce.com/how-to-... · Posted by u/todsacerdoti
adamkl · 3 years ago
I’m my opinion, how to win would be to push for more logic in stateless functions, full stop.

This can be done in any language without introducing “foreign” FP patterns and instantly makes code easier to understand and test.

adamkl commented on Steve Yegge Joins as Head of Engineering of Sourcegraph   about.sourcegraph.com/blo... · Posted by u/misternugget
swolchok · 3 years ago
I loved it when I was younger, but I had trouble recommending it more recently because its tone is adjacent to personally attacking people who like Java.
adamkl · 3 years ago
Agree, but it helps to remember that it’s a product of its time. Feels like we’re overdue for a similar piece poking fun at Node/JavaScript and all of its foibles.

u/adamkl

KarmaCake day1061February 10, 2015View Original