|
I agree. I'm just trying to find out why people think this is okay. Haha. I've seen practically identical examples on so many occasions and it just blows my mind. I mean, I do slip up once in a while, forgetting XML documentation, lazily naming a few variables, etc. But certainly if I were to contribute to an open source project I would want to use the best standards/practices that I was aware of. It's not like working in a team in the same room/office, where the other contributors could at least walk over to you and say "what the **** is this?" Haha.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Matt U. wrote: . . . lazily naming a few variables, etc.
I really do try to use meaningful variable names. But sometimes I can't think of one that I haven't used elsewhere for a similar purpose...so I get frustrated and just use the first thing pops into my head.
So if you ever see a variable called BuffaloFart, do not attempt to divine a legitimate meaning. There may not be one.
|
|
|
|
|
GenJerDan wrote: So if you ever see a variable called BuffaloFart, do not attempt to divine a legitimate meaning. There may not be one.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I don't recall any BuffaloFart variables in any of my code. However, I have been stuck as well and I have chosen something like "blah1", "blah2" and "blah3". They were all related in terms of how they were used. Haha.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Matt U. wrote: Adding those comments too methods and classes is typically the first thing I do when I am coding +5
Me too. I always comment and organize my code. I don't enjoy spending hours trying to figure out what a developer (who's no longer at the copany) intended to do in a bunch of obtuse code and would hate to have a consumer of my code endure the same pain.
/ravi
|
|
|
|
|
Haha, yeah. I know what you mean. I am the only developer in my facility, a manufacturing environment. I'm not technically a developer (my job title, that is) but that is exactly what my job is. I write in-house applications. But even without others looking at my code, I get in the mindset like I do work on a team rather than solo. Just an extra precaution, I reckon.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Matt U. wrote: Perhaps I am being overly conscious about coding practices, standards, whatever.
But I find it very difficult to read the code at times.
Unfortunately that is how the real world works.
I am hopeful that the example you posted is one of the worst rather than average.
All you can do is endeavor to make sure that no one ever asks (or thinks) the same thing about your code.
So make sure your code has comments, insure that if you are modifying existing code that it matches the existing style, give your variables better names and remove unused code.
Matt U. wrote: typically if it seems like something I may learn from.
Hopefully you have learned that it is likely that other people will look at your code, and will want/need to understand it and so you should write your code that reflects that understanging.
|
|
|
|
|
That makes sense. I definitely go into a project with the assumption that someone may eventually look at my code. And with the way things are going lately, that may be the case soon.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Good afternoon to all.
Here's my problem:
I've created a WCF service and now I'm trying to install it with Installer project on target machine as administrator.
host = new ServiceHost(serviceType, serviceUri);
host.Open();
And here's exception:
HTTP could not register URL http:
When I start serviceCore as console application - it works fine.
What I'd tried:
- netsh;
- manifest with highestAvailable;
- turn off UAC;
ServiceInstaller is NetworkService, target machine OS is R2, domain user has adm rights.
|
|
|
|
|
Its easy
you can use this using directive
using System.ServiceModel
|
|
|
|
|
sina rahimzadeh wrote: you can use this using directive
That has absolutely nothing to do with it.
The OP doesn't have a compile problem.
|
|
|
|
|
He can sacrifice a chicken as well. It's as relevant as your answer.
|
|
|
|
|
even turkey can't help me -/
modified 1-Jun-12 10:18am.
|
|
|
|
|
|
as I've said, I'd already used "netsh"
I'd added localhost, ip, + with my domain user or Everyone. But it still doesn't work)
|
|
|
|
|
first remove that port and then reserve it again, or change your port, maybe its allready reserved by another service!
|
|
|
|
|
How to add audio to a form.
|
|
|
|
|
|
|
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
|
Hadn't noticed it was the same user...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
A NEW LEARN IS IN THE HOUSE, PLS A SERIOUS TUTOR.
|
|
|
|
|
Please, be a serious student and DON'T YELL IN THE HOUSE!
You really haven't asked a qestion anyone can answer, so you're stuck until you do. Nobody is going to walk up to you and just start spewing all kinds of tidbits at you, so...
|
|
|
|
|
Dave Kreskowiak wrote: Nobody is going to walk up to you and just start spewing all kinds of tidbits
at you, so...
Well, there are several articles like that.
|
|
|
|