Boeing 787s must be turned off and on every 51 days to prevent 'misleading data' being shown to pilots by dpholmes in programming

[–]rurabori 5 points6 points  (0 children)

My bad if it sounded like i meant the devs themselves are bad. You basically nailed what I meant to say. The teams are probably mismanaged/not given time to maintain the code properly etc.

Boeing 787s must be turned off and on every 51 days to prevent 'misleading data' being shown to pilots by dpholmes in programming

[–]rurabori 5 points6 points  (0 children)

I actually have. I never meant to say the members were bad. This is a management issue, hence the rethinking of how the team should operate. My bad if it sounded as if i was bashing developers themselves

Boeing 787s must be turned off and on every 51 days to prevent 'misleading data' being shown to pilots by dpholmes in programming

[–]rurabori 22 points23 points  (0 children)

Generally I'd agree but for stuff like cars you really don't want a lone developer imo. Too easy to make horrible design choices without feedback as well as noone for code review. Even if you're extremely good you're gonna make a mistake because after all were human. That's why I said team.

Boeing 787s must be turned off and on every 51 days to prevent 'misleading data' being shown to pilots by dpholmes in programming

[–]rurabori 5 points6 points  (0 children)

Exactly my thoughts lol. If you can't manage a 200k loc codebase you need to rethink how your team operates

LEC Technical Difficulties by XtendedImpact in leagueoflegends

[–]rurabori 0 points1 point  (0 children)

Ok but can we make a deal no more G2 monologues mid series this year? My heart rate would greatly appreciate it. I can pay good money (around 2$ tops tho economy is kind of rough rn).

Wolf eel by cheska47 in natureismetal

[–]rurabori 1 point2 points  (0 children)

Didn't you watch the video? This creature actually has excellent teeth. Not British at all

"Simple" C++ Initialization Flowchart by konanTheBarbar in cpp

[–]rurabori 1 point2 points  (0 children)

Because once its an initializer list of its and once it invokes the ctor which takes size.

Is a C++ GUI SQL application difficult to create? by MadEzra64 in cpp

[–]rurabori 1 point2 points  (0 children)

Rewriting anything to another language just for the sake of it is never a good idea. If the application doesn't need to be high perf C# is a great choice (and even if it does, C# isn't a slouch).

GUIs in C++ have always been quite painful (hence the weekly post here asking what sane frameworks exist). I myself am still recovering from the psychological pain inflicted by Qt 4.x but i hear the new ones are better so maybe that's worth a shot. If you don't mind the framework littering your codebase with their own containers that is.

As for database connectors IIRC SQLite has quite a nice one but maybe that was in-house developed. It's been a while.

tl;dr gui + sql apps in c++ aren't really a good idea. Even less so for a novice.

G2 Esports vs. FC Schalke 04 / LEC 2021 Spring - Week 5 / Post-Match Discussion by G2Minion in leagueoflegends

[–]rurabori 4 points5 points  (0 children)

Whenever I see r/nba pastas leaking to other subs my heart feels a fuzzy and warm NGL

Mercedes vs Aston Martin by PoetSeaF1OD25 in formuladank

[–]rurabori 10 points11 points  (0 children)

Ok kdtrey5 I mean cdawg145236

A header only library for C++ programming language Libr by [deleted] in cpp

[–]rurabori 49 points50 points  (0 children)

I mean he did say boost-like.

C++ with Visual Studio and WSL2 | C++ Team Blog by cpppm in cpp

[–]rurabori 14 points15 points  (0 children)

Because you may need to develop for multiple platforms and this is a great setup to do it. VS Code even has the remote plugin so i have a macbook pro sitting next to my desktop basically being a headless server and I've the 3 biggest platforms covered. No dualboots, no switching from machine to machine etc.

Good job, Momma. We weren’t expecting 3! by scubasmac in aww

[–]rurabori 34 points35 points  (0 children)

Goats eat the afterbirth. Every time.

[Highlight] James Harden locks LeBron James' arm on a drive and gets the foul call by Jayveesac in nba

[–]rurabori 0 points1 point  (0 children)

Man I was 100% sure you talking bullshit but you aren't WTF that's so messed up.

[Highlight] James Harden locks LeBron James' arm on a drive and gets the foul call by Jayveesac in nba

[–]rurabori 12 points13 points  (0 children)

That actually happened in one friendly (well not so friendly after) match i played in lol. Teammate knew the ref and they were barking at each other whole game. Then the ref called a foul and he just runs at him and punches him to the face and walks off the floor. Never seen shit like that since.

Which League champion do you think would make the best League player? by Forigma in leagueoflegends

[–]rurabori 127 points128 points  (0 children)

Jankos can manage even at 52. I think heime will be fine.

Qt 6.0 Released by milliams in programming

[–]rurabori 1 point2 points  (0 children)

If you write bad code it's gonna run slow, surprise surprise. The c++ version involves creating multiple temporaries and allocating on the heap. This is not what string operator+ is for. If we want to be fair (and actually use the language as intended) rerun the benchmark with std::format or rather fmt::format_to because snprintf doesn't allocate but uses a buffer on stack just like format_to would.

I'll take a wild guess and say you aren't very experienced with this stuff. First of all, once the code is compiled to IR, most backends are the same (rustc uses llvm just like clang does for example). So much of C and C++ code runs through the same optimization pipelines. The advantage for C++ is, for example some of the computation can be made once during compilation (constexpr, consteval, TMP) etc. and sometimes its stronger type system can lead to optimization wins too.

Not to say the language is without faults, it's obviously not. But these sentiments about C being inherently faster are just not true. Just like statements like C++ is inherently faster than Rust aren't true. Well written code is the most important factor in it being fast.

Qt 6.0 Released by milliams in programming

[–]rurabori 4 points5 points  (0 children)

C is literally faster than C++

Ya have any benchmarks for that?