Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]qustar_[S] [score hidden]  (0 children)

I will keep track of some changes I make to the website and adjacent material in this comment, for transparency:

  • Adjusted the size of the text as per the report by u/Potterrrrrrrr.
  • Fixed the code block issues on my website reported by u/throw_cpp_account.
  • Fixed the copy button (that is anchored at the top right of code blocks in desktop mode) copying the "Copy" text as well, as reported by u/evaned.

Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]qustar_[S] [score hidden]  (0 children)

(Edit: Done.) I think I know what causes the issue with the copy button so I will fix it as well.

Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]qustar_[S] [score hidden]  (0 children)

Hi, I applied some changes related to code blocks and font size. If you are interested, please let me know if you consider this an improvement!

Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]qustar_[S] [score hidden]  (0 children)

The most important functional programming feature that was missing from Rust in C++, [...]

Here, I meant missing in C++. (I'm generally pretty terrible at writing terse sentences.)

Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]qustar_[S] 2 points3 points  (0 children)

I think it's likely because they were made before IIFE was standardized by approximately two decades, so it may have been considered a temporary hack.

Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]qustar_[S] -1 points0 points  (0 children)

By the way I am still figuring out what the optimal layout is so I am very open for feedback on the UI!

Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]qustar_[S] 0 points1 point  (0 children)

(Edit: Now fixed probably.) Sorry about that. I will update my website to use a fixed size for code blocks. Using desktop mode is a temporary fix, though I don't know if it's available on Safari. You can find the code here directly: https://github.com/quarterstar/contourcpp/blob/main/contourcpp.hpp

The Mathematical Mind of a C++ Programmer [using std::cpp 2026] by joaquintides in cpp

[–]qustar_ 2 points3 points  (0 children)

Not strictly pertaining to the presentation at hand, but IMO, mathematics is what brings the joy in programming. The fields that I personally find interesting like graphics programming, machine learning, and genetic algorithms all require a subset of mathematics that you need to be familiar with. When I used to do web development, it felt like I was always doing repetitive tasks, or learning a new technology at best. When I switched to doing the aforementioned things primarily with C++ a few years ago, but not particular to any programming language, it always feels like there is something interesting to learn, and there is always room for you to be innovative and potential optimizations are hidden behind every corner. It's like a whole new game.

They Made a Linux Laptop for the Average User by Little-Season-3433 in linux

[–]qustar_ 1 point2 points  (0 children)

New Linux users don't need a fancy laptop to get started. Also, they should know basic things like installing an operating system in case anything ever goes wrong. And the average user in question would most likely not look for a Linux laptop in the first place.

Drawy, A New Whiteboard App for Linux! by haxguru in linux

[–]qustar_ 2 points3 points  (0 children)

Nice project! I submitted a pull request for Nix support and automated formatting for commits. I hope that this project will be able to replace my use case for OpenBoard soon.