Seven Steps to Improving Your VB Code
-
Ok Let's play the game: VB or .NET or Win Forms or WTL or MFC? The UI is at the following location: Screenshot
Co-Author ASP.NET AJAX in Action
None of the above. :) Looks like you're using a DevExpress or Infragistics suite. (OK, that makes it .NET. But probably VB with a 3rd party control suite). Marc
-
C# is the new VB. The so-called VB.NET is just for... you know, handicapped folk. People whose keyboards are missing semicolons and curly braces.
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
Shog9 wrote:
you know, handicapped folk
Shog, that's SO not PC ... they're Line Terminated Challenged or Bracketed Dysfunctional ... ... and I'm fairly certain there are a bunch of Pharmaceutical companies that have a "cure" in the form of large, brightly colored pills ... ;P
:..::. Douglas H. Troy ::..
Bad Astronomy |VCF|wxWidgets|WTL -
Ok Let's play the game: VB or .NET or Win Forms or WTL or MFC? The UI is at the following location: Screenshot
Co-Author ASP.NET AJAX in Action
Rama Krishna Vavilala wrote:
VB or .NET or Win Forms or WTL or MFC?
Photoshop? :rolleyes:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
-
Luna on 2k3? Eww!
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
Is something wrong? It's a test machine used to test Client and server.
Co-Author ASP.NET AJAX in Action
-
Those are good seven steps for any language, not just VB! Though #1 (normalize the UI) is amusing because I can always tell a VB app because of the funky colors, large fonts, and odd UI. Marc
-
Heh. Nice one, Rama... With the possible exception of the tree, every control in that shot is custom. :)
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
Here is another which has your favorite UI technology (Same app) Screenshot2
Co-Author ASP.NET AJAX in Action
-
Phil Harding wrote:
Yeah, it seems the same for Delphi too, why is that I wonder
That's a diffent issue than VB's anti-design patterns. With borland tools you have the fact that Borland was convinced they could make better controls than MS, as a result most (all?) of their 'standard' controls are custom not win32 basic constructs. As a result they always function subtlety different than standard.
-- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
-
None of the above. :) Looks like you're using a DevExpress or Infragistics suite. (OK, that makes it .NET. But probably VB with a 3rd party control suite). Marc
The correct answer is All of The Above:) 1. The main window tree view the MDI tabs all are C++/MFC. Uses CodeJock Library. 2. The top window "Bat Template" is actually a VB6 Control that hosts a WTL Tabs Control (custom built). All of these hosted as an ActiveX control in an MFC CView. 3. The bottom Grid is .NET Winforms DataGridView derived class written in C# hosted in an MFC CView derived class written in C++/CLI.
Co-Author ASP.NET AJAX in Action
-
Phil Harding wrote:
Yeah, it seems the same for Delphi too, why is that I wonder
That's a diffent issue than VB's anti-design patterns. With borland tools you have the fact that Borland was convinced they could make better controls than MS, as a result most (all?) of their 'standard' controls are custom not win32 basic constructs. As a result they always function subtlety different than standard.
-- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
Even all the VB controls are not standard Win32 controls.
Co-Author ASP.NET AJAX in Action
-
Is something wrong? It's a test machine used to test Client and server.
Co-Author ASP.NET AJAX in Action
I just dislike the way that theme looks, and wouldn't bother going out of my way to enable it. :)
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
-
The correct answer is All of The Above:) 1. The main window tree view the MDI tabs all are C++/MFC. Uses CodeJock Library. 2. The top window "Bat Template" is actually a VB6 Control that hosts a WTL Tabs Control (custom built). All of these hosted as an ActiveX control in an MFC CView. 3. The bottom Grid is .NET Winforms DataGridView derived class written in C# hosted in an MFC CView derived class written in C++/CLI.
Co-Author ASP.NET AJAX in Action
Rama Krishna Vavilala wrote:
The correct answer is All of The Above
Nice! That must have been quite interesting to put all together. Marc
-
Here is another which has your favorite UI technology (Same app) Screenshot2
Co-Author ASP.NET AJAX in Action
Ah, very nice. But an odd choice of colors... was this perhaps originally designed on a machine where those shades of grey matched?
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
-
Ah, very nice. But an odd choice of colors... was this perhaps originally designed on a machine where those shades of grey matched?
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
Shog9 wrote:
was this perhaps originally designed on a machine where those shades of grey matched?
No it was end-user designed screen (The app has an HTML form designer built into it which allows end users to design screens). He might be using a different theme in the application.
Co-Author ASP.NET AJAX in Action
-
Shog9 wrote:
was this perhaps originally designed on a machine where those shades of grey matched?
No it was end-user designed screen (The app has an HTML form designer built into it which allows end users to design screens). He might be using a different theme in the application.
Co-Author ASP.NET AJAX in Action
Rama Krishna Vavilala wrote:
(The app has an HTML form designer built into it which allows end users to design screens)
Slick. :cool:
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
-
C# is the new VB. The so-called VB.NET is just for... you know, handicapped folk. People whose keyboards are missing semicolons and curly braces.
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
Shog9 wrote:
C# is the new VB.
So that means that C is the old VB right? Because I am currently working with some C source code that is as bad a piece of work as I have ever seen. Technically they ported it to C++ a few years back. Basically they changed the file names to .cpp and malloc/free to new/delete. *groan* It's so bad about the only advice I would give about improving the code is to never allow people like that to create any. Languages don't kill projects, people do. I hope you remember me enough to know this is NOT a defense of VB :laugh:
-
Ok Let's play the game: VB or .NET or Win Forms or WTL or MFC? The UI is at the following location: Screenshot
Co-Author ASP.NET AJAX in Action
-
Shog9 wrote:
C# is the new VB.
So that means that C is the old VB right? Because I am currently working with some C source code that is as bad a piece of work as I have ever seen. Technically they ported it to C++ a few years back. Basically they changed the file names to .cpp and malloc/free to new/delete. *groan* It's so bad about the only advice I would give about improving the code is to never allow people like that to create any. Languages don't kill projects, people do. I hope you remember me enough to know this is NOT a defense of VB :laugh:
led mike wrote:
So that means that C is the old VB right?
Heh, well... i've seen some baaad C code, but it usually takes the form of excessively long functions, lots of global data, unsafe string/memory manipulation, and bizarre control flow. VB's "everything attached to a form or other bit of UI with arbitrary datatypes and type conversions, with a gratuitous 3rd-party control thrown in to do something simple like sort" isn't necessarily worse, just distinctive. Of course, we all know that bad code can be written in any language. But just as your country of origin largely determines whether you put ketchup or brown sauce on your hotdog or meat pie, the language you use does have an effect on which mistakes you're likely to make. ;)
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
-
Rama Krishna Vavilala wrote:
Ok Let's play the game:
I'm in. The UI is built on 3rd party components rendering the application development platform irrelevant to this discussion.
There is only 1 third part component (CodeJock) rest of the stuff is built in house or uses standard controls.
Co-Author ASP.NET AJAX in Action
-
There is only 1 third part component (CodeJock) rest of the stuff is built in house or uses standard controls.
Co-Author ASP.NET AJAX in Action