Unit Testing!

So tomorrow I present a “almost Sales pitch” to the Team on Unit Testing. Something that I though I could pick up and gain knowledge quickly has revealed a giant source of information that spans into an inversed tree. Needless to say, it has been absolute fun and something which caught my attention was the Law of Demeter.

huh?
The Law of Demeter (LoD), or Principle of Least Knowledge, is a design guidelines, among the billions out there, which is more specific to OOP.
A quote that explains this well is “Only talk to your immediate friends”.

For further information and a great read:

Worth a read!

Powered by ScribeFire.

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Tip: Putty displaying strange characters in output (Linux)

I have been having this problem for a while, while getting output from gcc strange characters are output before and at the end of every word.
eg. error: âcoutâ is not a member of âstdâ

To solve this problem in Putty, you need to change Character Set Translation to UTF-8. Apparently gcc’s output is only unicode.

So its Settings -> Window -> Translation -> Character Set Translation

There you go…..

Powered by ScribeFire.

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

C back again!

So I’ve been forced to start delving into the mad crazy world of C/C++ development across platforms, and man its a pain.
We’re so spoiled with .NET CLR and all its ease of use, its management of memory, garbage collection blah blah. Then I starting coding
in C, and there is no generic, no type-casting, no LINQ. *sigh*

Anyways, for what I am trying to achieve I’ve managed to stumble on some pretty good free API’s for fulfilling my task:

a) JSON C++ API (generator and decoder)
Jaula

b) Reg Ex Parser (i’ve opted here for PCRE, cause it rocks)
PCRE

c) Config Manager
RudeConfig

Overall its a pretty good start with these API’s and maybe in time I will post what I am actually working on.
Anyways, note to self. OUT

Powered by ScribeFire.

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone