K
Karl E. Peterson
Herfried said:Using '+' to combine bitflags is not a "best practice" in VB.NET.
Jest checking... ;-)
Herfried said:Using '+' to combine bitflags is not a "best practice" in VB.NET.
relatively independent of its platform. To address different platforms you
modify the compiler, not the language!
Ken said:Sorry, sorry.
To any new programmers out there *always* use OR unless you know what
you are doing. ^^^^^^
Unlike VB6, VB.Net
addition & subtraction operations are extremely fast. In fact, a
quick search will point you to a white paper showing that the VB.Net
compiled runtime is faster in addition & subtraction than not only
VB6 but also C#, C++ (pick your flavor), and of course Java
^^^^While the PlaySound API call won't benefit much, even in a loop,
Roger said:How many lines of VB6 code would it takes to do this? And what would
that nasty ass bit of code look like?
contents = My.Computer.FileSystem.ReadAllText("c:\mytextfile.txt")
My.Computer.FileSystem.ReadAllText("c:\mytextfile.txt")nasty ass bit of code look like?
contents =
Kevin said:Wow. Very interesting. And for as serious as that issue must have
been at the time, it pales in comparison to the .NET mess. You'd
think M$ had learned their lesson the first time.
(And all of these reasons not to move to .Net don't even
address the common complaints, such as the issue
of easily decompiled code and poor speed, the
problem of continual changes that require new, giant
runtimes, and the question of how .Net will weather
the changes of Avalon, WinFX, etc.
This makes little sense complaining about an OS thats not even been
commercially released as reason not to switch over to a development platform
that been in use for around 5 years.
Hanging around "here" is actually a dotnet newsgroup. Its odd that you
should come to one and complain that there are so many pro dotNetters on
board.
alpine said:Clearly, .not. And, given that one of the main designers of VB#
considers platform changes a prime time for "cleaning up" the
language, it would be a suckers bet to put money (aka: code) on the
line betting that it wouldn't happen again (again).
Wow. Very interesting. And for as serious as that issue must have been at
the time, it pales in comparison to the .NET mess. You'd think M$ had
learned their lesson the first time.
Karl E. Peterson said:The problem seems to be one of institutional memory. The guys who *swore* they "got
it!" were gone by the time the later destruction was done.
"Need a new type of data? Create a new datatype!" Duh.
Ken said:You can always tell when Karl gets paranoid. He starts to knock your
spelling. Your "even if" doesn't exactly fit, but I'll give you a
mulligan Karl, I can tell you are stressed. ;-}
As for the benchmarking, don't complain to me Karl. I didn't write
it and I didn't link it.
Even if I had I doubt any Microsoft lawyers
would be beating down my door.
I think there's an escape clause for when .NET wins the benchmark. said:I also didn't mention ASM or inline
ASM and neither did the benchmarks.
But if you were to take things
to the extremes I'm sure you could beat the times with good old
GWBasic and a few peeks & pokes. Couldn't reference much memory but
you could definitely loop faster.
Maybe with QB on a 16-bit processor. said:The rationale is pretty plain. Games require speed, speed requires
optimization, compilers require you to know what is going on behind
the scenes to help them optimize. Build on top of APIs like WIN32,
Fastgraph, and FMod and you'll pull out all the stops to achieve the
best frame rate and smoothest game play possible. Plus, it's just
fun to create the tightest code. At least it is for me.
in said:oh ok, now its clear. I thought everyone from vb6 wanted to stick to win32.
Some of us do. What's wrong with Win32?
Underneath your .Net classes, somewhere, is
an equivalent to Win32 level.
Is it not possible in vb.net to write desktop applications like vb6?
Not very. It strikes me that this point just doesn't
seem to come up in the minds of most .Net users.
If it were not for Microsoft's strategy and tactics then
it would not even occur to anyone to discuss VB vs.
.Net. They're not for the same thing. This whole argument
is happening out of context.
For one good explanation of why .Net doesn't fit well
on the Desktop see Mark Russinovich's article:
http://www.sysinternals.com/blog/2005/04/coming-net-world-im-scared.html
]
My own situation: I taught myself VB, starting
out leaning heavily on OCXs and gradually
learned better, leaner coding. I write "shareware".
I don't make a lot of money at it but I enjoy coding
and I like making something that's useful to others.
My main program is an HTML and script editor
that's quick, light, free of dependencies (other
than the VB6 runtime) and has an installer of
about 800 KB. To my mind it's progress to cut
out the OCX middleman where that's feasible.
VB6 gives me the ability to do that, while still providing
easy methods where and when I want them.
What do I get if I move to .Net? First I lose
about half of my potential customer base right
off the bat, because dial-up users are not going to
download 25 MB runtimes and 12MB specialty
programs. Then I lose another 25% because many
people won't deal with the added complexity of
needing to download and install a runtime. I also lose
any ability to write for Windows 95. So now I've
got maybe 20% of my possible base left.
Beyond that, I'm
getting back into the bloat and inefficiency of objects
that are twice- or thrice-removed from the API. Why
would I want to do that? I like using the API. I like
using Windows. I don't want to be led gradually to some
sort of future X-Box/Vista crap hybrid that won't let me
access the system directly.
(And all of these reasons not to move to .Net don't even
address the common complaints, such as the issue
of easily decompiled code and poor speed, the
problem of continual changes that require new, giant
runtimes, and the question of how .Net will weather
the changes of Avalon, WinFX, etc. The thing is already
in its third rendition and now MS has plans for more
big changes with Vista.)
To my mind it borders on bizarre that so many people
using .Net keep hanging around here like religious
converts (or maybe MS plants) doing a .Net sales
pitch. I wish that people would try to just think for
themselves a bit, do what's best for their own case,
and not worry so much about what everyone else
is up to.
To anyone who says that the Desktop is old
hat and that I should be thinking about web-based
software: Maybe you're right, maybe you're not. Either
way, I have no intention of following such a path using
Microsoft software.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.