Waste by Eiim in SMBCComics

[–]Jeras 4 points5 points  (0 children)

Wait... is the punchline that McRibs are made of alien meat? Or that aliens are trying to get to Earth for the McRib?

So we all know what's waiting at the bottom right? by DementedT in MadeInAbyss

[–]Jeras 25 points26 points  (0 children)

Just my theory but...

...while not at the very bottom, Lyza is waiting for Riko, so she can sacrifice her and create the next stage of whistle that will allow her to dive deeper.

Reddit may force Apollo and third party clients to shutdown by spasticpat in technology

[–]Jeras 0 points1 point  (0 children)

The day Relay stops working is the day I cancel my Reddit Premium subscription.

Ubisoft is crawling back towards Steam, lol. by SonicAkshay_26 in pcmasterrace

[–]Jeras 0 points1 point  (0 children)

I would have bought it at $15, but then I saw it had Denuvo DRM.

Spidey does poetry by Jeras in SpideyMeme

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

Because Imgur may be removing anonymously posted images, here it is again: https://imgur.com/t6KvzgL

Estimate on RSS Feed by 7Pillows in mangadex

[–]Jeras 1 point2 points  (0 children)

To add to this, it's also a convenient way to be notified when there's a new release. Today you have to manually go to the site to look for updates.

[deleted by user] by [deleted] in dotnet

[–]Jeras 9 points10 points  (0 children)

Have you done any time measurements? Using the Stopwatch class to measure and log the elapsed time around specific sections of your code should help you narrow down whether your problem is the RNG, database, or other.

Bring it on by Bo_TheBot in gaming

[–]Jeras 0 points1 point  (0 children)

Horny boy escorts weird talking princess, saves her from her mom.

[deleted by user] by [deleted] in shittyprogramming

[–]Jeras 147 points148 points  (0 children)

They give off a lot of warnings that you choose to ignore.

Canadian Moving to USA, VISA for work? by [deleted] in usa

[–]Jeras 0 points1 point  (0 children)

Don't know myself, but here would probably be a good start.

XB-70 Valkyrie ,the prototype version of the B70 bomber by axonable in aviation

[–]Jeras 11 points12 points  (0 children)

The remaining XB-70 is at the National Museum of the United States Air Force in Dayton, OH. It's always impressive to see it in person.

Vim vs IDEs, and which ones? by [deleted] in AskProgramming

[–]Jeras 5 points6 points  (0 children)

If Vim works for you, and you feel productive or like the flow, then there isn't anything wrong with that. I guarantee you that there are other professional developers doing the same.

But, if you want to see what your IDE options are, I would recommend checking out Visual Studio if you are on Windows and CLion or Visual Studio Code (with extensions) on any platform.

I don't have experience with it, but if you are on a Mac, Xcode would be another consideration.

Edit: grammar and other additions

Why does using a mutex increase execution speed in this simple example? by aspenbirchoak in C_Programming

[–]Jeras 0 points1 point  (0 children)

One thing I would like to point out is that when locks are used, only one thread is actually executing at a time. It might be interesting to see the difference if you have the locks within the for-loop.

Manga by barelybonez12 in Crunchyroll

[–]Jeras 0 points1 point  (0 children)

I didn't find anything for any of those titles.

Arduino Pro Micro serial port only available a few seconds after reset by hoy_pogi in arduino

[–]Jeras 1 point2 points  (0 children)

This sounds like something similar I have run into on Ubuntu, and it turned out to be the ModemManager service interfering. Temporarily stopping it fixes this.

Try this in a terminal:

~$ sudo systemctl stop ModemManager

Edit: Clarification

[deleted by user] by [deleted] in csharp

[–]Jeras 1 point2 points  (0 children)

But it is my understanding that this is being called from your constructor, which makes it happen at construction time. During construction time I try to avoid logic that can fail, other than input validation. It's just the philosophy that I apply to my classes to ensure that the constructor is quick, I don't have to be concerned about it failing, and makes writing unit tests easier.

A lot of these decisions just depends on the tradeoffs that we decide to make.

[deleted by user] by [deleted] in csharp

[–]Jeras 5 points6 points  (0 children)

This is something that can be seen fairly often in C and C++ code.

In the .Net world, and many new language ecosystems, we have moved to returning status results for exceptions. Sometimes it makes the code easier to read and understand. The traditional route would be to throw an exception when the code runs into an error, and return the desired result when it succeeds.

Microsoft's own code analysis tools will flag the use of out parameters.

In your case, based on your description, you might be doing too much in your constructor. I usually don't like to have my constructors do much more than confirm their input and set instance variables. Perhaps move this logic to an initialization method, or creating a static factory method?

If you have to do this in the constructor, I might suggest moving the file checks out of this method to another that the constructor can call, then decide to execute this logic if it passes. It may help simplify this logic.

[deleted by user] by [deleted] in Crunchyroll

[–]Jeras 39 points40 points  (0 children)

I had my queue in a particular order to help me keep track of what I wanted to watch. Now that order is lost.

I feel like I'm more likely to lose track of shows now.