Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

NihilCredo posted:

Spotted yesterday in the jungle of old code:

code:
public sub CreateSeparateDocuments(someArgs)
    for i = 1 to 2
        select case i
            case 1
                CreateDocument(someArgs, someOption:=False)
            case 2
                CreateDocument(someArgs, someOption:=True)
        end select
    next
end sub

High chance this is from a greybeard who accrued their spite emitting time-sliced cooperative crap on embedded microcontrollers.

Adbot
ADBOT LOVES YOU

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Ryan Florence posted:

This isn't a rigorous statistic, but I'm pretty sure these are 99% of the issues on Github.
:rolleyes:

Save yer self-preening quips for the conference stages, Ryan.

piratepilates posted:

I mean it's an interesting idea and I see why they would like to do it, but it feels like boasting that the amount of negative feedback about your project had gone down after you removed the feedback form from your site.

Exactly.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Dylan16807 posted:

How do you do tag-based file navigation?

M-. tag RET

:devil:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Job security.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

my girlfriend is Legos posted:

Now, I'm very new to developing software in a professional capacity, but is it unreasonable of me to think that this is completely bonkers? Is this a common way of doing things?

Yes, it is bonkers. Yes, bonkers nonsense is common.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Suspicious Dish posted:

var number = 3..minos(1, 5);

... perfect!

-3..minos(-5, -1);

:v:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Turn screen off to reveal nemesis.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
If you ever have to document an iterator, replace one instance of the word with "irritator."

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Finally, a service that will solve my ever-present nagging requirement to, uh, onboard external developers into my ecosystem with a single click!

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
What kind of students do you have, and do you recommend that they adopt your coding style?

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Dumb Lowtax posted:

The library is a wrapper for low level WebGL calls so that computer graphics students can abstract out certain things and just focus on rotating, translating, and scaling 3D shapes. Usually their coding style is not like that, but then again, neither is mine when I'm actually designing a scene or prototyping something new as opposed to compressing wrapper code that I know pretty well.

So there's no real consistency in your and their coding styles?

I worry that some of your students will find themselves trying to justify your formatting techniques in job interviews that'll require them to share code in a team (i.e. pretty much all job interviews.)

Also:

Dumb Lowtax posted:

low level WebGL calls
:haw:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
The Z axis is the vector of the bullet that blows my brains out every time this subject arises. :ghost:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Ah, but maybe I put the gun under my chin! Only my quaternion knows the (relative) truth. :downsgun:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
If you meet a process consultant on the road, kill them.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
I'm gonna compile Emacs into WebAss. :spergin:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

xtal posted:

What Lisp is there that has nil and evaluates empty lists to false?

Boy have I got a text editor for you.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Bongo Bill posted:

Is there a shell that does have good syntax?

emacs :devil:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
I'm a bit overflowe

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Pollyanna posted:

I’m garbage.

That means you're full of characters!

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Have they given any justification for refusing to fix this?

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Falcorum posted:

He didn't consider it an issue. He got overruled in the end and it's fixed now but still :wtc:

drat. That boy needs to learn some righteous impatience.

Reminds me when I was working on mid-90s games and a co-worker swore blind that their menu screens implementation - nothing fancy, just your bog standard simple full-screen non-animated 2D start, load, save, & options - was physically incapable of running faster than 4 FPS. Despite our sloppy vintage software rendering 3D engine (plus full game & audio systems) running at ~30 FPS on the same dev hardware, having the mouse cursor lag-teleport when the game was paused and only his UI code ran was simply the best that could be done. :psypop:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Che Delilas posted:

The only warning a PHP ide or linter should generate is "Warning: This is PHP"

edit: :goonsay:

(fset 'php-mode 'kill-emacs)

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Ruggan posted:

If it’ll pass a linter, it's insufficiently ~elegant~.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Arsenic Lupin posted:

I think I just threw up a little in my mouth.

Quick, upload it to npm while it's still warm.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
If you just learnt it, flaunt it all over the loving project base.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Notice to all citizens:
Due to a regretful data migration error, all postal items will now and henceforth be delivered to 0 null void.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Beef posted:

Meanwhile, our management chain is telling us not to bother with any other language but Python, because that's what the clients are asking. (context: cpu architecture R&D)

Whoa.

I think you're supposed to counter with node.js now. Something something closer to the metal.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Ola posted:

Well, it's either Just Haskell, or Nothing.

:lol: Totally stealing this!

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
So much UI bullshit would vanish immediately if blind/impaired usability was truly cared about. :smith:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Jaded Burnout posted:

Turns out the real coding horror was our own egos.

Ah, yes. Macro-dose salvia before every coding session, got it.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Ola posted:

...and they never heard from him again.

My God, it's full of *s!

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

champagne posting posted:

How many unique pointers could you possibly need or want?

This is my pointer. There are many like it, but this one is mine.


e: That's what I like about C++. My computer gets faster, but my compiles still take an age.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
functools.partial is another method of early-binding default arguments in Python.

I get a regular dry chuckle from Clojure not supporting closures.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

ToxicFrog posted:

It...absolutely does though? :confused:

Whoa, cool! It's been an age since I've used it, and I'd been told Atoms were the preferred pattern. Legit thank you for the correction.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

ToxicFrog posted:

Atoms are pretty handy, but they serve a completely different purpose -- mutable state that can be threadsafely written to. I'm honestly having trouble imagining a situation where "you should use an [atom/closure] instead of a [closure/atom]" makes sense as a statement, which is probably a failure of imagination on my part.

That could be my memory/understanding being flakey (it was a quick contract job a number of years back) or, somewhat likely with in hindsight, a wart resulting from that system's absolute batshit domain model representation and update transaction processing. Some data was submitted via event channels, downstream processing would sometimes be signalled via atoms, and so on.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

repiv posted:

note: the hash function was strlen

:psypop:

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen

Tei posted:

:-O

what the gently caress. I mean... null in databases is probably similar, but what the gently caress

It's NaN-defined behaviour.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Smart pointer often smarter than programmer.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
I'd describe that as "finally made decisive progress on the much overdue next generation system design. Thank you, prototype, your tenure is respected. Now, off to the vivisection and refactoring plant you go."

Adbot
ADBOT LOVES YOU

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
A significant non-zero percentage of functions/methods coded in the 90s started with the wonderfully viral:
code:
if (!pDeref || !pMe || !pToDie) {
    return NULL;
}

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply