- 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
[quote user="akatherder"][quote user="maht"]> VB.Net has low barriers to entry for most kids who are goofing around
Almost every other non-MS environment has a lower barrier.
To start with VB.Net you install VS.Net and you're up and running. It dumbs things down and abstracts thing ridiculously far (big pluses and minuses of course). Then you start dragging and dropping and you have a webpage.[/quote]
No to run VB.NET, you need to install Windows, then install IIS (and if you want some preformance out of it, you need to buy a Windows Server and new hardware). Then if you don't know any thing about IIS security, you have to learn how (takes time), then after all of this, you have to install a .NET version (and learn that as well) and SQL server (if the web app is database driven).
Now let's install PHP. Ok I opened the zip file... now what? Oh I have to install Apache or IIS. Well I've heard of IIS before, let me try that. Ok, let me scroll through all these errors where it says this is incredibly unsecure to run... WHOA! That's a lot of comments on how to get this to work and they're all different. After 3 days of playing around with ISAPI filters and permissions, you realize most people use PHP and Apache together. Ok, so let me do this Apache thing.. ah hell this was obviously made for linux. Here are some comments and help on the online doco site... WHOA! That a lot of comments and they're all different again. Ok, let me look through this 800 line httpd.conf file and see if I can figure out which of the 200 directives apply to me. Oops I changed one I wasn't supposed to, let me download that again and retry this. What the hell, I just write crap in notepad now?
I've set them both up dozens of times. If VS.Net blows up... you're in trouble. But if it works it's a million times easier the first time around. Throughout the years I have enlisted the help of several PHP "gurus" and I got a whole bunch of "Let's try this... shoot. Ok let's try this... DAMNIT that worked last time! Let's try this..."[/quote]
Most linux distrobutions will install PHP and configure apache automaticly. and because linux does not have the security problems that windows does, there's no need to do anything else except develop. Also there's many of choices that you can make when it comes to the database engine (PHP can even access SQL server).
Admin
meh, wish I woulda responded to this earlier.
I'm not sure why if there would be a set number of concatenations that there is no added efficiency. Behind the scenes, concatenation has to make a temporary in-memory object to hold the string value in order to do the concatenation, regardless as to whether it is a set number of concatenations or not.
Try a simple loop of 10,000 concatenations of a for loop with i, and someval += i.ToString(). Try it with stringbuilder.
Now try it again with just 1000 iterations.
Now try a simple loop of 1000 concatenations, again, except this time with a for loop with i, and someval += i.ToString + i.ToString() + i.ToString + i.ToString (10x) and do the same with a stringbuilder.
they should come out the same, or close enough. If you could explain it more, or have some example code to prove, please share. It seems that if there is any place where it is arbitrary, the outcome will be that any set series of string concatenation still suffers in comparison with stringbuilder. Perhaps I'm not following what you mean by "set". But I would think that if you have a set series of string concatenations in a function on the order of 10,000, well, I dunno what to think of that. :D
and I guess it depends on what you define as arbitrary. If int i = 10,000, I'm not sure if you would consider it arbitrary, or if you are considering it arbitrary because you are using a variable, and if it is arbitrary if you were using a constant. All I know is if you run that test, it shows that for massive string concatenations, USE STRINGBUILDER!! :D
Admin
That would involve them halting with the same answer on all possible input (and not halting on the same input the given solution doesn't halt on).
Admin
by "American" ... you mean South-American, Central-American or North-American ?? (jeez I have never heard a german, french or british citizen say "we Europeans" to refer only to his fellow countrymen)
Admin
Admin
Admin
Over and out.
Admin
I can think of a few appropriate words - rudes, self-right's, arrogants, aggressives, ignorant neighbours.
Well, that's if your reply is anything to go by. No offence to nice folk in the USA.
Indeed it is a common term and perhaps Carlos feels that the other parts of "The Americas" are somewhat offended by excluding important neighbouring cultures (culture - you might have to google that one waffles!).
CAPTCHA: Wait a mo'. That's the same one as last time I posted!!
Admin
In oracle it's available in sql and pl/sql as
return Trunc(:DATE,'MM')-1;
captcha: Ahh I get it now! poindexter
Admin
Another WTF? what's wrong with return add_months(date_var, -1); ? Admittedly you sometimes have to mess around with the day of the month too, but I'd guess you have to do that in all langs...
Admin
Can I refer you to the comments about re not criticising the language if you don't use it? Java doesn't have to be 'ugly'. Like all langs it has had its troubles as time has gone on, but it's pretty neat now. And as for speed, again there are some pretty fast implementations out there now. And if you need proper speed, you have to go to something like C anyway.
Admin
You're absolutely right, I apologise, I should have said - built by communists, runs in most environments, not a real shame if you bash it ... lol ;)
Admin
umm...
why go through all that work (last day of the previous month)?
Admin
You are absolutely correct : "The United States of America", as in "PART OF AMERICA", not "we ARE America". And it is very common ... inside USA. And pleeease don't blame on the rest of the world if YOU (as a nation) have been lazy enough to suggest a more appropiate term. YOU (as a nation) coined the term, not other nations. In fact, other nations DO refer to US citizens with other terms, like as "north americans" (ok, that should include Mexicans and Canadians too), "estadounidenses" (in spanish), and if you want something more colloquial, we have can offer you the time honored "gringo". Pick your choice. I am from Chile, South America (look it up on a map, we are located "a little" beyond Mexico), and I think I am as American as YOU are, since I live in South America. Self important, who, me? please don't make me laugh
Admin
Thank you, that is exactly my meaning. Just look at a map. There are 21 other countries in South, Central and North America, besides the USA. Some of them may not be as rich, powerful, developed or "civilized" as the USA, but most of them do have millenaries cultures, proud peoples and of course lots of problems. And we DO take offense when US citizens refer to themselves and their country as "Americans" and "America". The same 21 other countries you will find in the map, have the exact same right to be called as such.
Admin
It ought to go without saying, but you don't have to install a web server to use PHP as a scripting language. You do have to install some sort of web server if you want to use PHP in running a web site (and the installation instructions which I'm guessing you read at some point lists half a dozen for the Windows platform alone), but of course you already knew that to host a web site you need a web server.
Admin
(To those arguing over the term "American")
Words sometimes have meanings that may not be solely derived from their etymology.
Admin
The Founding Fathers commented on it, as they considered this. Of course, maybe they fall into the 'self important jackasses' category. Tho' at least one of them suggested 'United States of Columbia', so that 'American' would mean someone from the continent(s) rather than being ambiguous. Of course, to some people, it's not ambiguous - they demand everyone else should give up one of the legitimate meanings because they only ever use the word in one context.
Admin
And here is the quote I missed out...
Admin
LOL! This one rocks!!.. SENIOR :)