Avatar
ThyLobster
c65d0b75a84bbfc046b9cedc0cf098a0816b83ad24004ec8bb9314baa178758c
Coder by day. Libertarian (it seems).

Why are the corrupt and evil politicians not in jail?

Because we don't get together. because the masses have a hard time organising.

I come here because this is a place of freedom.

Why is my feed full of people talking about the SEC like bitcoin is American? Who gives a shit? Why are you acting like "this really doesn't matter" and then spend days texting about it?

Silly sods.

Bitcoin is the fix the world needs.

The price of bitcoin, is it's freedom.

The two biggest problems in software engineering are code written for the machine instead of other human beings and writing code which reflects the cognitive capacity of the author.

Today I had a comment on a code review which left me pretty confused.

I would really appreciate if some of you coders out there (some of which have written books and that :) ) could share your thoughts.

The questions are:

1. Is there a code smell here?

2. Do we really need to make variables out of duplicated strings under ALL circumstances?

I have an example here

https://lnkd.in/ejrRnCgZ

The documentation the reviewer presented to back up their argument is here: (I know it's for Go, but should still apply)

https://lnkd.in/e82Y_5tz

They have a compelling case, but from my experience, the closest thing I can come up with in terms of code smells, its the "primitive obsession", but that doesn't quite apply.

Please help?

nostr:npub19mun7qwdyjf7qs3456u8kyxncjn5u2n7klpu4utgy68k4aenzj6synjnft, nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft

Why would that be good? Just so we know which ones can be centrally turned off?

If that's the case, I would agree. Perhaps even have them with a property which indicates it's level of independence / isolation.

Does anyone else here hates Flutter?

There must be a better way!

Ah yeah. I remember him building the best speakers in the world and I was totally glued to the screen.

But I wonder, since he does jump between completely different types of science field, is there much validity in all of this? The way he explains it, makes sense, but is he leaving tremendous gaps by lack of experience? What do you think?

Oh wow. I once went to school in Portugal with someone who was born there. I didn't think that actually existed. :)

The worst thing that could happen after famine and nuclear war is if Craig Wright turns out to be Satoshi.

Replying to Avatar unclebobmartin

In the late '50s there was a big debate amongst the programmers of the day. Should recursion be a feature in our languages. The Algol 60 commitee debated this for some time; and the debate was not entirely civil.

Dijkstra was a big proponent of recursive functions. He thought all functions in Algol should allow recursion. He was nearly laughed out of one meeting for making that case. Others, who were far more concerned about efficiency of memory and time thought that recursion was too costly to allow. They accused Dijkstra of just wanting to "play". And who can blame them, the computers of the day were vacuum tube monstronsities with memories maintained in accoustic waves in big tubes of Mercury that had to be maintained at 45C. Cycle times were barely sub-millisecond. Stacks were not part of any computer hardware at the time.

Dijkstra took the long view. He thought that recursion added to the expressivity of a language; and that the biggest cost of an automated system was going to be _programmers_. This was not true at the time. Even very expensive programmers were cheap compared to computer time. If a programmer could save one hour per week of computer time, it would pay back his salary in relatively short order. In those days, efficiency at the bit and millisecond level was a top priority.

In the end, after much cajoling and nasty argumentation, Dijkstra won the day. Algol 60 was a recursive language. It's not clear to me, however, whether this helped, or hindered the acceptance of Algol 60. Most Americans of the day felt that the language was too academic (translation: slow and impractical) for commercial application.

Did anyone presented an argument towards infinite recursion? I can see how that could be problematic....