|
RyanDev wrote: typing less syntax
- BC30124[^]: Property without a 'ReadOnly' or 'WriteOnly' specifier must provide both a 'Get' and a 'Set'.
- Repeating the property type in the property setter.
End If , End While , End Function , ...- Etc.
Looks like more syntax to me!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: End If , End While , End Function
First off, Visual Studio adds those for you so you don't have to type them anyway.
Secondly, I've seen c# code that ended with a bunch of } and the coder had to comment with // end if and // end foreach etc, etc, because of so many } together you couldn't tell what was what.
Yet c# always needs a ";" and always needs (). You gave a couple of examples in VB but c# has extra syntax on nearly every single line. VB compiler does way more for you. Much less typing in VB.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: First off, Visual Studio adds those for you so you don't have to type them anyway.
It's still a more verbose syntax.
RyanDev wrote: the coder had to comment with // end if and // end foreach etc,
Since you're using Visual Studio, there are extensions which will display that text for you without having to add the comment. For example:
http://vscommands.squaredinfinity.com/Features-CodeBlockEndTagger[^]
RyanDev wrote: Yet c# always needs a ";" and always needs ().
Consistent code is far more readable.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: It's still a more verbose syntax But less typing and way easier to read.
Richard Deeming wrote: Since you're using Visual Studio, there are extensions which will display that text for you without having to add the comment. For example: Now you're promoting additional verbosity?
Richard Deeming wrote: Consistent code is far more readable. Exactly.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: way easier to read
Maybe if your a VB developer. If you spend all day working in C#, then C# is easier to read.
RyanDev wrote: Now you're promoting additional verbosity?
No. I'm saying that if you want to see what the closing brace refers to, you don't have to type comments to do it. Less typing, less code, less verbositudification.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: If you spend all day working in C#, then C# is easier to read. We'll have to agree to disagree.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: VB is easier to code in
In what universe?
If it's not broken, fix it until it is
|
|
|
|
|
Hey - take that kind of remark to the SoapBox!
"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 |
|
|
|
|
|
Lucky you, I'm working on Delphi6 code.
|
|
|
|
|
MarkTJohnson wrote: Delphi6 WHY?!?!
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
|
If so, it must be a pretty old app. Delphi 6 was released in 2001.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
VB 6 is older and there's still lots of that about.
Kevin
|
|
|
|
|
I'm of the opinion that it should all be killed with fire.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
Presumably there's lots of stuff out there that businesses deem too costly to rewrite. E.g., where I work we have a legacy MS Access-based application. Main product is ASP.NET/.NET 4.5 with a mobile client running on Surface. I don't know anything about the Access application but presumably they are unable to replace it right now.
The fact is that business won't always accommodate most developers' wishes to be on the latest and greatest.
Kevin
|
|
|
|
|
Agree but I'm struggling to get the business to agree to the rewrite it so still have to support it. Down to only three Exe now
|
|
|
|
|
Because I enjoy eating and a roof over my head and my wife by my side in the bed at night.
Yes it is maintenance, it's what I'm good at and this is the code that brings money into the company.
|
|
|
|
|
Great answer!
<high_five />
"Go forth into the source" - Neal Morse
|
|
|
|
|
I was more questioning the version 6 rather than the Delphi. The company I work for is a Delphi shop, but our code base has evolved over the years from version to version. Currently, we are using XE4 with plans to jump to XE8 in the near future.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
The plan is to do away with all the Delphi code with new stuff which others have started building. The interim step is to use the new code to call the old Delphi dlls. I wrote the code that facilitates that. But I do have to help keep the wheels on the bus in the mean time.
The company didn't want to upgrade Delphi in the past.
My last job was also on Delphi6 and it couldn't be changed because it was the tool specified in the government contract and newer versions wouldn't play nice with QuickReport (a pox on you QuickReports).
I learned how to make C# and Delphi communicate there because I was tasked with trying to make CrystalReports work with our Delphi code. I got it working but it was a real pain in the butt because of the milispecs I had to work around. You, a single user, couldn't have more than 3 connections to the database at any time. CrystalReports want a seperate connection for each table within a report. so I had to convert our queries into a stored procedure so all the data would come back inside a single connection.
Then the entire program was mothballed and I found my current job.
|
|
|
|
|
Hi, my name's Guy and I also occasionally code in VB.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
All together now.
Hi, Guy!
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
I peed my pants a little on that one.
|
|
|
|
|
At least you got the reference .
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Ernst Stavro Blofeld wrote: Doing a little VB coding currently
My condolences
If it's not broken, fix it until it is
|
|
|
|