somegeek

joined 2 years ago
[–] somegeek@programming.dev 2 points 1 day ago* (last edited 1 day ago) (3 children)

The language thay you are already using! You need to understand FP, not a new language. Definitely read "Grokking simplicity" by Eric Normand.

But if you want to learn a new language more suited for FP, I would hardly recommend either guile scheme, racket, or clojure (all are lisps and you can use and build real word things with them forever). Haskell is also great but it's much harder than lisps.

You can do oop or fp with lisps, there is basically no syntax, you can get started and actually focusing on doing FP in a month. (Som say you can learn the language itself in a week, which you can but if you are really dedicating time to it).

[–] somegeek@programming.dev 1 points 1 day ago

Good HTML is coherent by itself. Depends on if the html is good or not.

[–] somegeek@programming.dev 1 points 2 days ago

Oh that's just the delusion of freedom. USA is great at selling that. We will still fight but accepting the truth is always the sane approach compared to hopeful optimism .

Russia and china and easterns are more straight forward. "We don't want you to have privacy and control" Western countries wrap it around a populistic shiny wrapper. "This is the land of freedom, you are encouraged to have privacy and controll, unless you actually try to do so" they also let people play in the dirt unless they are doing something serious and pose some threat. But eastern governments are much less tolerant. You will be punished even for minor inconvenience.

[–] somegeek@programming.dev 9 points 2 days ago (14 children)

People calling functional programming weird hurts me. It's just unfamiliar not weird.

[–] somegeek@programming.dev 4 points 2 days ago (3 children)

I am having the time of my life with Clojure. Lisps in general. They really change how you view software. I was showing how clojure works to my Java coworker and showing her the REPL and powers of Clojure, and we both almost teared up :)) It's tgat good.

[–] somegeek@programming.dev 3 points 2 days ago (2 children)

The whole world is going that direction. Russia, north korea and china are leading the way, wester countries are more sly and subtle in how to do things, but america and UK are going the same direction.

[–] somegeek@programming.dev 16 points 2 days ago

Damn this is one of the darkest images I've seen.

[–] somegeek@programming.dev 1 points 2 days ago

Zulip still has cuck licensing (permissive license). Same thing that happened to mattermost will happen to all permissively licensed projects.

[–] somegeek@programming.dev 1 points 2 days ago (1 children)

Damn that's cool. But I'm imagining putting this mental model on top of vim and window manager and tmux will really fry my brain! More power to you

[–] somegeek@programming.dev 3 points 4 days ago (3 children)

This looks super cool but what is the usecase? Isn't it too limited?

[–] somegeek@programming.dev 2 points 4 days ago

wow such a great post! I loved how simply and like he said, intuitively he explained this. This really highlights how goo S-expressions and lisp syntax is.

[–] somegeek@programming.dev 1 points 6 days ago

I use Jerboa on android

8
submitted 10 months ago* (last edited 10 months ago) by somegeek@programming.dev to c/advent_of_code@programming.dev
 

Hi guys.

I just did day1 of 2024 (I know, I'm late) this might be a dumb question but I reallydont understand why we should sort the two lists before substracting? I created some test cases with 10-20 items and calculated them manually, if you don't sort the list and just add all list1 items and substract from the sum of list2, you get the same answer. But it doesn't work with the large input file.

Let's say list1 has elements (a,b,c,d) and list2 has (e,f,g,h).

(a-e)+(b-f)+(c-g)+(d-h) = a-e+b-f+c-g+d-h = (a+b+c+d)-(e+f+g+h)

So the sorting shouldn't matter. Right? But it does. Am I too bad at basic math?

 

checkout "My checklist and tips for server setup"

Please share your tips and tricks with me. I would love to hear them and use them.

Any feedback is welcomed.

 

Hi Redshift isn't maintained anymore and lately redshift-gtk doesnt start anymore (something about a python circular dependancy).

What should we use?

33
submitted 1 year ago* (last edited 1 year ago) by somegeek@programming.dev to c/unixporn@lemmy.ml
 

cross-posted from: https://programming.dev/post/24458085

Hi guys.

I have an android head unit for my car that only manages multimedia, navigation and stuff. it also has multiple physical buttons and knobs. It’s offbrand so can name the particular brand or model.

can I for example upgrade the OS?

 

Hi guys.

I have an android head unit for my car that only manages multimedia, navigation and stuff. it also has multiple physical buttons and knobs. It’s offbrand so can name the particular brand or model.

can I for example upgrade the OS?

 

Hi everybody. I have a rooted phone and I was thinking, If I can spin up something like Samsung DEX on my phone, alongside my android, that uses Linux, I can do 80% of my work just with my phone. Is that doable? Can someone provide me with more information?

 

Hi everybody. I have a rooted phone and I was thinking, If I can spin up something like Samsung DEX on my phone, alongside my android, that uses Linux, I can do 80% of my work just with my phone. Is that doable? Can someone provide me with more information?

 
view more: next ›