|
No, I write for maximum readability, and will remove any nonsense. See below a practical example of code that obfuscates and does not add any value;
public static void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action)
{
foreach(T item in enumeration)
{
action(item);
}
} I've been told it should be used. I said no, I will use a regular loop
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Sander Rossel wrote: So you're right, and those who told you to use it aren't I know; it is a construct that only hides the original loop, adds costs and possible failure-points without providing any benefits at all. It just "looks cooler" to some.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: I know; But now you have Eric Lippert and, more importantly, me backing you up
|
|
|
|
|
How did your presentation go?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
I never have, so I wouldn't know, but I doubt it. Seems pointless anyway.
|
|
|
|
|
Th trsr th bttr!
Latest Article - Slack-Chatting with you rPi
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
It's already hard to read.
Got my site back up after my time in the woods!
JaxCoder.com
|
|
|
|
|
I'll share what I node so long as I don't desecrate my abode.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "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 |
|
|
|
|
|
Not my code, but my binaries - for sure. I use babelfor.NET[^].
/ravi
|
|
|
|
|
Never. I lkike to be able to read what I wrote!
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Like to, no.
But it does happen without me trying.
|
|
|
|
|
No, but I am now responsible for a product that was originally written by an asshat who did. This body of code was the only thing he worked on for 20 years. When they tried to assign him to another product, he took his ball, went home, and retired early. After several layoffs, his product is now in my lap. The code was deliberately written so that only the original author could maintain it. No naming conventions, other than keep them as short as possible. No consistency in block structure or indentation. Basic principles of structured programming like single-entry, single-exit are ignored. Most error returns are ignored. Magic numbers are used wherever possible. Most pointer arguments are specified as void * to avoid typing struct name * . There are so many code smells it's reached the level of aromatic white noise.
I see this f***er every so often out on the bike path. I've had to spend enough time debugging his sh*t over the last few months, he may just have an accident.
Software Zen: delete this;
|
|
|
|
|
I may have an accident too: But if your organization does not review one guys code for decades, is that only the guys fault?
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
megaadam wrote: if your organization does not review one guys code I work for a hardware company, whose engineering management consists entirely of hardware engineers. All of our "processes" are based on hardware engineering principles.
The end result is that it's very difficult to get any traction for different practices for software. Our one attempt at a code review was mismanaged from the start, and ended with the engineer concluding the review by saying if they ever tried it again with his code, he'd walk.
Software Zen: delete this;
|
|
|
|
|
Attendants argue rough after note Changed (9)
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Why am I thinking guardians ?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Because You don't want to take responsibility on Monday
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Entourage (anagrams of note and argue put together).
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
|
|
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Bingo .... You are up for Monday
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
A while back I asked for some good video editors. I analyzed and weighed each option and tried ivsEdits LE first, but wasn't to my liking. Second I tried OpenShot. This works great, the only downside is that you need to install Blender and/or Inkscape for advanced titles and those work "buggy" at best. The basic "titling" works fine.
Vlogging was harder than I thought it would be (although I learned not to underestimate things).
GoPro
The Gopro I had was not living up my expectations. I admit the camera is somewhat battered in use, but still I wasn't getting the quality I wanted from it.
Camera
So it was back to my thrustworthy Canon EOS 7D. I truly love it and it still does the trick. I attached my microphone and started talking. That was also surprisingly difficult to do fluently (I had a fixed text) and ended up redoing the take several times.
Sound
Attaching a microphone solves the issue of "talking to softly" on video, but also records lots for noise. Here again I ended up in installing audacity with ffmpeg and Lame plugins to extract the sound channel from the video and correct it for noise.
resync
After you have the sound, via microphone or directly from my amp you need to resync it with the video. That's not so easy. Right now, I used the mouse to move my tracks in sync. I hope I can find a more fine-grained way to move a track a nod to the left/right.
All in all, nothing of this is rocket science, but it was a lot of finicking about.
Since some of you are going to ask me anyway:
The first result online is a demo video for guitar lessons on my webpage[^] the about tab. The acoustic guitar is recorded with an iRig microphone through my tablet. The electric guitar is through my H&K Grandmeister 40.
Note that the metronome clicks are recorded with the microphone, hence I'm wearing headphones
So basically, thanks for all your advice
(and in turn I hope this feedback helps others)
|
|
|
|
|
So you finally used OpenShot ? This is still not clear to me.
Thanks for the feedback BTW.
|
|
|
|
|
Yes, I finally chose OpenShot.
I also use Audacity and Windows Media player and GoPro Studio, but everything is finally fitted into OpenShot before release
|
|
|
|