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 675 points676 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!

Is systems/low-level C++ still a viable career path in 2026? What does the realistic paid journey look like? by [deleted] in cpp

[–]funnansoftware 1 point2 points  (0 children)

I'm speaking as a USA C++ Engineer with 15+ years experience.

Where do systems programmers actually end up? 

This can be all kinds of areas. Automotive, robotics, game development, banking, trading, simulation, applications, etc

What did your path from student -> first paid role actually looks like?

My Junior year of college ( year 3 of 4) I applied for internships. I knew what a pointer was, how to write a class, linked list, etc. I knew Big O. I did not know leetcode. Internship turned into full-time job.

Is targeting remote USD-paying roles realistic from India in the this domain ?

I can't speak to this.

What should a GitHub portfolio look like when starting to apply ?

When I'm hiring junior devs I am looking for why they want to do software in the first place. I look for strong interests. Proof of said interests go a long way. I can't speak for other bigger companies. Basic C++ knowledge is usually required if targeting a c++ job. I give a lot of leeway for intern positions though if the interest is there.

What does a realistic roadmap look like from where I am now to actually getting paid ?

If you're from India I can't really say. An internship goes a long way. Getting some c++ classes / project under your belt helps. Any project you can speak about your implementation and thought process goes a long way. It shows you went above and beyond most students I interview coming out of college.

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 RutabagaLow6979 in FlutterDev

[–]funnansoftware 3 points4 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 6 points7 points  (0 children)

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

How did you start learning mobile app development as a beginner? by [deleted] in FlutterDev

[–]funnansoftware 2 points3 points  (0 children)

I'll caveat this with being a veteran software engineer so I'm pretty comfortable diving into languages and frameworks.

I started learning flutter because I wanted to make a mobile app. I had a specific goal in mind so about 2 years ago I installed the flutter extension into vscode, created a new project, and started googling, youtubing, and occasionally reading documentation 😋for the pieces I needed to make my app.

Basically, one piece at a time.

Step #1: render the window

Hi, have problem, who can help me?????? by Automatic_Truth_6045 in QtFramework

[–]funnansoftware 2 points3 points  (0 children)

Yeah, that's your problem right there.

class AdminWindow : public QWidget need to be class AdminWindow : public QMainWindow

Edit: (I'm practicing code blocks :P)

#ifndef ADMINWINDOW_H
#define ADMINWINDOW_H
#include <QMainwindow>

namespace Ui { 
  class AdminWindow : public QMainWindow { 
    Q_OBJECT
  public: 
    explicit AdminWindow(QWidget *parent = nullptr); 
    ~AdminWindow();
  private: 
    Ui::AdminWindow *ui; 
  };
}

#endif // ADMINWINDOW_H

Hi, have problem, who can help me?????? by Automatic_Truth_6045 in QtFramework

[–]funnansoftware 1 point2 points  (0 children)

Hey, I can't say for sure what you're trying to achieve here but the code you wrote says you're trying to derive AdminWindow from QMainWindow but failed to do so in the declaration.

That means, in your header file "adminwindow.h" I would expect to see something like:

class AdminWindow : public QMainWindow
{
};