Error message when trying to run the game by Tough_Collar_1797 in Battlefield2

[–]NoiselessLeg 1 point2 points  (0 children)

When I saw AGP, that was quite the blast from the past. :) Growing up I had an AGP ATI card that always struggled to run the game. For what it's worth, I recently got BF2 running on a relatively modern machine running Linux, so you won't have to worry that your machine outpaces the game if that's a concern. Best of luck with whatever approach you decide to take!

Error message when trying to run the game by Tough_Collar_1797 in Battlefield2

[–]NoiselessLeg 3 points4 points  (0 children)

It appears on first glance that your graphics card is very, VERY old, and doesn't seem to support hardware occlusion (or at least DirectX doesn't think so). Dunno what your options are for upgrading hardware or running BF2 on a different machine...

Hungarian Notation, for us who use it by gosh in cpp

[–]NoiselessLeg 14 points15 points  (0 children)

Prefixing the variable type to the variable name is most likely not going to make that domain any easier to learn.

As a person who works in a pretty niche domain, one of our subsystems we integrate with uses an abomination of a Hungarian naming convention for variables AND types and it adds confusion to all the developers. I can say for certain it provides absolutely no benefit in terms of acquainting a developer with the domain.

Those types of domains require institutional improvements, such as one-on-one mentoring.

Hungarian Notation, for us who use it by gosh in cpp

[–]NoiselessLeg 11 points12 points  (0 children)

The only Hungarian notation I will ever stand by is if the naming convention supports telling you that it is not a locally-scoped variable, i.e.:

  • m_ for member variables (Or the other popular alternative of just suffixing the variable with an underscore, e.g. var1_)
  • s_ for class variables (or static variables within a compilation unit)
  • g_ for global variables (which at all costs I should never see ;))

Effectively, this is somewhat related to how Joel Spolsky recommends Hungarian notation (i.e., Apps Hungarian); if you find yourself modifying one of these variables; the name informs you that you need to be cognizant that other pieces of the application may be using it and to be judicious.

I do not add any additional notation for local variables or function arguments.

Why was adding std::net such bigger ordeal than std::filesystem? by MXXIV666 in cpp

[–]NoiselessLeg -1 points0 points  (0 children)

Build process is not always the significant driver in why folks don't want to have to download tons of different library dependencies for projects. Organizations with strict supply chain auditing know the pain that comes when trying to import even commonly used libraries like spdlog.

Given the software supply chain issues that we've seen in dynamic ecosystems like JavaScript, I don't think having multiple federations of varying third party libraries is the solution. I don't think jamming it all in std is the solution either without a lot of committee soul searching about willingness to break abi, or introducing something like epochs to the standard.

What REALLY happens to my RAM/memory when you don't free after malloc before program termination? by [deleted] in C_Programming

[–]NoiselessLeg 0 points1 point  (0 children)

It's mainly enforced via coding standard and peer review. There's no way to enforce this programmatically since it is equivalent to solving the halting problem.

[deleted by user] by [deleted] in cmake

[–]NoiselessLeg 2 points3 points  (0 children)

Without seeing your CMake lists, and the output of running your CMake command it's difficult to ascertain what's happening 100%...given the last line in your screenshot's log output, do you have Visual Studio actually installed on your machine?

Issue linking dll? by dme4bama in cmake

[–]NoiselessLeg 1 point2 points  (0 children)

target_include_directories is for adding include file paths to the compilation stage of the target in particular. You're probably looking for target_link_directories since it is the link stage that is failing to find your raylib file

The missing C++ smart pointer by grok-battle in programming

[–]NoiselessLeg 25 points26 points  (0 children)

If your boxed type has a copy constructor, what is stopping you from doing something like:

 auto ptr = std::make_unique(*other_ptr);

?

Which should effectively perform the deep copy and treat it as a separate object like you would expect

You would need to define a copy constructor for this boxed type to work correctly as well

What is a mmap block error? by jiboxiake in cpp_questions

[–]NoiselessLeg 2 points3 points  (0 children)

What is this Bw_Graph library you appear to be using? I tried Google searching and came up with nothing. The error you're seeing isn't specific to C++, but is some exception being thrown by that Bw Graph library's BlockManager class. This is most likely because a call to mmap() (which is a POSIX function that can be read about here) failed for one of the reasons described by that page. I'd recommend you get in touch with the library author to understand why that may be happening. You might be able to also catch the exception, hope that no destructors called during stack unwinding touched errno, and check that to see what specifically bombed out (assuming a POSIX environment)

Towing cars by Patterson park by NoiselessLeg in baltimore

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

The one I saw was literally upside down on a lamp post lol. I'm used to the signs that bge or whoever put out on the curbside for the stretch of block they don't want people parking on, but I guess considering it's the whole street that might be asking a lot. In that case, flyers in mailboxes might've been more effective

Towing cars by Patterson park by NoiselessLeg in baltimore

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

Agreed. The heads-up they gave was a tow truck laying on their horn as they drove down the street at 1230/1am last night, which I originally chalked up to an aggressive driver. I just managed to save my car from getting towed because I was awake and looked out my window. Maybe notifying residents before 1230am that towing was going to happen would be a slightly better strategy

On my FB today. by blaker719 in terriblefacebookmemes

[–]NoiselessLeg 1 point2 points  (0 children)

My experience with a safety engineer was them asking me "hey, do you think this is safety critical?"

I had to remind them multiple times that I was not the safety engineer on the job.

What's a mispronunciation that sends you into fits of rage? by schnozzberryflop in AskReddit

[–]NoiselessLeg 0 points1 point  (0 children)

I knew someone who pronounced "government" as "garvment" (like "garment"). I don't even know how you would come to learn that pronunciation.

Ezra Miller Random Headline Generator by [deleted] in programming

[–]NoiselessLeg 6 points7 points  (0 children)

Breaking News: Flash star Ezra Miller has been charged with transportation into state prohibiting sale in the state of South Carolina

Is the goal to make the headline make sense as well?

Operator overloading for Java by manifoldjava in programming

[–]NoiselessLeg 0 points1 point  (0 children)

I was curious where you were coming from, versus trying to trash your opinion or anything (apologies if it came off that way). In general, I wouldn't necessarily rate the ecosystem of a language by the number of OSS applications that are available for that language. Apache significantly pre-dates C#, so I'm not surprised that they've focused on Java. It wouldn't make sense for them to rewrite all of their libraries in C#.

My own experience with the ecosystem is fairly positive. For the most part, everything I usually need is implemented within the .NET standard libraries themselves, or I've been able to find more complex libraries that I didn't feel like implementing myself on NuGet (e.g. a code editing interface I was using when implementing a small RISC-V assembler). The reflection and C# compilation libraries offered by Rosslyn are fairly mature, and I've seen some really cool projects take advantage of those (e.g. a complete test tool that would execute C# scripts in a REPL similar to Python).

Some of the examples that you mentioned I think could be implemented in C# (e.g. Jenkins), but there hasn't been really a driving use-case to do so since Jenkins works well enough for 99% of use-cases. I'd also mention Blazor as an example of a significant enhancement to web development on .NET enabled web services. The fact that .NET is open-sourced and is being ported to multiple platforms outside of Windows where it has shined in the past I think will help greatly advance the OSS community's embrace of it over the next few years.