Sunday, May 4, 2014

Tools



            Ever since I started studying computer science, my software tool box has expanded considerably. As a computer scientist, I have a nice set of tools for editing and debugging code for different programming languages, run software from different platforms, and managing my files. For this semester, I got the chance to familiarize myself with Google Drive, which I used to share and edit documents and also to keep track of the progress of our project. The service itself has a ton of features that allow extensive formatting and editing of our files. Another tool that I got to work with was Scratch, which I used to create fun, animated games for tutorials. Lastly, for my Object Oriented Design course, I mastered StarUML and used it to create detailed class and sequence diagrams for my programs.

One of my favorite tools is Cygwin, which I use to write and run my bash scripts and get more that UNIX feel on my Windows machine.  I also like Microsoft’s Visual C++, because I can write both my C and C++, and assembly programs on there. Another one that is on the top of my list is Notepad++, which I often use to view source code and also to write small programs. There isn’t a tool that I genuinely dislike, but if I have to choose one I would pick Skype; this is because I have had many connection issues with it.
 



Nowadays, cloud computing is one of the main focus in the tech industry, and it is reshaping the way tools are designed. I am seeing new tools that greatly resemble existing ones in the market today, but its main focus is doing the heavy lifting using the cloud instead of leaving it to the user’s machine. This is important because it will lead to an increase in the tools’ speed and features as well as reduction in size. 

References:
"Cloud Computing." Wikipedia. Wikimedia Foundation, 05 Feb. 2014. Web. 02 May 2014.

Saturday, May 3, 2014

Code Obfuscation



Code obfuscation is the art of writing your code so that other human beings would tear their eyes out halfway through reading the code. At lower levels, some techniques include confusing identifiers, reversed array indexing, or look-alike characters.  For example,

“area = length * width” would become “a = aa * aaa”,
“2[arr]” instead of “arr[2]”, and
“10l0l” which I’m sure you read as 10101.

When writing obfuscated code, one should seek to violate all the good coding practices. Although this goes against the principle of writing elegant and well-documented code, it does serve a huge purpose.  

Reverse engineering is a big topic when it comes to software, especially in terms of security, and it involves the process of going backwards through the software development cycle; one can choose to remove copy protection or personally customize reversed engineered software. Programmers can obfuscate their code on purpose to deter reverse engineering and re-engineering. Even if a malicious user manages to obtain the source code, reverse engineering the obfuscation will prove to be a daunting task.

Certain programming languages like C, C++, and Perl have characteristics that make them easier to obfuscate. There are even contests for whoever could write the best obfuscated code, or worst, depending on who is reading the code. Some examples are the Obfuscated Ruby Code Contest (IORCC) and the International Obfuscated C Code Contest (IOCCC).  One of my favorites is the winner of the 1988 IOCCC for best layout by Brian Westley:

#define _ -F<00||--F-OO--;
int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
{
            _-_-_-_
       _-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
        _-_-_-_-_-_-_-_
            _-_-_-_
}

The code above calculates the value of pi by looking at its own area.
             


Sources:  
"Obfuscated Code." Princeton University. N.p., n.d. Web. 04 May 2014.
"Winning Entries." Previous IOCCC Winners with Spoilers. N.p., n.d. Web. 04 May 2014.

Wednesday, April 23, 2014

Beta Testing



In the pharmaceutical industry, new medicine is always subjected to clinical trials before being released to the general population; these clinical trials consist of giving the medicine to a selected few and see if the results and side effects are similar to those predicted. This is done so that there are no big surprises later on that might lead to a massive death toll.

In the software world, a similar concept called Beta testing is applied. Let us look at games as an example; devoted gamers are always on the lookout for beta versions of new games to get a feel for the game before actually buying it. Not only does this benefit the gamers but it also benefits the company that makes these games because they get a sense of how the game plays out, and if something doesn’t fit their liking, they can always fix it up before the final release.


Companies like Apple and Microsoft welcome beta testers with open arms. Before the release of an up and coming product, these companies often enlist beta testers to try out their product, and find all the bugs and security flaws; some even offer certain compensation for the bugs or flaws that are found. The process of beta testing is extremely important because it helps weed out all the major security holes that could expose important data or crash the system.


Sources: "Beta Testing." Web Development,web Designing and Internet Marketing Firm. N.p., n.d. Web. 21 Apr. 2014.

Friday, April 11, 2014

Usability Testing



Have you ever encountered a 500 error on Youtube? If you haven’t encountered their internal server error before, here is what they display as a message:
“Sorry, something went wrong.

A team of highly trained monkeys have been dispatched to deal with this situation.

If you see them, show them this information…”

When designing things like websites or user interfaces, designers have to think about simplicity on top of getting the end product to work. Even if the designer have an easy time navigating through an application, that doesn’t mean the targeted audience will.

What is usability testing?
Gathering feedback on software is more towards qualitative research than usability testing. Rather than asking the users for input on their understanding of a product, usability testing involves realistic situations that are carefully created to observe a person performing a list of intended functionality while the observers watch and take notes.

A general method of usability testing is Hallway Testing; the name is tied to the fact that the subject pool selected to test the product is picked at random in a hallway. This method is effective when designers are looking to test the basic functionality ease of use, and especially in the early stages of the design.







Sources: "Usability Testing." Wikipedia. Wikimedia Foundation, 04 Aug. 2014. Web. 11 Apr. 2014.


UA-49607316-1