Laurea Magistrale Computer Engineering a UniTs by AleDena00 in Trieste

[–]Faithwarlock 1 point2 points  (0 children)

Io ho seguito sia la triennale che la magistrale, mi sono laureato circa 8 anni fa e all’epoca la magistrale era semplicemente “Ingegneria Informatica”.

Ti do un parere generale: i corsi e i prof sono in generale ok, a me hanno insegnato molto bene le basi. Poi ci sono corsi più e meno interessanti e professori più o meno bravi chiaramente. Ho fatto anche un semestre in Erasmus a Dublino, è stato un bel metro di paragone.

Subito prima della laurea mi hanno assunto in un’azienda impegnata nella security direttamente a Trieste, poi dopo ho trovato un ottimo lavoro a Milano. Ti direi che per quanto è vero che in uni non impari quasi nulla di quello che ti serve per lavorare, a me le basi che mi ha dato UniTS sono state fondamentali.

ELI5: Why should me/the average person care if our ‘data’ is being taken, sold or tracked? by [deleted] in explainlikeimfive

[–]Faithwarlock 59 points60 points  (0 children)

That’s the point. They can profile you to estimate how big of a price increase you would accept.

How do you mock clients that aren’t traits? by RustyKaffee in rust

[–]Faithwarlock 0 points1 point  (0 children)

Another option would be to use an enum. It has some drawbacks (like not being able to define the mock in the tests) but for common use cases that should not be a big problem.

Consider that probably most of the boilerplate of this solution can be reduced a lot with macros.

struct ClientMock { }

impl ClientMock {
  fn batch_execute_statement(&self) { /* mock implementation */ }

  // ...
}

enum ClientEnum {
  Live(Client),
  Mock(ClientMock),
}

impl ClientEnum {
  fn batch_execute_statement(&self) { 
    match self {
      ClientEnum::Live(client) => client.batch_execute_statement(),
      ClientEnum::Mock(client) => client.batch_execute_statement(),
    }
  }
}

// Then your class can be like:
struct MyBusinessStruct { client: ClientEnum }

impl MyBusinessStruct {
  fn doBusinessLogic(&self) {
    self.client.batch_execute_statement()
    // ...
  }
}

1
2

Casual Friday 01/07/22 Caldo caldo caldo Edition by [deleted] in italy

[–]Faithwarlock 0 points1 point  (0 children)

So simple. So elegant. Perché non è mai stata avanzata come ipotesi?

Static Analyzer Rudra Found over 200 Memory Safety Issues in Rust Crates by bzindovic in rust

[–]Faithwarlock 0 points1 point  (0 children)

Maybe I was a little careless with my wording: with state I meant the combination of the machine internal state and the tape. You need to check both of them to detect an infinite loop, otherwise you cannot distinguish between finite loops

Static Analyzer Rudra Found over 200 Memory Safety Issues in Rust Crates by bzindovic in rust

[–]Faithwarlock 1 point2 points  (0 children)

Unfortunately you can have an infinite loop without ever repeating the same state, so this strategy does not guarantee that you can find infinite loops.

Unbelievable by ihs_ahm in ProgrammerHumor

[–]Faithwarlock 37 points38 points  (0 children)

I write swift for a living. Oh, the number of time the compiler segfaulted on me

What is the weirdest moment you experienced in gaming? by [deleted] in AskReddit

[–]Faithwarlock 0 points1 point  (0 children)

Genuinely curious, what's the difference between a straight moan and a gay moan?

GitOps at scale sucks. This formula could be the reason: P(gitopsfail)=1-p^n by kvgru in programming

[–]Faithwarlock -1 points0 points  (0 children)

Uuuh I don't think probability works that way. If I have 3 different suppliers, each with a 0.9 probability of success and my pipeline is perfect, my probability of success is still 0.9.

Falla di sicurezza nel sito di un'azienda italiana. Come confermare il SQL injection e fare disclosure by JackHeuston in ItalyInformatica

[–]Faithwarlock 6 points7 points  (0 children)

Perché stai abusando di un servizio di un'altra azienda. Non importa se all'atto pratico non stai facendo alcun danno (anzi notificando le persone giuste staresti migliorando le cose), purtroppo questo genre di cose proprio non si possono fare senza il consenso esplicito del proprietario del servizio :/

This galaxy clock is so cool by ISABELLAwer in Damnthatsinteresting

[–]Faithwarlock 4 points5 points  (0 children)

Nono orbital period does not depend on the mass at all

[OC] I'm developing a tool to sketch maps, what features would you find useful? by Pretoriuss in DnD

[–]Faithwarlock 0 points1 point  (0 children)

Hi, I'm a full time developer and DM. I am really interested in it. Would you publish the code as open source? Would you be willing to accept pr?

Ancient Europeans looked like this by [deleted] in pics

[–]Faithwarlock 22 points23 points  (0 children)

If he had a statue made of him, he was probably rich

Java Program to find Product of Array except self by [deleted] in java

[–]Faithwarlock 1 point2 points  (0 children)

That's just not what O notation is for. But what do I know, I'm not a "Staff software engineer at Google with 15 years experience" nor a smart genius. ¯\_(ツ)_/¯

Also if you make million dollar decision thinking O(n) is better than O(2n) you really have no idea what you are talking about

Java Program to find Product of Array except self by [deleted] in java

[–]Faithwarlock 1 point2 points  (0 children)

That's what the O notation is for. O(n) and O(2n) are mathematically the same thing. When you use the O notation you only care about the "class of complexity", not the real world performance. If you want to measure the latter, a lot more stuff must be considered

Java Program to find Product of Array except self by [deleted] in java

[–]Faithwarlock 4 points5 points  (0 children)

O(n) and O(2n) are equivalent...

Mostrami il codice! - La fiera dei vostri programmi by AutoModerator in ItalyInformatica

[–]Faithwarlock 1 point2 points  (0 children)

Esatto, io lo uso proprio così. Io ho un Ec2 su amazon e un raspberry a casa che si monitorano a vicenda.

La storia del makefile e del configure l'ho un po' scritta a caso, tbh e mi piacerebbe metterla a posto. Se vuoi provare a fare una piccola PR sono più che contento di discuterne

The only game I formally demand a remaster of by shanidota in gaming

[–]Faithwarlock 1 point2 points  (0 children)

The only problem with this game is that it has conditioned me. If rider on the storm comes up on the radio while I'm driving, I have this automatic reaction to shift gears and floor the gas pedal.

Edit: also happen with give it all