« first day (4185 days earlier)      last day (129 days later) » 

00:20
REFRESH! There are 5566 unanswered questions (92.8277 answered)
00:53
Monking
01:06
@Malachi Howdy stranger.
hey, what's new?
My 50th high school reunion is this weekend
Other than that I'm finally trying to really learn C++ class templates
And Qt
 
9 hours later…
10:04
I'm getting plenty of downvotes for this answer, presumably because I only answered the OPs question and did not do a full code review, applying enterprise architectural best-practices. Such is modern Stack Overflow I guess. And yes there's no error handling either. — Patrick McDonald 18 secs ago
 
4 hours later…
13:50
Qt is a C++ thing, right? I recognize it but can't remember exactly what it is
14:01
"Will also be grateful for any hints to improve my code formatting, use of best practices, etc. cause I am new to the C++ and programming in general." -- This sort of open-ended, opinion-based feedback is off-topic for Stack Overflow. You should remove this request from your question. (There is a code review site for such feedback.) — JaMiT 13 secs ago
@Malachi Platform independent graphic system, you can write apps for Linux and Windows, and I think MacOS.
 
1 hour later…
15:24
@pacmaninbw Actually, the core of Qt (IMO) is its multithread event delivery and notification system (signals and slots). There's a good UI toolkit included, as well as other useful abstractions such as networking.
15:35
@TobySpeight To me Qt is the widget toolkit which doesn't have the same theme as the rest of my computer. Which I can't be bothered to properly set up.
@Peilonrayz Yeah, that's a pain - I guess it comes from its heritage in embedded systems where user Xresources aren't really a thing.
Your team should decide on a style and use things like .editorconfig to enforce consistency within the code base. It's often a good idea to start with a baseline of recommendations commonly accepted for the language you're using. For example, Putting { on the same line as if/else, while common in Java/JavaScript, is less idiomatic in C#. You may want to try codereview.stackexchange.com and let people give you a variety of suggestions. For example, you could reduce nesting by inverting your conditions, and leverage TryGetValue for better performance. — StriplingWarrior 10 secs ago
15:51
Monking
16:30
If you have code that works, but need to improve its runtime, you might ask at Code Review . Before posting there, please review their requirements. Note that one requirement is showing your code. — Old Dog Programmer 37 secs ago
16:40
Monking
@Malachi Yes, although wrappers/bindings for other languages are popular.
Qt (pronounced "cute" or as an initialism) is a cross-platform application development framework for creating graphical user interfaces as well as cross-platform applications that run on various software and hardware platforms such as Linux, Windows, macOS, Android or embedded systems with little or no change in the underlying codebase while still being a native application with native capabilities and speed. Qt is currently being developed by The Qt Company, a publicly listed company, and the Qt Project under open-source governance, involving individual developers and organizations working to...
 
1 hour later…
17:49
This is off topic - you might get better answers over on Code Review. Make sure you first check what is on-topic there. — Jeanot Zubler 22 secs ago
18:25
what is &= in C#?
trying to search for it is a pain....
google search is better than Bing search.
this is in reference to a Boolean, so it's a second line for the boolean.
> bool isValid = !this.ValidationMessages.Any();
> isValid &= (!validationMessages?.Any()) ?? true;
I am codereviewing integration tests
The Boolean docs probably just say the operator(s) are the same except bound to 1 bit.
something about not shortcutting after the first false value or something...
I am going to ask her about this code, I am curious. I am sure she has a reason for what she did here, and I love learning new things. and I am trying to learn the code base anyway.
Huh, C#'s ! with null results in null. Really makes the null syntax nicer. You can imagine the code is just isValid = !this.ValidationMessages.Any() && !validationMessages.Any(). Except you have some null handling stuff too.
18:57
there is an instance where both values could be false making the statement true, or both statements being true and making the statement true, but that first statement could be null?
I should be smoke testing something....
I reached out to the person who made the PR and they said it was someone else's code they had inadvertently pulled in from another branch or something like that.
so I reached out to that person, but they are out today so I won't hear back until Monday
I am getting comfortable here enough to start poking Developers.... I am a little nervous....
19:26
@Malachi I'm not really sure where the xor (^ or !=) has come from. Here's a truth table.
thank you, it's Friday... almost Happy Hour at work! I don't have a beer... ugh!
19:49
0
Q: Pattern matching api with predicates support

Sergey KolesnikTL;DR https://godbolt.org/z/TMfb8z99h static std::string match(const std::variant<int, double, std::string, std::vector<int>> &v) { return v >>= m // matches `int` | [](int i) { return std::to_string(i); } // matches `std::string` | [](const std::string &s) { ret...

 
3 hours later…
22:47
0
Q: Merge discrete integer intervals

FromTheStackAndBackWhat it does The code starts with a set of integer intervals, and can add new intervals (possibly by updating existing intervals). Essentially, it is a bit array whose index starts at min(interval_start) and ends at max(interval_end). add adds a new interval into the set, possibly merging with e...

23:10
0
Q: Combinator Expression Parser in Rust

flakpmI am writing a parser/evaluator for combinator expressions. My end goal with this project is (attempt to) solve AoC 2024 using only combinatory logic. I am representing combinator expressions as sequences of items, where each element left-associated is applied to the one after it. An element can ...


« first day (4185 days earlier)      last day (129 days later) »