- 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
Slow down with alcohool... Connect with Oracle, try your statements e let us know the results, if any... ;-)
Admin
With Oracle!? I'll pass. I gave it a try: 3GB of shitware overhead before i'd even started using it. No clear entry points. Who needs it? MySQL and PostgreSQL both provide excellent database functionality with about 130MB, including PostGIS on PG and a number of experimental DBs I've already loaded on MySQL. I just don't have drive-space to waste on Oracles self-promoting, badly integrated bloatware.
I can't say I'm terribly fond of the sample code you were responding to, either.
Admin
It actually does not produce a bool in C/C++ either.
x = 2 returns 2. ;) And as we all know, anything non-0 is considered true. ;)
Admin
Really though, while it may be mildly annoying, it's entirely possible (as was pointed out) to short circuit with the non-short circuiting operators if you split them into multiple statements. It also gives you, as was pointed out, the ability to more fully determine the point of failure when something doesn't work.
Admin
"WAIT" was not an applesoft basic keyword.
(see http://www.landsnail.com/a2ref.htm)
"POKE" was, IIRC it was clearing the keyboard.. -16384 was reading the keyboard.. it was latched, so you had to poke -16368 to clear it..
though usually with zero..
Admin
@themagni Unless, of course, you want to use the serial port. Have fun doing that with VB.NET 2003!
And how do you do it in C# V1.0?
Admin
That was pretty cool. I need the same weed to fly that high. Wohaaaw.. That's reaaly hard stuff! I've seen similar one long time ago. That was smth like this
while(transaction.Commit());
Admin
hmmm ... I wasn't aware that lots of people are building houses with shoes these days, because in order for your analogy to be even remotely applicable that would have to be true.
If you feel that it is as difficult to code in VB as it would be to build a house with a shoe, then, like usual, I can only suggest that you actually try learning VB and actually using it. Because either you don't know it at all, or you are a pretty poor programmer. Take your pick.
Admin
Admin
update foo set bar = ? where baz = ?
Admin
Admin
The point was (guessing) that it's not valid SQL, just valid Transact SQL, which is not the same thing at all -- it's one of the various procedural add ons to SQL, this particular one being MS's which will not work on Oracle.
Admin
I'd personally prefer a language that uses := for assignment and == for equality, leaving no room for mistakes.
Admin
If x = y then exit for end if
Admin
What I notice is wrong:
Admin
I'd apologize for bringing up graveyard posts, except that this section of the site doesn't appear to have any access method which is last-post sorted.
C is 'assembler'-like, in that it is pretty close to 1-1 with PDP 7 assembly, except it has subroutines, and some control structures like 'for', 'while', and 'switch'.
Since pretty much nobody has a PDP anymore, let alone a 7, this is not very relevant. It certainly doesn't look like any actual assembly language I've seen.
Admin
You can have control arrays in .NET, they just don't have designer support. But frankly there really is no reason for control arrays as they really only existed in VB5/6 to workaround other limitations, such as the hard 255 control name limit and the inability (or extreme obnoxiousness, in VB6) of loading controls dynamically. In VB.NET there is absolutely nothing that the designer can do that you can't do yourself. Loading a control is painfully simple: Dim tb As New TextBox() : Me.Controls.Add(tb). Wiring dynamic controls to events is similarly simple as events are just based on delegates, so AddHandler and RemoveHandler with AddressOf can subscribe and unsubscribe at will. So, if you want control arrays, just declare an array in code, populate it and add those controls dynamically.
As for Sub Main, that still exists but it is hidden in Windows Forms projects by default as VB.NET adds a framework on top of such projects to assist with common tasks such as setting up visual styles, handling authentication, supporting splash screens and handling single instance application (that can pass parameters from invoked instances back to the single instance). You are free to turn this off in Project Properties by unchecking the "Enable Application Framework" checkbox at which point Sub Main becomes available as a Startup Object. Then you just need a Main method in a Module (or a class, but the method has to be explicitly marked as Shared.) Note that in VB.NET the Main method doesn't just have to be Sub Main(), it could be Function Main(ByVal args() As String) As Integer.
It's easy to disparage something when you don't understand it, but that ignorance is your problem, not that of the language. Heck, and I don't even program in VB.NET.