Re:Show HN: A simple GUI Notepad using C++ natively made in ...
by saurik on Monday June 15, 2020 @05:16AM
(#23525397)
I would even argue it is much better than trying to do so on a more modern system, as you directly can just use graphics and color (which is both fun and helps teach a lot of programming concepts that are useful to know for building UIs later) without wasting a ton of time learning some UI toolkit that will be neither instructive nor actually-useful in the real world (as even if you choose a good one, it is almost certainly going to be obsolete by the time you go to get a job).
Re:Show HN: A simple GUI Notepad using C++ natively made in ...
by Koshkin on Monday June 15, 2020 @07:57AM
(#23526387)
Here is a nice quick tutorial on using the frame buffer in Linux: https://cmcenroe.me/2018/01/30/fbclock.html
Re:Show HN: A simple GUI Notepad using C++ natively made in ...
by 29athrowaway on Monday June 15, 2020 @04:13AM
(#23525040)
Raw pointers in C++ are an introductory concept at this point.
You also have l-value references, r-value references, smart pointers (unique, weak, shared, etc), and many of those have a use-case that overlaps with raw pointers.
I believe it is in every programmer's interest to have a deep understanding of the system for which they are working on, even if they don't need to use the low level tools from day to day. Teaching C++ in DOS can still provide an excellent CS foundation IMO.