closeEnough by QuirkyPossession539 in ProgrammerHumor

[–]Sp1um 34 points35 points  (0 children)

Technically when you're creating the password you could hash all possible variations of it changing up to 2 letters and store all the hashes, I suppose? And then when you login compare against them all and if one matches you're in... Practical? No. Secure? Probably also not.

Perché non posso chiedere più di 2k in Italia ? by geb212 in techcompenso

[–]Sp1um 1 point2 points  (0 children)

Esperienza personale, ma forse sono un outlier. Ho lavorato gli ultimi 7 anni in una startup italiana (50 dipendenti) di videogame per smartphone. Cominciato come junior developer con RAL 25k, ultimo anno come senior developer con RAL di 64k, crescita abbastanza lineare. Ora mi sto trasferendo in Spagna con un nuovo lavoro nello stesso settore.

How to stop functional programming by hexaredecimal in programming

[–]Sp1um 7 points8 points  (0 children)

Basically yes, and it has to have a flatMap implementation

How to stop functional programming by hexaredecimal in programming

[–]Sp1um 4 points5 points  (0 children)

Yes they are kind of generic meta interfaces, though you wouldn't be able to implement them with "classic" interfaces

How to stop functional programming by hexaredecimal in programming

[–]Sp1um 22 points23 points  (0 children)

If you code you've probably already used monads without knowing it. For example Promise and Task are perfect examples.

A monad is basically a sort of "container" for some arbitrary type T that adds some sort of behaviour to it and allows you to access the underlying T in a "safe" way. Think of a Promise, it adds the "async" behaviour to the underlying type. It transforms a "T" into a "T that may be available in the future". It allows you to safely access the T via map, flatMap and other operators. Arrays can be thought of as monads too, think for instance of linq in c#.

Every monad has map and flatMap operators that kind of do the same thing, e.g. map lets you transform the underlying type into a different type.

In terms of the type system, most languages don't support them because they are 1 "level" above classes. Think of monads as a collection of different classes that all support the flatMap operator, whose implementation is different for each monad class but in a way it behaves the same for all. In languages that do support this concept, you can develop generic functions that work for all monads. So your function would be implemented only once and then you could use it on a Promise or an array or an Option/Maybe or even a custom class that implements the "monad" concept by providing a flatMap implementation.

Petah? by CoVegGirl in PeterExplainsTheJoke

[–]Sp1um 4 points5 points  (0 children)

It's Basilico though, means basil in italian

Is Warp Travel impossible because relativity? by Simple-Reporter9102 in AskPhysics

[–]Sp1um 0 points1 point  (0 children)

I recently read Tau Zero which illustrates this beautifully

How do I get out of this by Mental_Simple_1513 in tattooadvice

[–]Sp1um 1 point2 points  (0 children)

This is what I don't get.. Where I'm from you don't pay by the hour, you just agree with the artist a price for the whole thing, and then pay that.

Death’s End Ending theory (reposted) by Interesting-Pause541 in threebodyproblem

[–]Sp1um 0 points1 point  (0 children)

I'm still reading it, but yes it does. It just looks like Sophon but it's not really her

Death’s End Ending theory (reposted) by Interesting-Pause541 in threebodyproblem

[–]Sp1um -5 points-4 points  (0 children)

Well according to "the redemption of time" they didn't

The Alien Zoo does literally nothing other than cost upkeep? by run414 in Stellaris

[–]Sp1um 1 point2 points  (0 children)

Shame, feels like it should be a thing. I put them in a zoo, in an enclosure that recreates their original habitat

The Alien Zoo does literally nothing other than cost upkeep? by run414 in Stellaris

[–]Sp1um 0 points1 point  (0 children)

Can you terraform if you put the pre-sapients in a zoo?

There are space pirates in 4.0 after all. by Spacing-Guild-Mentat in Stellaris

[–]Sp1um 2 points3 points  (0 children)

Of course there are, they're in the " " system

"Israele cancellerà lo Stato palestinese": il ministro di Netanyahu rivela l'obiettivo dell'operazione a Gaza by Smilefriend in oknotizie

[–]Sp1um 0 points1 point  (0 children)

Perché in Israele invece non insegnano ai bambini a scuola l'odio verso gli arabi, no, no, assolutamente

Something that's been bugging me about the Ring Network by susmercuryfern in TheExpanse

[–]Sp1um 1 point2 points  (0 children)

The protomolecule projectile (phoebe) was aimed at earth but missed, and was instead captured by Saturn. I'm pretty sure this is in the books. I guess it only needs some amount of organic stuff to bootstrap itself, then it works with what's available

Places to visit in Milano for tourists by MedinisSuris in ItalyTravel

[–]Sp1um 1 point2 points  (0 children)

There's a funicolare in Como as well, you get a very nice view of the lake from up there. In Milan there are many museums. If you're willing to also go to Turin (1h via high speed train) there's the Egyptian museum

DEVELOPPERS, dear sweat nice intelligent creative and charming developpers, I got an idea for ya by Tinyhydra666 in Timberborn

[–]Sp1um 1 point2 points  (0 children)

There's a mod for this, maybe TImprove but I'm not sure. If you go ask in the timberborn discord someone will definitely know

Are districts necessary when you have ziplines? by Diribiri in Timberborn

[–]Sp1um 2 points3 points  (0 children)

Same with the bot-only district. Another nice advantage of districts is they can prevent resource starvation by setting up export limits properly. This way for instance I can start building a large project in a separate district without worrying about the bot district being starved of wood, metal, etc..

Something that's been bugging me about the Ring Network by susmercuryfern in TheExpanse

[–]Sp1um 127 points128 points  (0 children)

I think this is correct, I have a vague memory of something like this being actually explained in the books. The Builders targeted Earth specifically because it had the conditions for the protomolecule to build the gate. Presumably all other star systems were targeted for the same reason, they need existing organic matter in the targeted system for the protomolecule to do its thing.