HN user

joebaf

1,298 karma

Software developer interested in creating great code and passionate about teaching.

see my blog at: http://www.bfilipek.com/

Posts211
Comments37
View on HN
www.iso.org 1y ago

C++23: ISO/IEC 14882:2024

joebaf
11pts1
www.cppstories.com 2y ago

Parsing Numbers At Compile Time with C++17, C++23, and C++26

joebaf
2pts0
www.cppstories.com 2y ago

C++20, Spans, Threads and Fun

joebaf
1pts0
www.cppstories.com 3y ago

Five C++ Papers for the H1 2023 – C++26, Varna and More

joebaf
1pts0
www.cppstories.com 3y ago

Is is that bad? std:initializer_list in C++ 1/2 – Internals and Use Cases

joebaf
3pts0
www.cppstories.com 3y ago

Structured bindings in C++17, 5 years later

joebaf
2pts0
www.cppstories.com 3y ago

Const vs. constexpr vs. consteval vs. constinit in C++20

joebaf
95pts175
www.cppstories.com 3y ago

How to Measure String SSO Length with constinit and constexpr (C++20 experiment)

joebaf
1pts0
www.cppstories.com 3y ago

Summary of Non-Regular Data Members in C++

joebaf
1pts0
www.cppstories.com 3y ago

How to Improve or Avoid Loops in C++20 23

joebaf
2pts0
www.cppstories.com 3y ago

C++20: Reducing Signed and Unsigned Mismatches with Std:Ssize()

joebaf
1pts0
www.cppstories.com 3y ago

Integer Conversions and Safe Comparisons in C++20

joebaf
1pts0
www.cppstories.com 3y ago

How to Init a String, Looking for Sanity

joebaf
3pts0
www.cppstories.com 3y ago

Curious C++ Lambda Examples: Recursion, constexpr, Containers C++23 included

joebaf
67pts55
www.cppstories.com 3y ago

Simplify Code with if constexpr and Concepts in C++17/C++20 (updated for 2022)

joebaf
3pts0
www.cppstories.com 3y ago

Custom types and std:format from C++20

joebaf
1pts1
www.cppstories.com 4y ago

Five tricky topics for data members in C++20

joebaf
1pts0
www.cppstories.com 4y ago

(Non) Static Data Members Initialization, from C++11 Till C++20

joebaf
1pts0
www.fluentcpp.com 4y ago

Steps to Find the Source of a Bug Quickly

joebaf
1pts0
www.cppstories.com 4y ago

Fixing C++'s footgun – Expression Evaluation Order, C++17

joebaf
2pts0
pages.jetbrains.com 5y ago

C++ Now videos, early access – brought to you by JetBrains

joebaf
2pts0
blog.wholetomato.com 5y ago

How to Modernize C++ Code with Visual Assist in Five Easy Steps

joebaf
1pts0
www.cppstories.com 5y ago

C++ Lambda Story in Print

joebaf
2pts0
learncplusplus.org 5y ago

C++ Is 9.4 Times Faster Than Python in Prime Number Test

joebaf
9pts24
www.cppstories.com 5y ago

Different Ways to Filter Containers in Modern C++

joebaf
2pts0
www.cppstories.com 5y ago

Visual Studio's Natvis Debugging Framework Tutorial

joebaf
1pts0
www.cppstories.com 5y ago

My first year as a creator at Patreon. See my summary

joebaf
2pts0
blog.wholetomato.com 5y ago

A Brief Introduction to Clang-Tidy and Its Role in Visual Assist

joebaf
1pts0
www.cppstories.com 5y ago

A Debugging Tip: Write Custom Visualizers in Visual Studio

joebaf
2pts0
www.cppstories.com 5y ago

C++ at the End of 2020

joebaf
2pts0

is ChatGPT actually the most important thing that happens... not just for C++, but in terms of all programming languages? How will it affect programming?

is ChatGPT actually the most important thing that happens... not just for C++, but in terms of all programming languages? How will it affect programming?

on the other hand with more options you can express more and write safer code (for example with constinit which solves static order init fiasco...) And if you don't have enough knowledge you can just stick to const.

What re alternatives for a system programming language? (Rust seems to be fine, but still it's not super easy...)

Hi, Author here - I went to lambdas because I got some compilation issues... because some stupid mistakes the code with std::apply(printImpl<Args...>, tp) didn't compile...

But now I see the issue and it's improved. So the version:

template <typename... Args> void printTupleApplyFn(const std::tuple<Args...>& tp) { std::cout << "("; std::apply(printImpl<Args...>, tp); // << std::cout << ")"; }

is fine and probably the easiest

Yep, smart pointers are essential for modern C++, and they provide improved security over raw pointers.

How do you use smart pointers? What’s your common use case to refactor into smart pointers?

Do you use static analysis for your projects? Do you find it as a key factor that improves the code quality or it's not that strong?

I think it can be an important element of the build process, but some tunning is needed to match the project needs.

[author here] you can always unsubscribe at any time, I think it's a fair trade. So please consider removing that comment with the links.

that's the beauty of using destructors to clean things when an object goes out of scope.

in your OnScopeExit we could use templates (and not use std::function), that way any callable thing could be called - and it would be lighter than std::function

The Matrix Updated 10 years ago

the postprocessing effects if very simple, you just apply a glyph (even random) instead of a pixel. So if might be used in lots of places... like you mention - for camera input. This was done 13 years ago for Desktop, C++... but now WebGL would be definitely a better choice.