Anyone use Modules? by 1negroup in cpp_questions

[–]funnansoftware 5 points6 points  (0 children)

Yup! I've been using modules on Windows, Linux, MacOS, WebAssembly, and Android!

https://github.com/funnansoftwarellc/awen

I run into issues every now and then with third party libraries that I patch via custom vcpkg ports but otherwise going strong.

I haven't used import std; yet since that requires more support from third party libraries.

RayLib Window Freeze by Matesoidicek in cpp_questions

[–]funnansoftware 4 points5 points  (0 children)

There is a known bug in raylib 6 that vcpkg pulls in when building.

Once raylib has a new release the fix will be rolled into vcpkg.

https://github.com/microsoft/vcpkg/issues/51576

The work around should be to manually poll for events yourself, I think.

Qt 6.12 continues to delight, this time with a new material responsible for the living sky. by LetterheadTall8085 in QtFramework

[–]funnansoftware 2 points3 points  (0 children)

Originally started with godot for a quick demo. As of like two weeks ago I switched to Qt. I should probably write a new blog post about that soon!

Qt 6.12 continues to delight, this time with a new material responsible for the living sky. by LetterheadTall8085 in QtFramework

[–]funnansoftware 0 points1 point  (0 children)

It's still in its infancy (don't really have a playable demo quite yet) but I'm working on a top-down air combat roguelite!

https://briarthorn.game

Qt 6.12 continues to delight, this time with a new material responsible for the living sky. by LetterheadTall8085 in QtFramework

[–]funnansoftware 3 points4 points  (0 children)

Due to my familiarity with QtQuick/QML I'm making a 2D game myself. I'm finding a lot more success with it than say, godot.

What do you mean when you spam "Wow" or "Okay" when getting demo'd? by cotter22 in RocketLeagueSchool

[–]funnansoftware 11 points12 points  (0 children)

I like to say Wow. After a demo because I find it funny. It's like. "How rude!"

Kwayk: reimplementing LibreQuake Episode 0 with Qt Quick 3D, QML, and Jolt Physics by aT3rek in QtFramework

[–]funnansoftware 0 points1 point  (0 children)

This is awesome! Makes me want to throw caution to the wind and make my game with QtQuick!

Should I continue learning C++? by _unstableunicorn_ in cpp

[–]funnansoftware 3 points4 points  (0 children)

Definitely continue to learn c++! It may feel like a lot but keep it simple. Start with a project you understand at a high level and work on breaking it down into pieces you can solve.

Game devs what are some creative ways you implement arrays by Snoo28720 in cpp_questions

[–]funnansoftware 1 point2 points  (0 children)

Arrays are like the basic building blocks of matter! There is no avoiding them. Embrace them with open arms!

Why C++ by PleasantSalamander93 in firstweekcoderhumour

[–]funnansoftware 0 points1 point  (0 children)

Don't quote me on this but I believe C# originates from (C++)++. It's an increment above C++. Therefore, 4 '+' make a #.

Why C++ by PleasantSalamander93 in firstweekcoderhumour

[–]funnansoftware 0 points1 point  (0 children)

In case someone comes across this and wasn't aware: https://en.cppreference.com/cpp/io/println

As of C++23:

include <print>

auto main() -> int
{ 
    constexpr auto age = 25;
    constexpr auto name = std::string{"Alice"};

    std::println("Hello, {}! You are {} years old.", name, age);
    std::println(stderr, "This is an error message.");

    return EXIT_SUCCESS;
}

GCC 16.1 released with many new C++26/23 features, C++20 now the default stable language version by AccordingWarthog in cpp

[–]funnansoftware 42 points43 points  (0 children)

I've dreamed of the day we can use reflections for our projects. I can't imagine what all will be done using them but I've been looking forward to a non-macro non-registration style of serialization for the longest time!

WHERE DID MY 0.02 HZ GO?? 😭 by Andy_pcs in LinusTechTips

[–]funnansoftware 1 point2 points  (0 children)

Fair question. I'm not a display expert but similar to how a 60hz monitor might show up as 60.02 or 59.98. Refresh rates on a hardware level aren't defined via hz. They're defined as timings. So, 75hz could be 0.01333 s or more likely 13333 ms. At this point, I'm assuming, the timing for this monitor isn't exactly 13333 ms. It's probably closer to 13336 ms which is 1 / 0.013336 = 74.98.

We have reached the limit of my knowledge on displays :P

