« first day (4254 days earlier)      last day (58 days later) » 

00:21
REFRESH! There are 5232 unanswered questions (93.2484 answered)
01:04
 
5 hours later…
05:47
0
Q: Balancing Magic Numbers and Readability in C++ Code

wepajakegI have written a C++ program that calculates the floor of 64 divided by n for values of n from 1 to 64. I'm trying to get a faster SWAR algorithm that avoids costly divisions. The problem is that the SWAR method uses a lot of magic numbers. I used constexpr functions to show the origin of the mag...

06:31
0
Q: How do I establish an open connection to an open web browser in C#?

xarzuHow do I establish an open connection to an open web browser in C#? In a Microsoft C# program using a Visual Studio Code I am using the following namespaces: using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Support.UI; After I get a string variable, "url", assigned with...

 
5 hours later…
11:38
1
Q: Fibonacci Series Exercise

RedM3talThis is an exercise from the text "Programming: Principles and Practice Using C++" by B.S. : Exercise 11 of chapter 5. The following is asked: " Write a program that writes out the first so many values ​​of the Fibonacci series, that >is, the series that starts with 1 1 2 3 5 8 13 21 34. The nex...

Yeah I guess this is down to documentation and code review. Maybe someone else has another idea. — tl-photography.at 49 secs ago
 
2 hours later…
14:05
Monking
14:24
Bizarre... every time I kill a zombie (and I do that a lot), the question immediately gets a downvote, as if there's a bot running
@toolic Answering a zombie makes it pop up in the Top Questions which immediately gets new eyes on it.
14:40
@pacmaninbw: It makes sense that there are more eyes on it, but the downvotes within a couple minutes is surprising. The last one I killed had 3 ups and 0 downs. I upvoted (as I always do on questions I answer). Nothing is wrong; I'm just surprised, that's all.
@toolic Did Santa just up vote the answer and the question?
14:54
@pacmaninbw: Looks like it :)
15:20
Your post is a little broad and possibly a better fit for codereview if the code is working. If you have a specific issue please edit the question to reflect this and it will be easier to help. — NickSlash 32 secs ago
15:44
16:05
its not really a code review, I was hopin' for someone just to read the code and tell if there's any fundamental error in the logic of interacting with web workers — Anas Mostafa 26 secs ago
16:29
@AnasMostafa - you're asking for someone to review your code. This doesn't fit on Stack Overflow. As already pointed out, Code Review is a more appropriate place (following the guidance linked-to already). Outside of that, someone would need to download, run, and debug your code to figure out various logic errors and edge cases. Please read How to AskDavid Makogon 1 min ago
 
2 hours later…
18:13
0
Q: A generic function that reads a line of numeric values from a file

GeometriaDifferenzialeI'm writing a library of IO functions for my physics laboratory class. In the meanwhile, I'm hoping to learn more about generic programming and C++20 concepts. Some context I usually came home from the lab with a .txt file that looks like value value value ... value value value ... where each l...

 
4 hours later…
22:14
0
Q: Rust implementation of Euler problems

zephyrI'm starting to learn rust and figured my first simple project would be to solve some of the Euler problems. I'd appreciate if anyone could review and tell me where I might be going wrong in my setup, language usage, or lack of rusty code. Here's the general file structure. src\ |- main.rs |- pro...

22:26
@toolic I've noticed a lot of posts seem to get bizarre -1s. Lots of posts will enter the 2nd with a random -1 which doesn't make much sense. I would ask a CM... but the team seem to take 6-8 weeks to respond.
3
23:09
More importantly, this question is too broad for Stack Overflow. For improving working code, you can ask on Code Review instead, but first please read their How to Ask page since they have specific requirements different from Stack Overflow. See also A guide to Code Review for Stack Overflow users. — wjandrea 36 secs ago
23:25
This question doesn't fit SO as currently written. German text aside, asking "is this code correct" is usually off-topic as long as it works to the best of your knowledge. Such questions could be answered on CodeReview SE. Consider also formatting your snippet with black or ruff prior to posting as the current layout is overly sparse and difficult to read. However, I doubt it's answerable there too: __getattribute__ cannot be implemented completely in python. Your func should behave close to that, but it defers to object.__getattribute__, which feels like cheating... — STerliakov just now

« first day (4254 days earlier)      last day (58 days later) »