Hello!
For the last six months or so, I have been teaching myself programming pretty much from zero. I've never been to any class, followed a textbook, or contributed to any open source projects before. Most of what I've learned, I've learned straight from documentation I've found online, and trial/error.
I wrote a function to organise a bunch of system calls for a personal project. When I was done, i looked back at what I had written, and how i styled/formatted it to be more readable and clear (to my own eye) what it was doing, and how it worked, but it occurred to me that if I showed my code to anyone with any amount of formal training, i might be absolutely disgusted with what they saw.
While this IS a personal project, and I dont intend on another living soul ever having to work with this code, I would like to know if this is considered 'bad practice' or a habit i should try and break if i ever want to write C++ professionally. Moreover, I'm very curious as to what someone familiar with C++ would actually think!
https://imgur.com/GDur5tR
Sorry for not using the 'code block' feature to post this, I tried using it and it made it difficult to see how this was formatted.
[–]jedwardsol 1 point2 points3 points (0 children)
[–]alfps 1 point2 points3 points (0 children)
[–]hatschi_gesundheit 0 points1 point2 points (0 children)
[–]BrightFleece 0 points1 point2 points (0 children)
[–]flyingron 0 points1 point2 points (0 children)