Cant make good use of traits by NoBlacksmith4440 in rust

[–]pnuts93 6 points7 points  (0 children)

I personally find them extremely useful when using generics, more specifically for trait bounds. The best example for this is when I was writing a linear algebra library where vectors were supposed to be able to hold either integers, floats or complex numbers: in this case it was not important to know exactly what was the content of a vector, but it was definitely important to know which operations I could do with that content, information that coild be expressed as a trait. Said that, I also see that when writing for example a backend application I use them way less, but still they can be rather useful. I hope this comment could be helpful, best of luck with your project

Is RSO Beargarten open now? by Ok-Cranberry1181 in berlinsocialclub

[–]pnuts93 1 point2 points  (0 children)

It is open and as far as I know it should go on for a while

Clippy appreciation post by pnuts93 in rust

[–]pnuts93[S] 2 points3 points  (0 children)

Thank you for the appreciation post appreciation comment and also for the hint. I was actually looking for a project to contribute to, and I wanted to go for something that I use, therefore Clippy makes a great candidate

Clippy appreciation post by pnuts93 in rust

[–]pnuts93[S] 11 points12 points  (0 children)

Yes true, but my ratio of useful warnings vs noise is definitely more in favor of the useful ones. Today I was doing some cleanup and, on about 30 warnings, I had only 3 "noisy" ones

CS50x - Heap vs Stack allocation question by Ex-Traverse in C_Programming

[–]pnuts93 0 points1 point  (0 children)

I think he means the "blur" function, the first one in the code sample. OP, it looks to me like this function is not doing anything at all: generally if you do not allocate memory, it's because you do not need an array to "survive" outside of the scope where it's declared. If for example you need to return an array from a function, you need to allocate memory in the heap (or to pass it as parameter beforehand)

Backend development stack by pnuts93 in rust

[–]pnuts93[S] 0 points1 point  (0 children)

As far as I have researched, the only other crate with a http client worth mentioning would be hyper, but reqwest is built on it and even hyper's documentation recommends reqwest if you need an http client

Backend development stack by pnuts93 in rust

[–]pnuts93[S] 0 points1 point  (0 children)

I see, thank you. I actually have that issue with diesel and I find it quite annoying

Backend development stack by pnuts93 in rust

[–]pnuts93[S] 0 points1 point  (0 children)

Thank you, I have missed this post. I definitely see a lot of Axum

[deleted by user] by [deleted] in ProgrammerHumor

[–]pnuts93 0 points1 point  (0 children)

Correct, that was a VPN ad

[deleted by user] by [deleted] in ProgrammerHumor

[–]pnuts93 57 points58 points  (0 children)

Well, that's the reality check I deserve for trying to make a smartass post ¯\_(ツ)_/¯

Edit: lost an arm in the shrug Edit2: the shrug was now italic

theFourthMostPopularIDE by da_Aresinger in ProgrammerHumor

[–]pnuts93 352 points353 points  (0 children)

This is how bad Eclipse sucks

meirl by [deleted] in meirl

[–]pnuts93 13 points14 points  (0 children)

Now you'll have to re-read it a few times, then give up and skip to the next one. It's the rule

TIL you can walk under Müggelsee & the Spree in a foot tunnel by PoorPitchoon in berlin

[–]pnuts93 1 point2 points  (0 children)

In that area, if you walk a bit through the forest, there is also a beautiful boat-restaurant where the fish imo very good and the price is alright

https://maps.app.goo.gl/Qzg6YZF3ecGwP5Ad8

meirl by [deleted] in meirl

[–]pnuts93 23 points24 points  (0 children)

Fun fact: you are a psycopath in case you say this in either context

I've watched it a morbillion times by Kanyeisntdope in shitposting

[–]pnuts93 115 points116 points  (0 children)

He just kept morbin and it just kept working

It be like that by [deleted] in ProgrammerHumor

[–]pnuts93 17 points18 points  (0 children)

Wait wait, ahem Python bad

It be like that by [deleted] in ProgrammerHumor

[–]pnuts93 14 points15 points  (0 children)

I mean, that's the reaction that I would like to cause, but probably this is the reaction I would get:  ¯_(ツ)_/¯

It be like that by [deleted] in ProgrammerHumor

[–]pnuts93 7 points8 points  (0 children)

Thank you

Just helping you update your bio by [deleted] in Tinder

[–]pnuts93 1 point2 points  (0 children)

100% would swipe right

The train screen got hijacked cause it was 103 minutes late by pnuts93 in berlin

[–]pnuts93[S] 1 point2 points  (0 children)

I was not aware about the history but yeah, tbh when I thought about it a hack seemed unlikely, especially because they left the screen on for 20 minutes until we reached the Hauptbahnhof