March 2005 - Posts

Visual Studio Tip #2 - Modules Window
Published 03-31-2005 6:35 PM | jokiz
You want to debug your source code in VS but then the breakpoint that you set has a question mark in it saying "Breakpoint will not be hit." I have two reasons that I can provide you: Debug symbols are not loaded The assembly being used is a different...
Filed under: , ,
Visual Studio Tip #3 - Class View
Published 03-31-2005 6:35 PM | jokiz
Besides Solution Explorer and Property Grid on my right hand side of my VS IDE, I always have the Class View opened. As I was learning C# using Troelsen’s book, I’ve read his example on how to create classes and class members using the Class View and...
Filed under: , ,
Google.com logos
Published 03-31-2005 8:46 AM | jokiz
I like the way google has been modifying their pages once in a while. I started noticing it during the Olympics. Yesterday, they gave tribute to Van Gogh for his birthday. It is where I also discovered that my brother's birthday (March 22) is World Water...
Filed under:
Hungarian Notation
Published 03-29-2005 8:42 AM | jokiz
I started programming with C and used Hungarian notation since then. It was very helpful back then to instantly know what type the variable is from its name. When I started programming in .NET using Visual Studio, Intellisense made a major breakthrough...
Filed under: ,
ErrorGuard
Published 03-19-2005 12:44 AM | jokiz
I'm currently here at an internet cafe and a popup window opened redirecting me to: http://www.errorguard.com/search.html , excellent hoax they've got back there. Sites like this should be immediately banned... (is this possible?)
Filed under: ,
String WTF
Published 03-18-2005 4:53 PM | jokiz
Of all programming operations, I hate String Operations the most. Aside from strings being immutable (which is the primary cause of inefficiency for text-intensive operations), improper use of static methods of the String class can make me dizzy so please...
Filed under: ,
Property Naming WTF
Published 03-18-2005 3:53 PM | jokiz
I got tired of seeing a common property of our controls (since it is part of an interface) and this week, I got fed up and can’t take it anymore seeing them. AlignmentInContainer You might suggest ContainerAlignment but layout properties obviously relates...
Passing and Returning Reference Types
Published 03-18-2005 11:24 AM | jokiz
I’ve read this excellent article on Arrays of Jeffrey Richter from Wintellect at MSDN here and there are a number of good points in coding, the one I love most is the section on Passing and Returning Arrays . If you always design your methods so that...
Filed under: , ,
MissingMethodException during a form load at designtime
Published 03-17-2005 7:26 PM | jokiz
Some control properties where dropped. Forms still have them in InitializeComponent. Form is loaded at designtime with an attached debugger instance (devenv.exe). CodeDomSerializer class tries to deserialize the said property set. A MissingMethodException...
Efficient For Loop
Published 03-17-2005 7:13 PM | jokiz
[code language="C#"] for (int i = 0; i < collection.Count; i++) { //do something with collection } [/code] I’ve done this before and for me, the efficient way is to store the Count property of the collection rather than access it everytime for the...
Filed under: , , ,
Nested SWITCH statements in VS
Published 03-11-2005 6:22 PM | jokiz
Have you tried doing a nested switch statements in Visual Studio. I have tried this and VS is somewhat altering the proper indents. I couldn’t find any flaw on using nested switch statements but the behavior is intriguing. Below are some screenshots:
Filed under: , ,
Morris Worm History
Published 03-11-2005 1:29 PM | jokiz
I stumbled upon the story on the very first worm (Morris Worm) on this article . While I was reading it, I tried to search on the usenet using googlegroups on the said issue back when it was released, you might just as well read some of the posts here...
Filed under: ,
Real life application of Concurrency Violations
Published 03-09-2005 1:42 PM | jokiz
Sahil and Bill are having funny conversations on real life meaning of concurrency violations. You might want to peek here .
Filed under: , ,
Scroll lock and MS Excel
Published 03-09-2005 1:02 PM | jokiz
I was using Excel yesterday when I tried to scroll the cells using the arrow keys yet the scrollbars (horizontal and vertical) are the ones moving. I immediately tried F1 to find out the problem (of course it should be a simple setting on/off) but unluckily...
Filed under: , ,
Free Ebooks at Apress.com
Published 03-07-2005 7:17 PM | jokiz
Thanks to EricGu’s post, I found out that Apress is releasing a number of free ebooks and one of them was Troelsen’s good book “COM and .NET Interoperability,” I’ve planned to buy this book before after loving his “C# and the .NET Platform," thank God...
Filed under: , ,
More Posts Next page »