A readable example of how code become unreadable
Consider the following problem: You need to calculate how many dots are there in a square triangle for a specific width, for example . .. … Has an area of 6 . .. … …. Has an area of 10…
Consider the following problem: You need to calculate how many dots are there in a square triangle for a specific width, for example . .. … Has an area of 6 . .. … …. Has an area of 10…
Just finished the morning session of the international conference on information technology for education 2010. Generally speaking, I’m disappointed at the organization skills and the content of the conference. They started an hour late (9am instead of 8) and even…
Yet another Sudoku program Down to the basics, here’s what I did: Generate the whole board with backtracking, randomizing the number I chose at each step and remember the choice, this assures that the board is random, while still keep…
class Shape { // This method will be overridden by its children, even if it’s not abstract // and its children have not specified @Override void draw() { System.out.println(“Shape drawn”); }; @Override protected Object clone() { return null; } }…
It’s the era of Unicode, and you though the problem of encoding is a story of the past. Well, not if you’ve got to view old code. This is what you may get: Eclipse allows you to set the encoding…
There are moments in our lives when we find ourselves at a crossroads. The choices we make in those moments can define the rest of our days. Of course, when faced with the unknown, most of us prefer to turn…
Usually when working on windows form, I use this to do the work DropDownList1.DataSource = new ApplicationTableAdapter().GetDataBySystemID(1); DropDownList1.DataTextField = “Name”; DropDownList1.DataValueField = “ID”; But surprisingly, when switched to ASP.NET, the above code no longer works, at first I thought it…
A recent post on the computer science blog about distributed database management systems fired up the curiosity in me on distributed computing again. Even though I have attended the parallel computing course while I was still a student, I have…
Recently I noticed a friend keeps on updating his status which appears to be coming from the most trendy mobile devices on the market right now. He could have borrowed his friend’s devices though, but since he is watching the…
“Which programming language is the best?” It’s the kind of question that you will keep getting from aspiring programmers (maybe with some minor variations but it’s essentially the same problem). It’s a difficult question to answer. Although as old as…