15,891,253 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Dave The Brave (Top 9 by date)
Dave The Brave
22-Jul-11 3:36am
View
Deleted
Quirkafleeg, given that you come from a company without coding conventions (why didn't you yourself create some?) and you write functions of 1000 lines, I think you are absolutely not qualified to talk about such topics in the first place.
Go and read some books of Robert C. Martin or Code Complete for example and admit to failure.
Dave The Brave
21-Jul-11 10:21am
View
Deleted
It's a poor programmer who writes such code. The var keyword is fine, the namings are the problem.
Dave The Brave
21-Jul-11 10:20am
View
Deleted
I concur, the problem is not the var keyword, the problem is badly named variables. It's a poor programmer who blames this language feature.
Dave The Brave
21-Jul-11 10:18am
View
Deleted
Reason for my vote of 1
bullshit
Dave The Brave
21-Jul-11 10:17am
View
Deleted
Reason for my vote of 1
garbage
Dave The Brave
21-Jul-11 10:04am
View
Deleted
See the stackoverflow thread to debunk your myths:
http://stackoverflow.com/questions/41479/use-of-var-keyword-in-c
Dave The Brave
21-Jul-11 10:01am
View
Deleted
sergueis63, I work all the time on such projects. And I prefer the var keyword. Maintenance difficulties due to the var keyword may be a symptom, but not the cause of the problem. When the var keyword is your problem, your code is probably messy in the first place.
"The idea of scanning through a 1000 line function filled with var is abhorrent. Notice the word "scanning""
This is what I mean. You've got other troubles than the var keyword when your functions are 1000 lines long.
Dave The Brave
15-Jul-11 6:45am
View
Deleted
Reason for my vote of 1
I completely disagree. The var keyword enhances the readability of code. Programmers should code against abstractions and interfaces anyway, thus a type becomes code-noise/code-smell, especially when coding against concrete classes. The var keyword eliminates this noise when the variable is properly named.
Dave The Brave
15-Jul-11 6:43am
View
Deleted
Reason for my vote of 1
I completely disagree. The var keyword enhances the readability of code. Programmers should program against abstractions and interfaces and thus the type becomes code-smell anyway, especially when coding against concrete types. This can be eliminated by the var keyword, if the programmer uses a good name for the variable.
Show More