Some hidden or lesser known concepts of programming most programmers don't know about!
1. Yoda Conditions: When a programmer writes the conditions for a piece of code in the opposite order for which you would expect to normally read them. (Instead of saying if(variable == constant), the code says if(constant == variable).)
2. Rubber Ducking: Talking with other engineers to solve a problem. Practical and widely used, but the term is yet unheard to many.
3. Bicrement: Adding 2 to a variable, double incremental.
4. Short Circuiting: When dealing with logical operators, you run into a phenomenon called short circuiting. This means that the expression will be evaluated only until the truth or falsehood of the entire expression can be unambiguously determined.
5. Christian Magic: A piece of code someone else wrote or you wrote at 4 am that you have no idea how it works, but it does you just have to believe. Aha! I am a magician!
6. Cowboy Coders: Programmers who write code according to their own rules. They may be very good at writing code, but they don't generally follow standard processes or policies.
7. Monkey Patching: Fixing a problem without fixing it at the source, but rather by adding a workaround elsewhere.
e.g ever read this? Google’s explanation for server side errors-
"Sorry, something went wrong. A team of highly trained monkeys has been dispatched to deal with this situation."
8. Refuctoring: The process of taking a well-designed piece of code and, through a series of small, reversible changes, making it completely un-maintainable by anyone except yourself.
9. Crapplet: An applet, usually Java based, that is not worth anything.
10. Ninja Comments: Also known as invisible comments, secret comments, or no comments.
2. Rubber Ducking: Talking with other engineers to solve a problem. Practical and widely used, but the term is yet unheard to many.
3. Bicrement: Adding 2 to a variable, double incremental.
4. Short Circuiting: When dealing with logical operators, you run into a phenomenon called short circuiting. This means that the expression will be evaluated only until the truth or falsehood of the entire expression can be unambiguously determined.
5. Christian Magic: A piece of code someone else wrote or you wrote at 4 am that you have no idea how it works, but it does you just have to believe. Aha! I am a magician!
6. Cowboy Coders: Programmers who write code according to their own rules. They may be very good at writing code, but they don't generally follow standard processes or policies.
7. Monkey Patching: Fixing a problem without fixing it at the source, but rather by adding a workaround elsewhere.
e.g ever read this? Google’s explanation for server side errors-
"Sorry, something went wrong. A team of highly trained monkeys has been dispatched to deal with this situation."
8. Refuctoring: The process of taking a well-designed piece of code and, through a series of small, reversible changes, making it completely un-maintainable by anyone except yourself.
9. Crapplet: An applet, usually Java based, that is not worth anything.
10. Ninja Comments: Also known as invisible comments, secret comments, or no comments.
---
Credits: Rahul Agnihotri's answer on quora
Comments
Post a Comment