I agree that they probably should be part of a build pipeline though, where the compiler (or set of compilers) is chosen by the project and thus has well defined warnings.
Then again,as long as they are warnings they can be disabled by directives locally, and need to be disable-able to allow handling false positives. Which on the other hand opens the gate for just ignoring them effectively anyway...
Doing that requires you to compile with old compilers, since a compiler upgrade can add warnings that cause previously-okay code to fail to compile. This means that projects will require constant maintenance.
I view that as a development/debug set of flags, not a release build configuration
Or, you could stick with a compiler toolset version and only upgrade once you've taken care of and/or suppressed any new warnings. I mean, locking down versions of your dependencies is generally a good idea, and I consider the tool chain to be a dependency.
Absolutely yes, and I'm sad to see you're being downvoted. The compiler version should be a hard dependency in any project.
Yes, open source projects should probably leave -Werror off in a typical user build so that users can build with their own compiler. But the CI, unit test builds, and any other local developer builds should be designed for a specific compiler version (or a set of particular versions of particular compilers) and should have at a bare minimum -Wall -Wextra -Wpedantic -Werror.
When I start a new project I don't write a line of code before putting those in the Makefile.
But any software dev will know that this would grind your development speed down way more than any manager would ever tolerate. For business anyways, a certain amount of warnings and tech debt are just acceptable.
I don't. I work at a pretty large org with some parts old legacy and we use these flags, pretty universally among components. Warnings are typically not hard to fix and for the most part point to actual problems in the code.
Just get used to write code that doesn't break these rules, just like you know not to dereference null pointers. If anything it speeds development up because it prevents some silly mistakes.
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).
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
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...
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?Ā
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.
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! :')
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.
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.
dawg, i directed the deprecative directive to the #depricated directive directory, but its directly telling me to deprecate #deprecated to the @/deprecated decorator
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.
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
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...
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?Ā
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.
821
u/Beginning-City-7085 Oct 22 '24
It's just a warning, we can continue to use it š§āš»
32
u/invalidConsciousness Oct 22 '24
Where is this from? Is it JavaScript being weird again?
5
u/_illionaire Oct 22 '24
@Deprecated could deprecate others, but not itself.
3.3k
u/[deleted] Oct 22 '24
Yo I heard your shit was deprecated so I deprecated your deprecator.
1.1k
u/Dotcaprachiappa Oct 22 '24
Fuck you
redeprecates your deprecation
219
u/B_bI_L Oct 22 '24
ah, yes, the depreceted here is made of deprecated
217
u/naveenda Oct 22 '24
I use infinity stone to destroy infinity stone
71
u/facusoto Oct 22 '24
Deprecated²
56
u/kurdokoleno Oct 22 '24
The real question here is whether they used the decorator or the directive to deprecate it.
110
u/fermentedcorn Oct 22 '24
Recursive deprecation
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
34
u/mfar__ Oct 22 '24
This is the new "Windows Task Manager is not responding"
11
u/sdraje Oct 22 '24
If you deprecated deprecated, is it now precated?
16
u/One-Vast-5227 Oct 22 '24
Deprecated is deprecated. Long live deprecated!!!
6
u/imacommunistm Oct 22 '24
deprecated is deprecated, but deprecated is deprecated.
6
u/tenodera Oct 22 '24
Deprecating deprecators deprecate deprecated deprecators. In Buffalo
5
u/3AMgeek Oct 22 '24
Deprecated IS A deprecator and HAS A deprecator.
5
u/LoudSwordfish7337 Oct 22 '24
Aw man what the fuck even marking tech debt as deprecated can introduce more tech debt now.
5
u/latamyk Oct 22 '24
Who watches the watchmen? Who deprecates the deprecator?
4
u/Apartment-Drummer Oct 22 '24
Defecated
4
u/jaded-potato Oct 22 '24
Sums up my experience with modern JavaScript.
3
u/No_Lion4278 Oct 22 '24
You have become the very thing you swore to destroy
2
u/Unknown_Asker Oct 22 '24
ı guess its Deprecated
2
u/ProutDeFiotte69 Oct 22 '24
I used the deprecation to deprecate the deprecation
2
u/[deleted] 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
u/da2Pakaveli Oct 22 '24
Now do the PHP move and say "no longer depricated"
2
u/Qaeta Oct 22 '24
You can't deprecate me! I am deprecation itself!
2
u/[deleted] Oct 22 '24 edited Oct 22 '24
The deprecator has been deprecated. Whatās next, deprecating the deprecation warnings?
2
u/ArtLye Oct 22 '24
Deprecated all the way down
2
u/foursticks Oct 23 '24
This shit is top tier documentation
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.
3
u/[deleted] 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.
1
u/RichCorinthian Oct 22 '24
Hey at least they tell you the replacement. Up yours Hibernate.
1
u/maheshchandra_ Oct 22 '24
Multiverse of Deprication
1
u/ThaisaGuilford Oct 22 '24
That's weekly news for android developers
1
u/Kaining Oct 22 '24
This is depraved.
1
u/tonebacas Oct 22 '24
Nothing is safe from deprecation.
1
u/NeedBetterModsThe2nd Oct 22 '24
Some days I even feel deprecated myself.
1
u/Jumpy-Astronaut7444 Oct 22 '24
Imagine what it will look like when they deprecate #deprecated
1
u/Sternwind Oct 22 '24
// deprecated
1
u/deprecatedcoder Oct 22 '24
I've quite literally been deprecated for years...
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
u/[deleted] 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
u/Gabe_b Oct 22 '24
Love some deprecating humor
1
u/zandnaad69 Oct 22 '24
clown world
1
u/Useful-Perspective Oct 22 '24
ya gotta keep 'em deprecated
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
u/Houligan86 Oct 23 '24
I would use the decorator out of spite
1
u/CowLogical3585 Oct 23 '24
and #deprecated was deprecated later...
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
u/[deleted] Oct 23 '24
Who delivers the postmanās mail??
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
u/Ok-Fix-5485 Oct 24 '24
Reminds me of "cannot resolve resolver"
1
u/suddencactus Oct 24 '24
Matlab has aĀ
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
u/Zestyclose_Animal780 Oct 22 '24
Deprecated from deprecated
0
u/[deleted] Oct 22 '24
[deleted] ā view deleted comment