- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Admin
Admin
Admin
And constantly updating our resumes.
Admin
VB.Net has two operators for strings. The "+" operator causes the string joing to act like it would in C# and other .Net languages. The special "&" concatination operator in VB.Net works more like older versions of VB and I believe uses the Visual Basic library to handle the concatination instead of String.Concat. This allows you to concatinate different data types and they will be converted usinge their ToString() method and also means that you don't have to worry about strings being Nothing/NULL, they will be treated just like empty strings with the "&" operator.
So you are right - in VB.Net concatinating 5 unitialized strings, using &, will give you an empty string. Using + will cause an error.
Admin
It's never null, haha.
http://stackoverflow.com/questions/3002978/vb-net-documentation-and-exception-question
Super-WTFery. Consistently inconsistent.
Admin
I'll have you know I am a lady. Also, if everyone stopped believing in me I would cease to exist.
Admin
Admin
Well I can't hang around here all night. You lot don't smite yourselves you know. Although, you're pretty good at smiting each other.
poof
Admin
Admin
Admin
I'm glad Remy acknowledges that the Aussies have evolved into a superior race.....oh, maybe he means the Australian Aborigine....let's not start the ancestor debates again.
Admin
The String variables should have been A$, B$, ....A$, ........ everyone who's ever used BASIC in any incarnation knows that....
Admin
Admin
Admin
Incidentally, given that the site is free (and that a lot of comments suggest people block adds), I'm not sure why he thinks that Alex and co would care too much about losing a highly-strung reader.....
I lost a reader when I was in primary school, and my p[arents had to pay for it.
Admin
I not know VB other than Victoria Bitter.
Admin
F.I.R.S.T.
Admin
Admin
Admin
If God used APL we were living in Babylon
Admin
K... Buh Bye.
Admin
If God used COBOL, move verbose to what we'd be.
Admin
Admin
The ones we have to keep trouncing Australia, in order to retain.
Admin
Actually, there's a very good reason for coding this way.
It makes the function easier to debug. Each element of the final concatenated string can be checked for errors much simpler than having one gigantic string to decipher. Since the overhead is negligible, it's actually a damned good idea.
Admin
Admin
Admin
Admin
Both of you, please never, ever use technology again.
Admin
From etymonline.com:
"freedom from obligations, leisure, release" (from some activity or occupation), from Old French vacation, from Latin vacationem (nominative vacatio) "leisure, a being free from duty," noun of state from past participle stem of vacare "be empty, free, or at leisure"
So what you got right is that a word beginning with "vacat" suggests that something is empty. But it's not about your house being empty, it's about your timetable. ;)
Vacation doesn't just refer to the going away part, it refers to the entire period of being free from work even if you stay at home.
Admin
for a webdeveloper this isn't even so much of a wtf :) nothing unusual?
Admin
Admin
[quote user="MixMaster Steve"]On a slightly more serious note, given it's hard coded, can't all that just be done as a single string with _ ? quote]
Assuming you are trolling, but yes, it could be done with the line continuation "_". (VS2010 and later can do it implicitly if you end the line with an "&")
Also, just for clarification (for those that don't know you are trolling): "Casting is just a minor headache and clrify intent. ArrayLists are only inefficient if used in place where they shouldn't" -- You better be really sure about your value and reference types. Value types get boxed and really run slower. Why one would not use List(Of Type) / List<Type> in .Net 2.0+ instead is beyond me. Easier to work with and generally performs better.
"I have a Garbage Collector", sure, but you are also dealing with immutable objects that require copying the values to new memory over and over again (if it gets large enough, you then get the pleasure of dealing with LOH fragmentation as well)
"I don't see how its expense relates to the number of times it's called" -- Seriously Troll? If it takes a lot of time to do soemthing, why do it multiple times needlessly
"It works, it defaults to an empty string", uhhh, no. Strings default to Nothing/Empty in VB.Net
I appologize if you are not a troll... there are just a lot of them on here.
Captcha: nulla -- 1) a slang term for null 2) not the default value for a string 3) The default value for a string
Admin
pff, everyone knows god writes only lisp.
Admin
If God used Whitespace we would all be invisible If God used MUMPS we would all be sick and living in hospitals If God used Lisp we would be made tail-recursively of smaller versions of ourselves If God used APL we would all be Egyptians If God used Forth we would all pilled up in stacks
Admin
If God used Assembly we would all be hyperactive If God used Fortran I we would be spaghetti beings If God used Binary there would be only 10 persons around
Admin
If God used Malbolge God would be Satan himself If God used C++ we would not have foots If God used Java frameworks we would be all giant onions
Admin
In American usage you say that you are taking a vacation from something. You could say "I'll be taking a vacation from work" for example. When used in the more general form, it's not saying you are vacating your house (people frequently will say they are "going on vacation" even if they are just staying home) -- rather, you are vacating your responsibilities. Makes quite a bit more sense than overloading "holiday", particularly for those of us who may have to work during holidays.
Admin
Looks like somebody doesn't know the difference between SQL and PHP.....
Admin
Funny you bring it up, in some places 'e' is bad news. See if you can figure out why before you follow the link.
What is e3 and how do I get it out of my life?
kismet