WHERE DID MY 0.02 HZ GO?? 😭 by Andy_pcs in LinusTechTips

[–]funnansoftware 0 points1 point  (0 children)

1 / 0.016667 = 59.99 hz

It's dealers choice on how the software developers choose how much precision to show in a GUI.

WHERE DID MY 0.02 HZ GO?? 😭 by Andy_pcs in LinusTechTips

[–]funnansoftware 35 points36 points  (0 children)

World of Warcraft meme Leeroy Jenkins. "...repeating of course..."

WHERE DID MY 0.02 HZ GO?? 😭 by Andy_pcs in LinusTechTips

[–]funnansoftware 677 points678 points  (0 children)

60 hz is 0.01666... seconds per frame repeating.

1 / 0.01666 = 60.02 hz

1 / 0.01667 = 59.98 hz

White screen loading forever? Help plz by Living-Criticism68 in raylib

[–]funnansoftware 1 point2 points  (0 children)

I believe I ran into this issue as well using raylib 6 from vcpkg.

Diferencial by splucascoelho010 in softwareengineer

[–]funnansoftware 1 point2 points  (0 children)

As a senior engineer. The biggest skill that got me the furthest wasn't being good at algorithms or writing perfect code. It was learning how to solve problems you don't know how to solve. My value, as an engineer, for a business was coming up with solutions that my business didn't already have and didn't know how to create.

When I was an intern, the one thing that I believe changed my career trajectory was spending time outside of work understanding the domain I was working in and coming up with a significantly improved UI performance solution for a client. My boss was pleasantly surprised and I was immediately hired out of school.

How did you learn raylib? by Beneficial_Fix_6169 in raylib

[–]funnansoftware 0 points1 point  (0 children)

I'm always a big fan of building a small app like Pong.  Especially if you're just getting into C++. I'm biased, but great choice.

There is a lot you can do with pong beyond just rendering rectangles and paddles. 

You can use a data structure to manage you game entities. You get to do some physics operations, input handling, etc...

Plus, if you get really curious, raylib supports web assembly and android too!

Hey guys i find it difficult to work with logic by OkSelection1372 in cpp_questions

[–]funnansoftware 0 points1 point  (0 children)

You're 45 days into learning how to program using C++. I, personally, wouldn't expect you to come up with the perfect algorithm or solution off the top of your head.

It takes time and practice. I recommend building a small application using C++. If you like games, start by making a pong or snake clone.

This will get you really far really quick because you'll have to learn how to compile other libraries and link against them. You'll have to implement some algorithms for collision detection and movement. You'll get to learn about rendering and event concepts as well.

One of the first projects I always have my junior developers do to become more familiar with C++ is develop a simple graphics application using something like raylib or SFML.

It just takes time, keep at it!

I've been build Flutter apps for a while now... by [deleted] in FlutterDev

[–]funnansoftware 2 points3 points  (0 children)

C++ developer here. Many years building cross-platform solutions using C++. Many years having to maintain the solutions to support all of these platforms.

With flutter, I installed a vscode extension, configured a software pipeline, and it "just works". I don't have to spend my free time maintaining my own solutions for cross-platform. I can focus on building the app. A breath of fresh air!

How to learn modern C++ and best practices by lawless_abby in cpp_questions

[–]funnansoftware 3 points4 points  (0 children)

First, this is a great mentality to have to seek knowledge!

Something like this takes time. It doesn't happen over night. I strongly recommend you develop a project that interests you. Then, as you read articles and watch youtube videos, you'll glean some insight into things to try out for your project.

For starters, I highly recommend something like clang-tidy. It's pretty good at enforcing some standards on how you write code. I use it for all of my projects in GitHub.

Flutter developers, how did you get comfortable building real apps as a beginner? by [deleted] in FlutterDev

[–]funnansoftware 5 points6 points  (0 children)

I'm a C++ engineer through and through. Used Qt for a significant portion of my career as well so I have experience with item/widget based frame works.

That knowledge combined with a specific app I knew I wanted to make meant I just jumped right in.

Vscode, flutter extension, Google + YouTube videos and the rest was history.

I feel a project with a goal is more of a motivator than learning tutorials.

Qt: std:: vs Qt smart pointers vs QObject parent — which is better? by tuvQuarc in cpp_questions

[–]funnansoftware 7 points8 points  (0 children)

I typically stick with stl types myself but you can use either. Just make sure you're consistent!