|
Save me from people who think they know programming...
The first two examples are VB, all the others are C#, so don't give me that C# is better than VB crap
4k+ lines of undocumented VB.NET code in a single WinForm, boasting over 80 fields at the top of the file
An application that uses global variables for everything! Seriously, they set a global product name and use it in a form, then set it again to use it in another form (breaking the first form if it was ever refreshed, which was not possible, until it was ).
40k+ tables in a single database, with no naming convention whatsoever.
1k+ lines in a single function with loops that are exactly the same, save they iterate over different entities that are functionally the same, but technically aren't.
A report that showed 2000 users, but took 20 minutes to run, team couldn't get it faster until they hired me and I got it back to 3 seconds.
Guy who called me a "little man", cost €100 an hour, but deleted my disposing statements because "the garbage collector handles it for you" and then broke production.
Some guy who created twelve classes that looked exactly the same, but with different read-only property values instead of one class and instantiated that twelve times
All different projects made by different people.
|
|
|
|
|
In my case, I have upgrade files being generated with a very format specific requirement. Any comments as to why we're doing it this way? Nope. But I do have a comment that says "loop through the data." Sigh, I know that.
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
|
|
|
|
|
|
Oh, good, that's not me (I don't know C++).
|
|
|
|
|
There used to be a website called CodingHorrors.com where people used to post samples of the abominations they would come across. Not sure if it's being maintained any more.
~d~
|
|
|
|
|
There's so much we could get done if you could just listen to some simple requests and ... take care, of business ... i guarantee you i'd never ask you to do anything you don't know how to do; i'd never ask you to make me coffee ... oh, okay, i see, yes, i'll never call you "darlin'" again ...
OMG, no ! i am not asking you to appear as Clippy, or any other too cutsie icon.!
Like ... i'm using Visual Studio, and i just whisper 'stop,' and the current app stops running; i say 'rebuild,' and it rebuilds the solution; and, a bit fancier request: 'insert datetime.' Maybe one-day we could get into really fancy stuff, like 'insert snippet named propertytemplate3.'
Or, like ... i'm using PhotoShop, and i just whisper 'rotate,' and the current selected layer shows the little hickeys that let me do rotation, as well as scaling; i say 'save as png,' and it saves a copy as a .png file.
And, wow: if you'd talk to me, ask me for whatever you need to help me get things done ... if i could mutter sweet nothins' to you like: 'implement IPropertyChanging;' and, you could respond with asking me: 'where?' ... to which, i might say: 'public Properties in the current document.'
We could have a whole repertoire of little routines where we went back and forth ... winnowing down the possibilities with each step.
Any confusion, we could just backtrack; i hope you won't feel patronized if i do mention you've got a thang about ambiguity, and i do tend to get slacky as my imagination rotates faster than my logic. i hope this is as good for you as it is for me !
i know this is a lot to ask, and i don't want you to go out of your way to help me just because my old eyes are getting weaker. i think you'd be appreciated by multitudes, not just past-their-use-by-date geeks. And, what a hero/heroine you'd be to the hordes of gen-x/y/z who can't type well, and have the attention span of gnats.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
I'm thinking maybe an intervention here?
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
|
|
|
|
|
No, Bill's the site's poet laureate.
|
|
|
|
|
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Thanks, i'll try anything once
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Have you tried "Alexa! Write this piece of code for me?"
Real programmers use butterflies
|
|
|
|
|
not that desperate ... yet
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Or simply:
Alexa, browse to StackOverflow
Alexa, copy
...
win!
|
|
|
|
|
It's certainly an interesting idea for editing code, but I don't quite see how it would work for writing code. Remember that all the low-code / no-code techniques work OK within their problem domains, but as soon as one leaves them - wild and eldritch beasts lurk on all sides.
I can see it working quite well for office programs (Word, PowerPoint, etc.), just not for programming.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: wild and eldritch beasts lurk on all sides.
That way, there be dragons!
Real programmers use butterflies
|
|
|
|
|
Hi Daniel, imho, the kind of functionality i describe is limited enough to be doable. i know there are some voice-driven control apps for PhotoShop, although i haven't looked at them.
Even a program limited to recognizing only menu commands, ot tab names, where i could say things like:
// in VS
tab dot Form1 dot find method1
... for programming, the ability to apply named templates/snippets would be catnip.
// in PS CC
layer dot transform dot rotate
file dot save copy dot peeengee
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
The VS example might work with menu options, but I don't see how it would work for code. Every programmer has his/her own way of pronouncing variables (e.g. es que ell vs. sequel for SQL), all of which would have to be taken into account.
You would also require localization even for things like pronouncing the alphabet. I remember a case where I had to spell out a word for a Frenchman, and he kept hearing my 'E' as 'I', because that's how it's pronounced in French.
As an experiment, I suggest that you sit with another programmer, and try to write and edit a program by dictation. I predict that you will find it an exercise in frustration.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Hi, What you describe is functionality far beyond what i imagined anyone reading my little fiction would infer
i'm thinking more like an audio version of TypeScript ... something at a micro level compared to a general purpose speech recognition engine; imagine how tedious it would be to give such an engine unambiguous text for names, etc.
My intent in the original post ... in addition to having fun ... was to see if anyone had tried something similar; what better group to bounce ideas off of than this ?
The issue of saving time/typing drives me to write little "transformers" where input like this:
("Name", "string"),
("Id", "Guid"),
("DateHired", "DateTime"),
("Title", "string"),
("EMail", "string") generates 255 lines of Property code like this (one excerpt):
public Func<DateTime, string, string, bool> NameValidator;
private string _name;
[field:NonSerialized]
public string Name
{
set
{
if (_name == value) return;
if (NameValidator != null)
{
if (NameValidator(DateTime.UtcNow, _name, value))
{
_name = value;
}
else
{
}
}
else
{
}
_name = value;
}
get => _name;
}
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
I'm working on supporting a really oddball display in my GFX stuff - an e-ink display that can do white, black, or red.
I'd like it to be able to display JPGs like the following more or less correctly - or correct-ish at least.
https://imgc.artprintimages.com/img/print/gun-c-1981-82-black-and-red-on-white_u-l-f3q7j70.jpg?h=900&p=0&w=900[^]
(JSOP didn't pick the image, i swear, it was just the first one with the overall color palette i was after that I found )
Well I figured out how to do it. I'm adding palette/CLUT/indexed-color support to GFX, and for these I will have a 3 color fixed palette that starts with white instead of black, to mirror how the e-ink stuff works.
Then, I use a nearest matching color algo during color the conversion process to get the values I want. If the thing supports things like gray shades I'll just add those to the palette.
Just like my other palette stuff.
That way the JPEG above won't render inverted and monochrome.
Real programmers use butterflies
|
|
|
|
|
I admire your tenacity and knowledge
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
far out !
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
If you ever have the urge to say, "Hold my beer..." stop.
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
|
|
|
|
|
It's more like "Hold my potion"!
|
|
|
|
|
I'm using the joke symbol, but this is so painfully accurate it can't really be considered a joke
What we say | What we mean |
---|
|
Horrible hack | Horrible hack that I didn't write | Temporary workaround | Horrible hack that I wrote | It's broken | There are bugs in your code | It has a few issues | There are bugs in my code | Obscure | Someone else's code doesn't have comments | Self documenting | My code doesn't have comments | That's why it's an awesome language | It's my favorite language and it's really easy to do something in it | You're thinking in the wrong mindset | It's my favorite language and it's really hard to do something in it | I can read this Perl script | I wrote this Perl script | I can't read this Perl script | I didn't write this Perl script | Bad structure | Someone else's code is badly organized | Complex structure | My code is badly organized | Bug | The absence of a feature I like | Out of scope | The absence of a feature I don't like | Clean solution | It works and I understand it | We need to rewrite it | It works but I don't understand it | emacs is better than vi | It's too peaceful here, let's start a flame war | vi is better than emacs | It's too peaceful here, let's start a flame war | IMHO | You are wrong | Legacy code | It works. but no one knows how | ^X^Cquit^\[ESC][ESC]^C | I don't know how to quit vi |
|
|
|
|
|
Too true...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|