Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
A new one star programmer is born. ^^
@Kinky-Code that refers to C. If you have a pointer and dereference it via the leading asterisk, you have "*my_ptr". That's one star.
But you can also have pointers to pointers, and to get to the actual data, you have to dereference it twice like in "**my_ptr_to_ptr". That's two star programming.
However, once you get to three star programming, the next recommended literature would be about proper coding styles. ^^
@Fast-Nop Aaaah, now I understand. I just thought it would be like a hidden rating for Devs referring to a specific skillset and the first star would be pointers. Like 1 of 5 stars programmer xD
So two star programming would be like this equivalent in Pascal:
@Kinky-Code yep something like this (my Pascal is a bit faint after 25 years). Mostly, you need two star programming if you hand over a pointer to a function by reference because you may want to modify it.
Or if you have an array of pointers like function pointers or start addresses of something and hand over that array to a function - C is a bit fucked up here because arrays decay to pointers when you pass them into a function, thus losing the array boundary information.