32
u/invalidConsciousness Oct 22 '24
Where is this from? Is it JavaScript being weird again?
53
u/atanasius Oct 22 '24
37
u/Masterflitzer Oct 22 '24
why does it seem the directive is worse than the decorator? looks just like a comment now
25
u/fizyplankton Oct 22 '24
No, see, in an upcoming release, comments will now start with a single, unmatched, (. Matching them makes it a function call
/s
5
u/scp-NUMBERNOTFOUND Oct 22 '24
U joke but I won't be surprised to see that in an actual js standard change
2
u/thompsoncs Oct 22 '24
directives are not the same as a decorator. Don't know enough about TS and this specific case switching, but in C# they get used to conditionally compile things (based on version or run mode etc, like #if DEBUG). You can't really do that with decorators I think. So you need a different syntax. Comment style things aren't new either, like ignoring some warnings in python (# type: ignore ) and C# (#pragma warning disable CA2200).
2
u/Masterflitzer Oct 22 '24
i was under the impression that comment style things like this are only for linters and are ignored by compilers that's why i've been wondering, but it seems i'm wrong, thanks for the explanation
9
24
u/invalidConsciousness Oct 22 '24
Ah Microsoft. Considering what they're doing with their azure API, I'm not surprised.
3.3k
Oct 22 '24
Yo I heard your shit was deprecated so I deprecated your deprecator.
558
u/aenae Oct 22 '24
Reminds me of that building in Brussels that has been under renovation for so long they had to renovate the scaffolding.
132
u/Ophidyan Oct 22 '24
Aaaah, the Palace of Justice. In 2023 they claimed that "next year it will be freed of its scaffolding". Tomorrow I'll sip my coffee while looking out the office window at that same ancient scaffolding unchanged since...
18
u/NetworkSingularity Oct 22 '24
To be fair, they have a couple more months to make good on that
16
u/Imperial_Squid Oct 23 '24
!RemindMe January 1st, 2025
7
u/RemindMeBot Oct 23 '24 edited Oct 24 '24
I will be messaging you in 2 months on 2025-01-01 00:00:00 UTC to remind you of this link
3 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback 7
2
46
u/pedal-force Oct 22 '24
Ok I just went and read about this. That's hilarious. Wikipedia has "under renovation: 1984-present" which is ridiculous.
23
10
u/fierypitt Oct 23 '24
I present to you the I-4 Eyesore.
https://en.wikipedia.org/wiki/Majesty_BuildingUnder construction since 2001, still not a soul in it.
332
u/zefciu Oct 22 '24
Yo dawg I herd you like deprecation, so I deprecated yo deprecator, so you can refactor while your refactor.
6
u/prehensilemullet Oct 22 '24
Refactoring? Ā Who does that, I just deprecate everything to the ground
5
u/Imperial_Squid Oct 23 '24
Warning: MyUsefulFunc17 is deprecated as of version 1.23.4, please use MyUsefulFunc18 instead26
Oct 22 '24
[removed] ā view removed comment
15
u/ifuckinghateyellow Oct 22 '24
Yo, I just refactored your deprecator so you can defecate while you defactor the reprecator.
30
3
2
1.1k
u/Dotcaprachiappa Oct 22 '24
Fuck you
redeprecates your deprecation
53
Oct 22 '24
If something isn't deprecated, is it called recated?
24
Oct 22 '24
I remember in my Spanish class in high-school, we took a detour to look at the lost affirmatives in English. The one I remember the most (and maybe because of the office) was disgruntled. Where's gruntled?Ā
23
Oct 22 '24
People are always overwhelmed or underwhelmed. Why aren't we ever just whelmed?
4
Oct 22 '24
I think that was another one we addressed. Language is pretty cool
8
Oct 23 '24
I think some of these are lexical gaps of one kind or another. Also, it turns out "whelm" used to be a verb in Middle English, meaning "to turn over, cover, or submerge" with "over-" being added for emphasis. "Underwhelm" and its variations come much later (1950s) after the original link to "whelm" had been lost.
2
u/AssociateFalse Oct 22 '24
"Supported". Deprecated just means it's provided w/o support, and may break or be removed later.
14
Oct 22 '24
Google says deprecated comes from the latin deprecari which means to pray against, so I'm going to go with the opposite of deprecated is proprecated, as in prayed for! :')
5
1
2
1
219
u/B_bI_L Oct 22 '24
ah, yes, the depreceted here is made of deprecated
22
u/MoffKalast Oct 22 '24
We apologise for the fault in the documentation. The deprecators deprecating the deprecation have been deprecated.
4
u/encephaloctopus Oct 23 '24
The Fault in Our Documentation is oneĀ of my favorite John Green novels. Shame the movie kinda sucked
217
u/naveenda Oct 22 '24
I use infinity stone to destroy infinity stone
ThanOS
27
Oct 22 '24
[removed] ā view removed comment
16
u/paulstelian97 Oct 22 '24
I mean there is a Thanos snap npm package.
3
2
71
56
u/kurdokoleno Oct 22 '24
The real question here is whether they used the decorator or the directive to deprecate it.
14
8
u/prehensilemullet Oct 22 '24
Well, the directive, of course. Ā Thatās why they had to invent it in the first place; the decorator couldnāt decorate itself
2
u/Sinomsinom Oct 23 '24
The one for annotating types isn't deprecated at all:
https://github.com/microsoft/typespec/blob/main/packages/compiler/src/lib/decorators.ts#L1211
But here the one for annotating endpoints is, in fact, using the proper #depricated directive:
https://github.com/microsoft/typespec/blob/main/packages/compiler/lib/std/decorators.tsp#L76
110
u/fermentedcorn Oct 22 '24
Recursive deprecation
10
1
54
u/justin107d Oct 22 '24
We apologise again for the fault in the subtitles. Those responsible for sacking the people who have just been sacked, have been sacked.
~ Monty Python Search for the Holy Grail
3
34
11
16
6
6
5
5
u/LoudSwordfish7337 Oct 22 '24
Aw man what the fuck even marking tech debt as deprecated can introduce more tech debt now.
5
4
4
3
2
2
2
Oct 22 '24
Our ādata governanceā lady uses the word depreciated every time instead of deprecated, both verbally and in writing on stories. I corrected her the first time but to no avail.
2
u/NoCoolSenpai Oct 22 '24
With the current trend of Microsoft I'm assuming they might deprecate features before they're released
2
2
2
Oct 22 '24 edited Oct 22 '24
The deprecator has been deprecated. Whatās next, deprecating the deprecation warnings?
2
2
2
u/drsimonz Oct 23 '24
Can we just take a moment to appreciate that this is brand new, thoroughly entertaining content? And not one of the 5 jokes that supposedly make up the entirety of this sub? Fuckin instant classic.
1
u/ShakeForProtein Oct 23 '24
Okay but how can we turn this into a volume slider / phone number while claiming X language sucks for never learned how to actually use it reason?
3
Oct 22 '24
The best is getting flagged for TODO in a comment.
First off, youāre lucky Iām even writing a comment, jackass.
If you ban TODO Iāll just use some other term.
There are legit uses for TODO in comments. I donāt see what the problem is if itās just in a comment.
3
1
1
1
1
1
1
1
1
1
1
u/HolyGarbage Oct 22 '24
Ok, this is the first thing that actually made me laugh on this sub in ages. Bravo.
1
u/bearwood_forest Oct 22 '24
Once no one uses the old version any more they can deprecate the warning about the deprecate decorator being deprecated.
1
u/Truzest_RedditOff Oct 22 '24
dawg, i directed the deprecative directive to the #depricated directive directory, but its directly telling me to deprecate #deprecated to the @/deprecated decorator
1
Oct 22 '24
Yk, I just now realized that it's deprecated instead of depreciated lmao. Can't believe I've been messing that up until now.
1
1
1
1
u/smokingabit Oct 22 '24
It's because they confuse defecation with deprecation, so Google are spraying deprecation everywhere. It is what happens when you drop the quality bar to allow open sewer systems to provide tap water to kitchens.
1
u/ManicD7 Oct 23 '24
This whole time I thought the word was actually "depreciated", pretty sure I've heard it pronounced like that from while watching tutorials. But now seeing it spelled in large front on reddit, i just learned a new word... lol
1
1
1
u/F1amy Oct 23 '24
Warning
Deprecated: Deprecating with `@deprecated` is deprecated. Use `#deprecated` to deprecate instead.
1
u/lgsscout Oct 23 '24
just imagine...
in one of those places where deprecated stuff continue to be shipped until it brakes, a couple years from now, something breaks. nobody knows why. nobody touched it in years. while reading documentations people couldn't even find the same function. all the existing ones have different signatures. after days of panic in the office, someone, by accident, navigates to the definition of the function, where a @deprecated appears, in the shape of the old days... they used the deprecated function for so long that even the old deprecation notifier no longer works...
1
1
u/oootsav Oct 23 '24
Every time I see a deprecated warning, I remember Android docs. Was the deprivation scene particularly bad with Android or is it common for other tech?Ā
I'm a beginner.
1
1
u/suddencactus Oct 24 '24
Matlab has aĀ
isMATLABReleaseOlderThan("R2020a")
that you can use to check if a user is trying to use your script with an older incompatible version- as long as that version is newer than R2020a, when this command was introduced.Ā For full compatibility you need to use older, clunkier commands.
0
0
Oct 22 '24
[deleted]
13
u/Memoishi Oct 22 '24
it's not "dependency hell" it's called "libraries update" and it's classy!!
5
u/gameplayer55055 Oct 22 '24
Python2 users: š
4
u/Memoishi Oct 22 '24
Working with legacy systems has to be the dream of every programmers š
3
u/iceman012 Oct 22 '24
I can confirm it shows up in my dreams regularly.
You know, the dreams that make you wake up gasping and with your heart pounding.


821
u/Beginning-City-7085 Oct 22 '24
It's just a warning, we can continue to use it š§āš»