|
in the same header file, 5 lines apart.
<h1>define szSTATUS_DONE "D"</h1>
<h1>define cSTATUS_DONE 'D'</h1>
they represent the same status (and values)
(yeah, we use type prefix !! )
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
I use my prescient powers to see that you are going through someone else's code base.
Mircea
|
|
|
|
|
yeah!
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Trust me, it's much worse when you go through your own's and go: "What was I thinking!"
Mircea
|
|
|
|
|
Well, sometimes you are comparing strings and other times you are comparing characters.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
if only ...
both defines are used at max a dozen of times in places where performance is not required.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
szSTATUS_DONE [0]?
Paul Sanders.
If I had more time, I would have written a shorter letter - Blaise Pascal.
Some of my best work is in the undo buffer.
|
|
|
|
|
Job security? Or maybe someone was paid by lines of code?
The ‘why’ is almost always inscrutable, but likely the coder slept between sessions.
Cleaning someone else’s code is both satisfying and nerve wracking.
Good luck.
Time is the differentiation of eternity devised by man to measure the passage of human events.
- Manly P. Hall
Mark
Just another cog in the wheel
|
|
|
|
|
The compiler told someone that string -> char was a type mismatch upon comparison so they added the other def and used that one.
They did this for type mismatches for other values/variables too, sticking to their pattern.
At least, that's my forensic analysis of the crime of a previous coder.
A long time ago they were me, so we're intimate acquaintances without their knowing and I feel like I can predict some transgressions because I once made them.
It's like catching your kids sneaking out, isn't it? Sleepover at Susie's! psssh...
|
|
|
|
|
Yep: Empathy and understanding can lead to a more serene life.
Time is the differentiation of eternity devised by man to measure the passage of human events.
- Manly P. Hall
Mark
Just another cog in the wheel
|
|
|
|
|
Yeah I don't intend to be ugly about it.
What else is everyone in the raft supposed to do when someone says they'll prioritize themselves ahead as much as they want to everyone else's detriment?
|
|
|
|
|
Two devs and a deadline? Looks like the results of a yet another successful death march. Code works, mission accomplished.
|
|
|
|
|
|
But can it generate itself?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
It had been awhile since I pulled up the code, but sure enough when I did, I found a Deslanged.Export.cs file in the Deslang project. Such files are created by Deslang itself. So I did use it to build itself.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Cool stuff honey. The idea of code writing code is one of the first mind blowers that made me want to write code.
Because you guys will like this if you haven't seen it, even though it's likely I found it from here somehow.
This is in the same "codeception" vein.
This image displays the CRC value of the file which contains it.
[^]
|
|
|
|
|
|
I thought The Who did My Generation
|
|
|
|
|
I did it too, there is a big company that operates like that for their products.
GCS/GE d--(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--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
But can it generate DOOM?
Software Zen: delete this;
|
|
|
|
|
I just used my Rolex lexer generator to generate a 5.7MB C# file and at least 95% of it is a single array of integers.
How's that for testing the limits of C# arrays?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
And here I were thinking that my Rolex is just for telling time, oh sorry, just noted it is a Lolex, made in ... 
|
|
|
|
|
In my student days, upon finding the book 'A Million Random Digits with 100,000 Normal Deviates[^], simply because I was fascinated by the madness of publishing a whole book of random numbers. In the Numerical Methods course, we had been through the theory of random number generator. The cost of the book was something like USD 150. It would be a great thing to pass around at parties with other Comp.Sci. students.
Well, I didn't spend the USD 150. Every now and then I regret it. As my link shows, it is still available, but my friends are different now; they don't see the absurdity / humor of it.
If I need a million integers, a generator would fit in a lot less space than 5.7 Mbytes.
(Btw: What makes a file of a million or so integers C#)? I'd think it was either binary or ASCII/ISO8859/UTF8, but neither is language dependent!)
|
|
|
|
|
It's a DFA state machine lexer for the C# language, so it's pretty expansive.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
At work they have Windows Explorer set to automatically traverse to a place that I rarely, if ever, need to access. Why?!?
It kind of drove me crazy, because I'd open Windows Explorer then click multiple drives & folders to finally end up in my UserProfile , because 99% of the time I needed to be there to save some data.
Life-Changing Shortcut I don't think I'm overstating this.
Anyways, one of the best things I've done for myself in a long time was simply
1. Create a shortcut that opens File Explorer directly into my %UserProfile% directory -- that's c:\users\<your-user-name>\
2. Add the following Target: C:\windows\explorer.exe %userprofile%
3. Add a shortcut key Ctrl + Shift + Right (arrow) to immediately run the shortcut.
Here's a snapshot of what the shortcut looks like[^].
Now, any time I want File Explorer I just Ctrl+Shift+Right(arrow) and it opens up.
Shortcut Seems Faster
Also, I've discovered that for some reason this copy of File Explorer seems to open faster than if you click the one on the TaskBar
(Maybe because this one doesn't have to hit the network since it is going directly to a specific path???)
I've been using this for months now it has provided many benefits:
1. Less folder clicking
2. Less screaming, "Why am I automatically navigated to this @#&%@#!!! network folder!!"
3. I used to be bald and all my hair grew back.
4. Previously I was 5'2" and now I'm 6'4" tall
5. A bag of money fell out of the sky and landed next to me.
6. Various other benefits which are too good to mention here. 
|
|
|
|