November 2005 - Posts

Blog THIS!
20 November 05 06:01 AM | adrian | with no comments

Share this post: | | | |
Filed under:
Is It THAT Buggy?
15 November 05 09:00 PM | adrian | with no comments

Zeddy (my Academic Evangelist) posted up a good question on the INDC mailing list yesterday, “Do you Experience VS2005/Express RTM bugs?”, and posted up several blog that addresses such bugs. I found it quite interesting to read all of the bugs reported (kind of give me some insight on how developers do their job). I have tried most of them on Visual Basic 2005 Express Edition, and found some shouldn't even be called a bug. Here's the list:

  1. Ayende Rahein
    He posted up some links to other blogs that addresses bugs in the Visual Studio 2005. This is a good starting point for bug trackers. He posted a link to Product Feedback Center (PFC). The “bug“ was problem with curly braces from C# (thank goodness Visual Basic doesn't have any). The IDE crashes when adding a method declaration. From my PoV, there are 2 problems with the code example. The biggest one is, DO NOT mix classes in ONE source code file. Strange things like the above “bug“ WILL happen. The second smaller one, curly braces are evil! :) Naaah, that's a joke.
  2. Frans Bouma
    Frans tried to do the same thing above, the problem with curly braces not matching their supposed partners are becoming common here on Visual Studio 2005. Same rule apply, DO NOT mix your classes in ONE source code file.
  3. Roy Osherove
    Roy posted a problem on his VPC (we all know how VPC performs...). I've lost references to System.dll once on Beta 2, but it doesn't seem to reproducible. And then looking on the updated post, then the “bug“ came out. Watch your namespaces guys... For average developer, it's NOT an everyday's job to extend the System namespace.
  4. Michael Teper
    Ayende posted the direct link to PFC. It doesn't seem to affect my Windows Forms solutions, so I might try this on Web Forms. Anyone got a sample code that is reproducible for me?
  5. Rolf Bjarne
    Also linked to PFC directly. Reproducible on my machine, BUT is this development code? Or is it just a test code? Analyzing the code, generally it is NEVER a good idea to put a method directly over an expression. Simpler example of the code (but it's not going to crash yours) is:

    Dim X As String = (100.5 + 2.789).ToString()

    You should put the expression result in a temporary variable, first. It should look like this:

    Dim CalculationResult As Double = 100.5 + 2.789
    Dim X As String = CalculationResult.ToString()

    This approach improves code readibility and evades errors such as the PFC report.

In conclusion, general users using Visual Basic 2005 Express Edition will NOT meet any of the “strange” bugs above. It is TRUE that the above bugs are critical, but they are introduced by not adhering to good code guidelines.

For all you purists that demand bug-free applications, it is about time that you realize that release with bugs are better than no release at all.

I've been waiting to use features from 2.0 and I got enough of what I need on the RTM. Bugs that really deters me from using Visual Studio (which came from Beta 2) have been resolved, and I'm happy to use it. Didn't I mention that using 2.0 made me more productive?

Share this post: | | | |
Filed under:
No Extensibility Support on Express
14 November 05 04:09 AM | adrian | 2 comment(s)

Buat yang sudah pernah menggunakan Visual Studio Team System Beta 2, berikut adalah bagian-bagian yang tidak disupport dalam versi Express (on suck-iness order):

  1. Extensibility, that means Refactor! won't work, Code Rush, and all other stuff that is built into the IDE. External tools like Code Snippet editor and third party controls are working, though.
  2. Deployment Tools, nothing more than XCOPY deployment methods. That is, unless you used external tools such as InstallShield etc.
  3. Documentation, it's just a shortened version of the full MSDN Library.
  4. Source Code Control, not even Visual Source Safe 2005.
  5. Unit Testing, are we supposed to live with NUnit? But, IMO, NUnit was easier than VS Unit Test.

Khusus yang nomor 1, baik di situs MSDN maupun DevExpress tidak di-state bahwa Refactor! tidak akan jalan di Express.

Share this post: | | | |
Filed under:
MSN Messenger Live Beta 8 Build 8.0.0290
11 November 05 09:50 AM | adrian | 3 comment(s)

It's the latest MSN Messenger Beta. Check the nice interface, even though masih sedikit membingungkan dibandingkan dengan MSN Messenger 7.5.

Gambar di atas diedit menggunakan Acrylic October 2005 CTP, pertamanya sedikit membingunkan, karena shortcut yang biasa ada di Photoshop belum diimplementasi dalam Acrylic, jadi deh lebih banyak menggunakan mouse. All-in-all, Acrylic sepertinya memang didesign untuk digunakan oleh single-handed user, tanpa keyboard pun Anda bisa menggunakan aplikasi ini. Of course, untuk memberikan nama yang mudah diingat text input masih tetap dibutuhkan, tetapi untuk angka-angka, seluruhnya dapat menggunakan mouse.

Masih bingung dengan caranya membuat transparency...

Please don't ask for the information on how to get this beta version. It's illegal (?) to gain access to the beta.

Berbeda dengan versi Messenger Beta 7.5 yang leak, versi yang running di atas pun perlu dipatch dan dijalankan on top of "proxy server" yang translate protocol Messenger 8 ke 7...

Share this post: | | | |
Filed under:
Software for Imagine Cup 2006
11 November 05 12:41 AM | adrian | 2 comment(s)

Sama seperti tahun lalu, Microsoft lewat theSpoke lewat e-academy menawarkan paket software secara gratis untuk peserta Imagine Cup 2006.

Dengan menjadi anggota theSpoke Premium, kita mendapatkan paket-paket software tersebut secara gratis, tentu saja dengan bandwith yang cukup untuk download... karena tidak ada CD/DVD yang ditawarkan.

Untuk saat ini, paket-paket berikut dapat didownload:

  1. Visual Studio 2005
    • MSDN Library for Visual Studio 2005
    • Visual Studio 2005 Standard Edition
    • Visual Studio 2005 Professional Edition
    • Visual Studio 2005 Tools for the Office System
  2. SQL Server 2005
    • Developer and Standard (available in 32-bit, 64-bit Extended, and 64-bit Itanium), Workgroup Edition 32-bit
  3. Visual SourceSafe 2005
  4. Visual Studio .NET 2003 Academic - Full Download
    • available in English, Deutsch, Espanol, Francais
  5. Windows Server 2003 Standard
    • available in English, Deutsch, Espanol, Francais, and Portuguese
  6. Visual Studio .NET 2003 Academic - ISO Images
    • available in English, Deutsch, Espanol, Francais

Perbandingan feature untuk Visual Studio 2005 dan SQL Server 2005 ada pada:

http://msdn.microsoft.com/vstudio/products/compare/default.aspx dan http://www.microsoft.com/sql/prodinfo/overview/whats-new-in-sqlserver2005.mspx#EDAA

Untuk Interface Designer, kita membutuhkan Acrylic, most likely aplikasi ini pun akan dapat didownload lewat theSpoke Premium secara gratis.

Students, what are you waiting for? It's FREE software, lebih baik daripada bajakan, kan?

Share this post: | | | |
Filed under:
Imagine Cup 2006 is LIVE!
03 November 05 04:31 AM | adrian | 2 comment(s)

OK, for a starter, there will be only 6 category...

Software Design

Requires custom web service, .NET Framework 2.0, and using Visual Studio to develop. Final deadline May 5, 2006, tapi tergantung Microsoft Indonesia untuk local finalnya. Penilaian kurang lebih sama dengan IC 2005. Remember: Application Executable is on of the deliveries. Jadi jangan submit aplikasi yang belum jadi... :D

IT

This is basically a test on developing, deploying, and maintaining IT system (network, database, server). Round 1 starts Feb 6, 2006.

Short Film and Algorithm

Kurang lebih sama dengan IC 2005, and I think the title is self-descriptive. Both begins early February 2006.

Project Hoshimi

This is basically a test of algorithm and strategy. Create an Artificial Intelligence system specific to a task, and compare it head-to-head with your friend/rival!

Interface Designer

This is the new category! One thing, this category requires Acrylic, the new Graphic Design application dari Microsoft! “Creativity and Usability“ is the key here. Terkadang kita melupakan aspek user interface yang cukup penting dalam sebuah aplikasi. Deliverable dari kategori ini adalah sebuah UI dari aplikasi imajiner.

The overall theme is “Imagine a world where technology enables us to live healthier lives.” Untuk Imagine Cup 2006, lebih terasa aspek artistiknya dibandingkan teknik. Ayo ke India! :D

References: http://thespoke.net/ViewContent.aspx?PostID=807740

Share this post: | | | |
Filed under:
Loading DLL at Runtime
01 November 05 12:24 PM | adrian | 3 comment(s)

Terkadang kita perlu melakukan loading DLL ketika runtime, skenario yang umum terjadi pada sistem yang pluggable. Kita dapat menggunakan System.Reflection untuk melakukannya. Here’s the code (jangan lupa tambahkan Imports System.Reflection):

Dim assemblyPackage As Assembly = Assembly.LoadFrom(dllPath)

Pertama, load file DLL/EXE yang Anda butuhkan. Shared Function LoadFrom akan mengambil parameter path assembly yang akan dibuka.

Setelah assembly berhasil dibuka, maka langkah-langkah selanjutnya tergantung kebutuhan Anda. Dalam kesempatan ini, kita akan mencoba untuk mendeklarasikan sebuah variabel dari Class yang bersifat Singleton.

Asumsikan bahwa nama Class yang akan kita buat adalah ClassA, maka kode berikut menjelaskan caranya:

For Each typeTest As Type In assemblyPackage.GetTypes

  If typeTest.Name = “ClassA” Then

    Dim obj As Object = _

      typeTest.InvokeMember("Instance", BindingFlags.GetProperty, _

      Nothing, Nothing, Nothing)

  End If

Next

Variabel obj akan berisi instance dari ClassA.

Share this post: | | | |
Filed under: