Want a fun romp through FizzBuzz? It even uses Ranges so it's Functional Programming! Wow! #cpp #cplusplus
https://medium.com/one-stop-c-plus-plus/c-23-ranges-good-bad-ugly-fizzbuzz-27b2cc06c919
I am presenting at @CppCon
this October. The title of the talk is "A Journey into Non-Virtual Polymorphism." It is an introduction to polymorphism that doesn't rely on inheritance.
I hope to see y'all of there, especially those from @CppNorth.
Based on the comments here and another private one, I'll accept that function overloading and similar techniques are polymorphism. That defines the term as "type-based dispatch", or, in more C++ terms, "type-based invocation". I can work with that. The main focus will be on the override pattern, CRTP, and other approaches I've yet to discern.
Testing if the group @DiscussCPlusPlus@chirp.social is working. I just created it for #cpp and #CPlusCplus discussions.
Thinking about a conference talk on non-virtual polymorphism. I did an article on Medium with the overload pattern so I have the material. But the definition of "polymorphism" is slippery. For example, is function overloading polymorphism? I don't think so but if polymorphism is type-based dispatch it kind of fits. 🤔 🤔
Any thoughts?
An article exploring how to return the status from a function.
#cplusplus #CPP #cpp20
https://medium.com/one-stop-c-plus-plus/c-return-any-optional-or-variant-3c2222dbf787
An exploration of FizzBuzz using standard functions and the Ranges library, specifically views and pipelines.
https://medium.com/one-stop-c-plus-plus/c-23-ranges-good-bad-ugly-fizzbuzz-27b2cc06c919
I decided to tackle the Dutch Code problem in C++ and write about it.
Looking into learning more about functional programming, especially with #CPlusCplus. I have the Cukic and Bolboaca books. Just started reading the latter. Unfortunately, they are not in alignment with #Cpp 20 and obviously not with #Cpp 23.
I am interested in FP, but I haven't seen anything that seems current or not focused on other languages.
Please reply if interested and we'll see if there are enough to start a discussion.
(Is there a hashtag for FP? Creating a #CPlusCplusFP tag for discussions.)
After seeing your stories on Medium, I did some of the Advent of Code. Your use of functional programming led me to work with it more.
Currently working on an FP version of Day 7, the Linux-like command processing.
I wonder if a views::transform can take a vector in and output a std::set or std::map.
I do some writing on Medium. https://medium.com/@rud-merriam
A couple articles on C++:
C++: Static Polymorphism Using Lambdas https://medium.com/gitconnected/c-static-polymorphism-using-lambdas-4919097aafe0
C++ Return: Any, Optional, or Variant?
https://medium.com/gitconnected/c-return-any-optional-or-variant-3c2222dbf787
I am a retired software developer. Wrote my first FORTRAN IV in 1968. I am still writing C++. I have worked in embedded systems. I have done amateur robotics (non-destructive), including competing in NASA Centennial Challenges. The header image is from the Space Robotics Challenge.
Wrote for Hackaday.com for a few years about C++ with a focus on Arduino and Pi.
I am an Amateur Radio Operator, or Ham, licensed as K5RUD by the US FCC. That means I can build a transmitter without the FCC checking my build. Nobody but hams can do this.
Father of 2, although I lost my son in 2014. Grandfather of 3 (2m, 1f) and g-grandfather of 1 male.
I follow C++, legal, political, SF authors, and general random discussions.