|
All good comments. In my rant area, we don't have performance issues. When talking to "the machine" (I like that term), some data items HAVE to be coordinated. Rather than putting it in a class, I have it in multiple places. So, I have bugs in multiple places.
I also DESPISE globals. Sure, like goto's, sometimes they just work. And this code is coming from people who ought to know better.
Well, you've cheered me up. At least some consider these things as useful.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
I try not to. I've dabbled a little.
I've done a lot of C, and what I don't like about C# is that everything must be in a class. (And yet no multi-inheritence. )
I prefer to use the right tool for the right job.
And please stop referring to VS as a compiler.
|
|
|
|
|
charlieg wrote: I live in the embedded world where our code has to adapt to the reality of real life. Ironically, that view is one that prevents deep adoption of C++ in the embedded world. There's a widespread perception that C++ includes a lot of overhead that embedded applications can't support. The perception is mistaken. Any loss in performance due to C++ constructs (virtual function calls come to mind) is more than made up by improved engineering. If it's really that much of an issue, C++ can always be treated as "a better 'C'". For that matter, performance requirements that stringent call for custom hardware anyway.
I'm dealing with this myself at the moment. A few months ago I inherited one of our long-term products, which is written in 'C'. The code is over 25 years old. It started life running on two single-board embedded computers, and now runs as a service on a Windows box. It's awful. Globals everywhere. Code reaches up the skirt of data structures without regard to access safety. Hell, it doesn't even follow good structured programming practices half the time. My intent with this crap is to answer questions if necessary. I ain't touching the code with my ten foot pole or anyone else's.
Software Zen: delete this;
|
|
|
|
|
Well, I personally think we always do an OO implementation even when we aren't using an OO language.
It just turns out soooooo much messier and hard to maintain if the language lets you shoot from the hip too much.
Cheers,
Mike Fidler
"I intend to live forever - so far, so good." Steven Wright
"I almost had a psychic girlfriend but she left me before we met." Also Steven Wright
"I'm addicted to placebos. I could quit, but it wouldn't matter." Steven Wright yet again.
|
|
|
|
|
I totally agree that abstraction and encapsulation are vital - but... there are more ways to skin a cat than just putting it into a class Structs and functions, classes or whatever you want to use, are all just implementation details - appropriately splitting your application into cohesive parts with low coupling is what matters.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
C++ was used to teach Object Oriented programming in a University Class I took in Computer Science back in the late 80's. I found it was easy enough to pick up if well presented. I was able to get things to work and that is a big plus. Modern tools are even better than the ones I used then. It also offers Multiple Inheritance which is also a major concept of OO, but also quite a complication if combined with Polymorphism at the same time. If you want an easier language to learn, then I would suggest C# since you can get a good free IDE from Microsoft for that.
|
|
|
|
|
Classes do not exist. Good design does.
|
|
|
|
|
|
...and if it ends with a newline, it is no longer the last line.
Go figure! 
|
|
|
|
|
lol, correct. The part that had me lost was VS2008 helping me.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
In my opinion... every code file should begin and end with a blank line. I don't recall any version of VS hindering that.
modified 22-Nov-16 13:12pm.
|
|
|
|
|
Why? Whitespace at the beginning and end of the file are immaterial to the compiler.
Wait a sec. Let me guess. You produce listings by doing this:
COPY *.CPP LPT1: don't you?
Software Zen: delete this;
|
|
|
|
|
Maaaybe... That's "documentation".
Historical reasons, old editors that loaded slowly, typing before it was ready.
And you know I like whitespace.
|
|
|
|
|
I was copying a large amount of files from one drive to a USB flash drive on a Windows 7 box. I selected all the folders and files, copied and pasted to the target drive. The system gave me an estimate of 23 hours to finish the copying. At the point when roughly 80% was done I had to leave so I decided to cancel it at that point.
Later when I was back I wanted to continue the copying. I was lazy so I selected all the folders and files again (even though 80% of them were already copied), copied and pasted to the target drive. I expected to see a message box showing "there is already a file with the same name in this location", and I would utilize the GREAT improvement MS had made over XP that I could just select "Don't copy" and "Do this for the next xxx conflicts" so the rest of the files would be copied. Instead, I was greeted by this message: "There is not enough space on xxx. You need an additional 22.0 GB to copy these files", with a "Try Again" button and a "Cancel" button.
I think they should give the users another button "Try to copy anyway" so they can copy as much as they can. In my case the free space is large enough to hold the rest of the not-yet copied files! Besides, sometimes people want to stuff as many files as they can on a drive. All my files are small ones, the remaining space is not big enough for all the files selected, but it can hold thousands of these small files.
modified 17-Jan-17 9:42am.
|
|
|
|
|
That's the first step toward AI rule...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Looks like you made the same mistake that many of us made: you expected windows to get better, not worse.
Anything that isn't a security update, and that has been checked to contain nothing but security updates, should be ignored.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
loyal ginger wrote: "There is not enough space on xxx. You need an additional 22.0 GB to copy these files", with a "Try Again" button and a "Cancel" button.
Use TeraCopy for Microsoft Windows - Code Sector[^].
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Beat me to it. 
|
|
|
|
|
Rajesh R Subramanian wrote: Beat me to it.
I like it so much I have bought a couple of licenses for it.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Great software! I use it at work where I have tons of files to copy (that is our versioning system, zips on a server).
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Since I got a NAS, I had to move a bunch of GB into it...
I've found that the best way to do it is using FTP (FileZilla in my case).
In case any failure happens you can see it into the summary at the end and you can restart it at will, pause, overwrite rules...
|
|
|
|
|
|
Each of those is something slightly different from the next: Do you use React? Do you use Angular? Do you want something fully featured like both of those, but you don't want to use either? Do you just want a CSS framework like Bootstrap, but don't like the look of Bootstrap?
It's true that there is a lot of noise out there, and for the developer who's just looking to get stuff done it can be unfriendly to say the least. I enjoy the wild west aspect of it, though. I got started late in my development career, so I never directly experienced "The Bubble" and all the tech-splosion that accompanied it, so I'm having fun with this stuff. 
|
|
|
|
|
Vark111 wrote: so I'm having fun with this stuff.
Yes, and I think you just hit on the problem. While it's great to have fun with all this stuff, let's say you're starting a web development effort (I'm not, thankfully) and you need to evaluate these so-called technologies, and as you mentioned, the underlying frameworks (React, Angular, etc), and decide the course of the pretty much the lifetime of the site, which could be years.
So, there's a difference between the "having fun" free-for-all and the "what poison pill will I swallow" in a professional setting. Oh wait, silly me. Web development isn't professional. I should know that by now, given the Django/Rails experiences I've had.
Marc
|
|
|
|