|
Oh, now I am reminded of some ODBC code (in ANSI C) I had thrust upon me in the late-90s -- query results were returned as CSV strings.
I had to write my own version that at least returned sort of an array of strings.
|
|
|
|
|
Yesterday, I put in around 5 hours making changes on a form. This was done on a laptop having a synched drive to my home-office server where the development files are kept. I've learned with the laptop that it's actually safer to copy the project from the synched folder(s) and work on them locally, then manually replace the files when I get back to the office. Anyway, I opened the project from the local directory where I had copied it and spent the day putting in the new changes, and getting it all working. Hooray!
This morning, I got out the laptop and let it synch up to the network, then opened the local folder where I had done all my work, got the files I wanted, and replaced them on the network drive. It was then that I realized that the file dates/times were wrong...I had actually been working on the offline/synched files and had just overwritten 5 hours of work! There seems to be no way to get it back either...bummer! It'll take me at least 2.5 hours to rewrite it, but I've already got ideas for improvements! (trying to be optimistic!)
"Go forth into the source" - Neal Morse
|
|
|
|
|
Use source control, either a local repository on both machines or (ideally) one with a repository both machines can access (if both have the internet you could use GitHub for example). I use SC even for my noddy projects on a local machine just in case stuff like this happens and anyone can mess up and once the code is overwritten it's gone.
|
|
|
|
|
This is one of the many, many reasons to use some form of source control. With modern editors and IDEs, the overhead is negligible and it saves you so many headachese - this scenario being just one of them.
|
|
|
|
|
No, Seriously. A Web Browser written using Bash[^]
What.
The.
F***.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Quote: The butthurtery is strong in these.
I'm laughing so hard.
cheers
Chris Maunder
|
|
|
|
|
Last commit by lawl butthurt.
The only file starts out promising
|
|
|
|
|
When you are trying to understand some weird while-if conditions in a 15-year old system in java (!). And after that the only thing you do is write.
And just try to think about a New Year coming... ("Do you have a JIRA or other issue tracker?" "No, we don't need it because we don't have testers." - "OK, what about that NullPointer on a production code?" "C'mon, after 15 years every user knows that he shouldn't click that button").
|
|
|
|
|
Yep, nothing like coming back into work after 2 weeks, settling in and seeing:
public void DoSomething(){throw new NotImplementedException();}
These are the moments when I realize that I'm an idiot.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
What. The. F***.[^]
Take 2.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
I'm thinking flash in the pan. I'm not about to hop to and learn Bootstrap 3....D
After having a look at the Samsung "VR Headset", I'm 100% certain of it. That thing is so incredibly stupid.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I just came across the following comment in some code in our core application:
Care to guess when that was written? (it is still in our code now)
Answer:- I don't know because it was already in the first version of the code loaded into our version control system.
|
|
|
|
|
I went to school in a very, very temporary building that was put up shortly after World War 2. It's still going strong.
On that basis, the code should be good a few decades yet.
Slogans aren't solutions.
|
|
|
|
|
Is that comment followed by just-good-enough code that somebody should go back and rewrite?
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
Hard coded list of currency codes. I guess it was good enough to last.
|
|
|
|
|
What. The. F***.[^]
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Quote: make USB safer and easier to use by bringing it to the Web
I may have missed something, but on what planet does this make any rational sense?
|
|
|
|
|
Dave Kreskowiak wrote: on what planet does this make any rational sense?
Cue jokes about the seventh planet...
But I heartily concur with your sentiments.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Web developers!
When there is a nail, Javacript could sure hammer it!
|
|
|
|
|
And the archive is for March.
One day later and I'd assume ...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
make USB safer and easier to use by bringing it to the Web
At last! Everything is safer when it's on the web!
|
|
|
|
|
Come on now, this isn't a bad idea.
I mean, it has to be in an HTTPS context, right? That's, like, more secure than ring 0!
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
WTF indeed.
"But most importantly this will make USB safer and easier to use by bringing it to the Web."
Has USB ever been dangerous?
But look, don't be too hard on this guy, he is trying to build his Microsoft career on this crap.
|
|
|
|
|
|
And connecting it to the net is going to make all the difference is it?
|
|
|
|