Skip to content

u/JaggerPaw

In this archive from May 2011 to Oct 2022

2
posts
42
comments
1
media
32
score

Top posts

Top comments

I've seen the power of annotations/attributes

Annotations are the Java solution to needing mixins. Pure inheritance, even with interfaces, is brittle and lacks expressiveness for any non-trivial application. Java picked out a PARC project and everyone nodded their heads because it was backward compatible and it came from PARC; it must be great right?

@Spring is both the proof and the poster child for what is to come. In Java, depending on the libraries you are using, you may be faced with the unenviable position of having to worry about annotations added somewhere in the codebase that has an effect on an application in part or in whole. Who knows? You have to read the whole thing to find out where your exceptions are going...is it captured by some annotation on the stack, or passed by to some class that has a @RestControllerAdvice annotation? Not to mention the effect it has on weakening your testing methodology (in execution time, complexity, and reliability) for testing your actual application. How do you setup for @Component? Have to read that code to understand the implications. Do not put user code generation in the runtime.

Integrating an additional problemspace on complex software is yet another step in the slow decline. Aspects were a cute short-term solution to implement runtime code generation that has now turned into runtime composition (or concatenation) and has had the same result that Attributes will.

14 points

So basically all the other languages I researched do not provide arguments within back traces.

Uh, that kind of suggests that providing arguments at all is a mistake

Talk about cargo cult mentality. "I guess it's wrong because everyone else says so". Later there's the "sometimes the stack traces are sent to 3rd parties"! God forbid you're responsible for your own communications to 3rd parties. SMH

I think it's a good idea to redact params, but the quality of the comments is disheartening, as usual.

12 points

I would agree that PHP started Perl's decline, as a simpler approach to scripting that new developers could easily parse. I don't think PHP was solely responsible for the decline as there wasn't a great deal of overlap for some time, amid the mish-mash of web backends that were competing (which PHP handily won for a decade). By 2008ish, companies had been migrating to PHP/Python/Ruby but by 2012 the rise of node.js among the sea of Javascript frameworks, is what started to eat most of the scripting world. Perl was something you hired for to maintain projects, not to build them fairly quickly in the late 00's. Perl holdouts faced a world where Perl was not a greenfield choice from (at least) 2008 onward, in California, from my experience. Perl 5 (2012) did nothing to slow the decline and similarly Perl 6 (2015) did not address the fundamental philosophical and design problems.

Perl's decline is directly correlated to the Perl philosophy of "there's more than one way to do it" to the point that it is often, very difficult to parse at a glance, without a complete grasp of the language. I would say that PHP has also been steered this way, to my chagrin.

10 points

Basically, people who hate goto are wrong.

Nobody hates goto and you know better. Repeating juvenile euphemisms is not constructive. Goto is a poor choice for flow control because of the limited utility and necessarily convoluted patterns that emerge from the use of it. There is no question about "right" or "wrong" here, SMH

8 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.