Category Archives: Programming

What I’ve been up to?

via

Posted in Personal, Programming | Leave a comment

Swap without Temporary Variable

When we’re programming, if we want to swap values of two integer values, the “normal” way we do it would look like: x = 5 y = 3 temp = x x = y y = temp We need a … Continue reading

Posted in Programming | Tagged | Leave a comment

Merry Christmas!

Hey, this is the first christmas for jaux.net, and today is my first boxing day to crash a door. Got nothing but happy holidays :) Merry Christmas, everyone!

Posted in Programming | Tagged | Leave a comment

How To Prevent Creating Objects On Heap

Yesterday I saw a C++ interview question that was asking the interviewees to prevent the clients from creating objects on heap. That is, you write a class and your class users can’t use new to create an object. Here is … Continue reading

Posted in Programming | Tagged | 1 Comment

Search for next

This is a VIM tip. I saw it before, but I forgot it after a while. I saw it today, I don’t want lose it again, so I write it down. When you are going though a document in VIM, … Continue reading

Posted in Programming | Tagged | Leave a comment