|
Requirements are what the customer needs.
Specifications are what he says he wants.
|
|
|
|
|
I remember reading a line of code, reporting to the manager there was a bug in the code. "It can't be, it's written per specification." Well, I haven't seen the specification document, could I see it? After reading it, I agreed the code exactly matched the specification. I could see the manager was satisfied that she had won me over and the code was right, so I said "It's just too bad that it doesn't do what it is supposed to do." That got her attention and after reviewing what it was actually doing, she agreed that it wasn't doing what it was supposed to do. Thank God the naming conventions were so well laid out that by just looking at the code I knew what the requirement for this segment of the code was and the specification didn't satisfy the requirement. Basically a requirement is a statement of what the code is supposed to do, the specification is the implementation plan to meet the requirement.
With a field name of Maximum_Thread_Count_Allowed, I could tell that was the requirement, the Current_Thread_Count was properly being tracked and it could generate Maximum_Thread_Count_Allowed + 2 * Thread_Count_Increment threads. All they had to do to fix it was to change a "-" to a "+" (or Vise-Versa, can't remember the formula I saw in 2005.) in the "IF" clause.
There are user requirements and implementation requirements. The first is the constraints the client puts on the code, the second are the requirements the coder has to meet so the code will properly run on the environment it is designed for. The specification should cover both sets of requirements. The user may require that older data is removed using a maintenance schedule. When the daily maintenance is run, it must complete within 24 hours or it fails the implementation requirement.
|
|
|
|
|
Working on an application to save sunrise/sunset times for various sites into a data historian. Running everything through the test application, I get a pair of values... all looks good.
Run the same coordinates and other settings through the system to be placed in production and the sunrise/sunset times are offset by 10 minutes from the test system.
Then I remembered... the data is stored with an offset from midnight... the 10 minutes was the offset and was being added to the calculated times.
Sometimes we can't see the forest for the trees...
|
|
|
|
|
You using local times or UTC? I remember having to maintain data that had to be truncated five minutes before midnight. So I ran the job 5 minutes before midnight. It was truncating data at 7:55 AM because the data was in UTC time. I fixed the code to sleep in 1 minute increments until 11:55PM UTC was reached. Years later the whole data center was being moved to a different time zone. They had changed the code so the local times were set based on an offset from UTC times and this job would run at 11:55 PM our local time. I had screwed up by not changing the start time so it was sleeping for 16 hours (in winter) before running. I told them to fix the start time so it ran at 10:55 PM UTC time. (That way the sleep time would range from 0 to 2 hours instead of 15 - 16 hours.)
|
|
|
|
|
I have a legacy code and think of doing round trip engineering.
What kinds of benefits I can get from it? have you guys had experiences in this?
diligent hands rule....
|
|
|
|
|
My only experience with round trip engineering was a business trip from Bullhead City, AZ to Denver, CO several years ago. The greatest challenge was identifying stopping points that offered both fuel and a rest room, and determining which would be open or under construction when I arrived. The benefits, though, were immeasurable, in that I arrived both dry and well fueled at my destination, and didn't have to use a bush or walk ten miles with a gas can even once. I highly recommend it.
Seriously, who makes this crap up?
Will Rogers never met me.
|
|
|
|
|
|
Ah, unemployed patent lawyers with no scruples or knowledge. That answers everything. I guess they either sleep too soundly to hear ambulances, or aren't willing to make even that small effort toward justifying their existence. Thanks!
Will Rogers never met me.
|
|
|
|
|
"patent lawyers with no scruples or knowledge" - seems redundant to me...
According to my calculations, I should be able to retire about 5 years after I die.
|
|
|
|
|
CHill60 wrote: http://www.directorypatent.com/US/06502239.html[^] "Elements from the original source code represented by the model are placed in a meta-model, and compared to a similar meta-model of the software model."
Holy Cr@p!
That's "functionality" that I added to my spoof COBOL '99 program!
They can't possibly be taking it seriously! Everything that it achieves is nothing useful!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Too many models for me!
|
|
|
|
|
Thanks for the link, now do you have a link that explains in plain English what round trip engineering is? It is amazing, you can get a patent by saying nothing that makes sense and anything that doesn't.
|
|
|
|
|
Finding something in plain English on this topic is beyond me I'm afraid.
|
|
|
|
|
CHill60 wrote: Finding something in plain English on this topic is beyond me I'm afraid. Actually, finding any patent that initially makes sense seems like mission impossible. Usually they have to molder for years before someone sees the benefit of using it.
|
|
|
|
|
Well, the obvious benefit is synchronization of models and the corresponding source code. Why else would you do it?
/ravi
|
|
|
|
|
Anyone used TestDisk or DiskInternals?
SSD drive went all bad and I need some stuff off of it badly.
To err is human to really mess up you need a computer
|
|
|
|
|
You need a time machine to back in time and don't do what you did to mess it all up.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I told you next Wednesday that won't work!
|
|
|
|
|
Until next wednesday, I can expose this information and share it with everyone.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I don't know what kind of tools it will take, but it can be done. I lost a disk and paid some hack to put it in his 'system'... in his garage. Three days later he recovered everything except the OS installation (the reason it couldn't boot). We agreed to $200 for it (before he started)... it probably should have cost more considering the time it took. I gave him a very big tip after I verified everything was there.
This was after "Geek Squad" failed to diagnose anything... even claiming it was dead when I knew I could get it to spin up and read when slaved... I just couldn't recover enough info to determine file locations on the disk.
Oh, and the critical nature of the files on the disk... my wife hadn't backed up her pictures...
So now I bought her a $5 thumb drive... everything goes from the camera, to the computer, to the usb. And she never overwrites a picture on the camera disk (always get a new one)... that should do it... no more freaking out over pictures... triply backed up.
|
|
|
|
|
So you don't use a cloud service for your photos?
That's the safest solution for your pictures -- once the cloud service is hacked, you can retrieve accidentally-deleted pictures from any torrent site.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Mark_Wallace wrote: So you don't use a cloud service for your photos?
I was getting ready to take you serious and explain several reasons why not!
Mark_Wallace wrote: That's the safest solution for your pictures -- once the cloud service is hacked, you can retrieve accidentally-deleted pictures from any torrent site.
And then I had a laugh
|
|
|
|
|
99.9% of photos I have are of interest only to me and the family, why should I care if they are hacked. The .1% would not be backed up to the cloud!.
I just bought in to the Office 365 eco system, PC died, so I get 1tb on MS servers, all my music and pictures are now backed up to the cloud. Not sure what to do about the documents I don't want out there!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Um... Ask your little brother if he detects any sardonicism in my posting.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Digital photos contain GIS information. If you give me enough photos, I can track your behavior, even without your social media posts...
It kind of opens up the door for being victimized. I have no idea, or trust for the cloud to strip this out. In fact, I bet they consume it as meta data for advertising. And even without that information, some people who are closer to me could figure out the same info just from viewing the picture.
|
|
|
|