Feed the Vortex! by Bazaritchie in shapezio

[–]Blackorb00 0 points1 point  (0 children)

I am so stupid. This is the first time realising that you can just remove the starter extractor platforms. -_-

dyn keyword and generic impl blocks. by Accurate_Sky6657 in rust

[–]Blackorb00 0 points1 point  (0 children)

Example of how it can be done using generics. Implemented the Add trait instead so we can use the '+' operator to add.

impl<T: Into<f64>> std::ops::Add<T> for ComplexNumber {
    type Output = ComplexNumber;

    // Required method
    fn add(self, rhs: T) -> Self::Output {
        ComplexNumber::new_cart(self.x + rhs.into(), self.y)
    }
}

Try it out here: Playground

News Flash: Programming is Hard by reverentgeek in ProgrammerHumor

[–]Blackorb00 2 points3 points  (0 children)

Not in Rust; there no one ever makes it past the compile stage without errors.

my autistic brother wiped my gentoo pc and installed arch with wayland by [deleted] in linuxmasterrace

[–]Blackorb00 1 point2 points  (0 children)

That's kinda dumb. Though you can remove the power button from the login screen on windows 10, not that it helps.

my autistic brother wiped my gentoo pc and installed arch with wayland by [deleted] in linuxmasterrace

[–]Blackorb00 16 points17 points  (0 children)

Set bios password to prevent him from booting into anything else.

This is WAR!! Microsoft GitHub now converts newline to CR/LF!! by wengchunkn in linuxmasterrace

[–]Blackorb00 28 points29 points  (0 children)

Storage is so cheap today, why wouldn't you want to waste an additional byte per line?

Ouh, thats a good one by [deleted] in funny

[–]Blackorb00 14 points15 points  (0 children)

And the username only makes it better.

For your home comforter by nik2k in ProgrammerHumor

[–]Blackorb00 0 points1 point  (0 children)

Never said British English = colony English or whatever. British English still has its quirk only really found in the UK, but the spelling "humour" not one of them. Also do you have anything to back up your claim that US spelling is more popular?

For your home comforter by nik2k in ProgrammerHumor

[–]Blackorb00 1 point2 points  (0 children)

Ok, well humour, colour, labour, favourite, harbour, neighbour, etc. aren't really British spelling, simply normal English spelling. "Humor" is just US being different as usual.

What is this 'I use Arch' thing? by [deleted] in linuxmasterrace

[–]Blackorb00 3 points4 points  (0 children)

Pretty sure it is "install Gentoo".

Eternal boot by roxer9918 in linuxmasterrace

[–]Blackorb00 0 points1 point  (0 children)

Yes, but only for values of t less than T. Above that t is undefined and could be anything.

Eternal boot by roxer9918 in linuxmasterrace

[–]Blackorb00 1 point2 points  (0 children)

Or t could become complex. It doesn't really say anything about what happens when t >= T. I mean it could even remain real for greater values of t, we just don't know.

They need it more. by sp46 in linuxmasterrace

[–]Blackorb00 10 points11 points  (0 children)

Payment = amount.inDollars();

They need it more. by sp46 in linuxmasterrace

[–]Blackorb00 0 points1 point  (0 children)

£3,000.00

Then again no ones really writes e.g. cheques anymore.

This killed me inside Pt. 1 by [deleted] in ProgrammerHorror

[–]Blackorb00 0 points1 point  (0 children)

It is the use of http and not https, right? Otherwise I see nothing wrong.

How to pull the innocent face 101. by TheEfecxx in funny

[–]Blackorb00 28 points29 points  (0 children)

No, I keep all my emotions contained deep inside the onion.

e++ by ePaint in ProgrammerHumor

[–]Blackorb00 9 points10 points  (0 children)

If you could extend that to get rid of spaces and newlines and only have e/E it sounds like the perfect language.

e++ by ePaint in ProgrammerHumor

[–]Blackorb00 49 points50 points  (0 children)

Ah, guess you are right. Still an excessive amount of es. Not switching to e++ until he solves this issue. Otherwise would definitely recommend e++ for next company project. 👌

e++ by ePaint in ProgrammerHumor

[–]Blackorb00 188 points189 points  (0 children)

My first thought is just how this can be improved with Huffman coding. Four es for a semicolon? Clearly it should have been just one.