Category Archives: Computers and Internet

The code is the documentation

You read/hear that the code should be clear enough to be understood with very little comments. I wholeheartedly agree bu I rarely see code like the one I like to read/write: // This is less convoluted than what’s required for // … Continue reading

Posted in C ++ | Leave a comment

Usefulness of the override keyword…

I just discovered a bug by adding the override to a bunch of virtual function members of an old MFC based UI class: the 3rd-party base class had a LONG_PTR and not a long as we had in our derived class. … Continue reading

Posted in C ++, Computers and Internet | Leave a comment

Little helper features in Visual Studio

I have now taken the habit to use those and they help me a lot. The first one is the breakpoint label: I personally use it to associate my bug ticket number with the corresponding breakpoints. When you work on … Continue reading

Posted in C ++, C#, Computers and Internet | Leave a comment

Bring back decent keyboard support please!

When the Palo Alto Network’s GlobalProtect Gateway Login dialog appears with the Username field pre-populated, why can’t I just start typing right away? Why isn’t the focus already set on the empty Password field? When Atlatlassion’s SourceTree is displaying a status pane … Continue reading

Posted in Computers and Internet, Uncategorized | Leave a comment

Magic Statics

As mentioned in the C++11 Core Language Features Table: Concurrency table, the Magic statics feature is supported under Visual Studio 2015. Beware that this does not apply to non-local statics (e.g global static variables) and if you’re rightfully concerned about the … Continue reading

Posted in Computers and Internet | Leave a comment

Visual Studio : Options to bind the selected item

You know, the icon that eventually appears when you forgot to fully qualify a C# type and the IDE is offering to do it for you or add a using statement. I finally find the keyboard shortcut to open it … Continue reading

Posted in Computers and Internet | 2 Comments

Using C++ decltype to ease implementation of “late” binding to a DLL

You can just include the file with the prototype of the function exported by the DLL you’ll load with LoadLibrary. Then use decltype on it: #include <iostream> #include <UserEnv.h> int wmain() { auto h = LoadLibrary(L”Userenv.dll”); if (!h) return -1; … Continue reading

Posted in Computers and Internet | Leave a comment