Posts

Showing posts from August, 2014

How Effective do Anti-virus Software Protect Us against Cyber-crime or Do They?

Internet has become an important ingredient to society. Everything revolves around the internet; from reading books to watching movies, from buying food to buying grocery, etc. Everything can now be done online with a click of a button. Wait, what about payment? Good question, banking is now online too! Huh, so you're saying all of my money is online? Correct, all of your money; all of them. Isn't that a little risky? Now we're talking. People have created these kinds of security measurements to protect our information. Antiviruses were created for that same reason. If everything can be accessed online, you can steal a lot of people's bank accounts through the web. What if you can fake a bank and ask people to wire you their money? That would be incredible! Just saying... How can we trust these so-called antiviruses? Uh, give me a moment here. I need to look that up...In fact, nobody is sure if they can trust these antiviruses. People just sort of do it. You see

Macro Class. What!?

Yeah, you heard it right, Macro Class! What in the world . When I was working as an intern, I found out that Macro Class is a painless way to "generate" a class for you without any code. As you probably know, macro is a way that you can use to tell the compiler to replace some strings for you. When you do this: #define VALUE 5 The compiler will go over your code and replace all the occurrences of VALUE (except when VALUE is inside a string) with the number 5 . Now you can do that to a class. Think about times when you want to write a class without having to write a class. This guy isn't serious... Here's how: #define ClassGenerator(_class_name_)\ class _class_name_ {\ public: \ _class_name_() {}\ ~_class_name_() { }\ std::string getResult();\ }; He IS serious.. Now what can I do with this? A lot of thing!!! You can then use your newly created macro to create your class with a getResult() function. Wait, I need a declaration for