(Pretend to ) Be a good C++ developer!

As you all know I have two major professional roles. One is being a lean thin Yoga teacher and another one “ over-smart” C++ software developer (wink wink). And of-course, I am a no super woman who can do both these things with perfection.

I am quite new to both these fields. I have approximately two years of experience in both Yoga and coding. There were times when I could not keep up with the amount of activities I was doing and I had to get-by in my job by (pretending to) being a good C++ software developer.

Below are some tips that will help you look like a sharp C++ software developer, help you communicate with other C++ software developers (as far as my experience is concerned, they are hard to communicate with sometimes) and hopefully help you pass your probation unless you have already screwed up by using raw pointers instead of smart pointers. Did not understand? Don’t worry, idea is to not understand but just pretend to know it all.

If you are reading this in 2020 and you come across a geeky C++ Software developer, just ask them “Have you tried C++20?”

If they say they have no idea about C++20, tell them “C++20 changes the way we program and that they are missing out a lot by not using it already”.

At this point you have already raised your bar and brought the fear of missing out into the other person. They will stop talking to you at this point because you are clearly intimidating.

source: https://me.me/

2. If a C++ developer approaches you with their unsolved coding problems

After killing a few minutes in deep thinking, ask them “Have you tried using a hash map to solve your problem?”

Now it is their turn to think. Don’t worry they won’t come back to you for the next couple of hours as they will spend way too much time in figuring out how to use a map. By then, you will probably be gone home.

source: https://memegenerator.net/

3. If you hear words like “pointers”, “address” and “references”

Good programmers make sure to use smart pointers instead of raw pointers.

Unique and shared smart pointers are pretty common but most programmers have no idea what is a weak pointer and have never used it in their life. Most of them are pretending to know what it does. Trust me!

If you find anyone talking about shared pointers with a lot of pride, take a long sip of your coffee drink (oh yes, programmers always carry a cup of coffee) and express this in a very cool way “Naah, shared pointers are too mainstream, why not use weak pointers?”

You don’t have to be the primitive one.

4. Criticize if-else conditions

They will not question you, they will just do it. Most developer don’t exactly know why it is better to use switch cases instead of if-else conditions, use this ignorance to your power and crush the person who wrote the if-else condition.

And make sure to write switch cases yourself when you slide your code into the reviews. Otherwise the next time you will be the one getting crushed.

5. Ask “what about the tests?”

This is the biggest weapon you can use every single day of your programming life because you will always meet the greatest of the great programmers or probably who pretend to be one and never test their code.

Look deeply into their eyes and ask them one single question - “Have you written unit tests?” If you see a hint of shame in their eyes, you know you have won and established yourself as the better developer because you at least thought about testing and thought counts.

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anokhi

I am a Yoga Teacher and a Software Developer. I like peace, good health and good environment.