Who/What am I
-
Like? Use unsafe code... If I wanted unsafe I wouldn't go with C# either! And there's some stuff VB can do that C# can't too :)
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Case sensivity... It's just a horrible mess in VB..
public class Demo {
public string Name { get; set; }
public Demo (string name) {
Name = name;
}
}Public Class Demo
Public Property Name As String
Public Sub New(name As String)
Name = name
End Sub
End ClassGuess what? C# assigns the property in the constructor, whereas VB.Net doesn't... :)
-
But at least you know what you're ending! :) And really, is all that hatred towards VB because of some End If instead of }?
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Sander Rossel wrote:
But at least you know what you're ending
I should only need to know that I'm ending a code block.
And really, is all that hatred towards VB because of some End If instead of }?
It's so much more than that. :laugh:
No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde
-
Actually most basics are pretty indispensable! Try becoming a good programmer (or anything) without mastering the basics :)
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Sander Rossel wrote:
Try becoming a good programmer (or anything) without mastering the basics
Perhaps you're not familiar with the concept of "Management" ? ? ? And, at the risk of being redundantly redundant: What about those people about whom it is said "He's good for nothing".
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
IMHO, a good rule is: 1. Make it work. 2. Then make it work better - run faster, use lesser memory, use better algorithms, etc.; essentially optimize. Have seen people creating elaborate UML diagrams, only to find shortcomings in the code. In one extreme case, the code (C++) did not run; then the coder globally replaced all
private
bypublic
, and it ran; throwing away all encapsulation to the wind; fixing this was a nightmare :-)The first law of optimization: Don't do it The second law of optimization: If you HAVE to do it, don't do it yet! The only real optimization you can do is to replace your algorithm or data structures (or both). That means you go back to square one (not necessarily for the entire system, but for that part you try to optimize), and the two laws above still applies.
-
Well, VB can only do everything C# can. It only has no curly braces and semi-colons. I guess VB isn't for you if you just love those curly braces and semi-colons...
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
While doing linq in VB.NET is possible it is implemented much better in C#.
Eric
-
While doing linq in VB.NET is possible it is implemented much better in C#.
Eric
Eric Whitmore wrote:
linq in VB.NET is possible
It's as possible as in C#![^] I don't see how that's better or worse than C#... :confused:
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
Sander Rossel wrote:
Try becoming a good programmer (or anything) without mastering the basics
Perhaps you're not familiar with the concept of "Management" ? ? ? And, at the risk of being redundantly redundant: What about those people about whom it is said "He's good for nothing".
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
W∴ Balboos wrote:
And, at the risk of being redundantly redundant: What about those people about whom it is said "He's good for nothing".
No one is good for nothing. He can always be used as a bad example. :-D
The good thing about pessimism is, that you are always either right or pleasently surprised.
-
You're right, it does more than C#! :D I've never used that one though :laugh: I wonder if it's just a shorthand for an empty catch block... In that case C# supports it too ;)
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
While doing linq in VB.NET is possible it is implemented much better in C#.
Eric
I've used LINQ in both C# and VB.net... a lot. Once again, there is no real difference between the two languages. C# has better syntax; it makes you look smarter. VB.net gives you a better idea of what's actually happening; it educates you. .NET is the magic here. C# and VB.net are just twin languages riding its glory.
- great coders make code look easy - When humans are doing things computers could be doing instead, the computers get together late at night and laugh at us. - ¿Neal Ford?
-
Depressed? Relax and On Error Resume Next...get it working, then make it work right! In software there's always room for improvement! :laugh:
"Go forth into the source" - Neal Morse
Quote:
Relax and On Error Resume Next
:laugh: :laugh: :laugh: That needs to be on a t-shirt!!!
- great coders make code look easy - When humans are doing things computers could be doing instead, the computers get together late at night and laugh at us. - ¿Neal Ford?
-
Used properly it allows you to code try catch blocks : : : on error resume next perform_some_action_which_may_generate_an_error on error goto 0 test_and_act_upon_err_object : : : unfortunately most people forget to do the testing part.
Not sure what that does, but it's possible in C# as well :D
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
I has been said many times that be able to code does not necessarily make you a programmer/developer. I just realised that I am one of those people who can write code that works pretty well. I'm not always proud of my methods (don't mean methods as in procedures) and design, most of the time I do whatever works. I get my code to work by any means necessary. I guess I am not a programmer/developer even though that is the my official position at work. Question is who/what am I?
codejet wrote:
Question is who/what am I?
This is called a Voight-Kampff machine. You’ve got a little boy. He shows you his butterfly collection plus the killing jar...
-
Sander Rossel wrote:
f you just love those curly braces and semi-colons...
A simple
}
looks lot better that bloodyEnd IF
,End For
,End Select
, andEnd Using
all over the bloody place.No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde
Except when your code blocks are catchs in ifs in switchs.
-
I has been said many times that be able to code does not necessarily make you a programmer/developer. I just realised that I am one of those people who can write code that works pretty well. I'm not always proud of my methods (don't mean methods as in procedures) and design, most of the time I do whatever works. I get my code to work by any means necessary. I guess I am not a programmer/developer even though that is the my official position at work. Question is who/what am I?
You are like most of the successful professionals. The best programmers solve problems with whatever is given and provide solutions by any means necessary. So, you solve problems. Be proud!! :cool:
-
Except when your code blocks are catchs in ifs in switchs.
If you're doing that, you need more help than just a VB.NET End can give. :~
No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde
-
There is no finer language on earth!
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
woww! very fantastic özel dedektif