Coder Social home page Coder Social logo

deprecate.js's Introduction

deprecate.js

What if we paused adding new javascript features, and start removing old ones?

Rationale

Javascript as a language is cluttered with swathes of features, syntax, and oddities that just don't need to exist any more. Like, some really strange shit.

They don't help us write good code (in fact they make writing good code a massive pain), we have to write plugins with hundreds of rules to prevent them being used, and we even give talks to warn people about the really weird stuff. Mainly we just laugh about the mistakes of the past, and drink to forget.

TC39 has done a fantastic job of shepherding in updates to the ECMAScript spec which make it a usable, modern language. And strict mode kinda goes some way to boxing off some cruft from the language (albeit in a slightly weird way).

But for real. Let's do a major version bump or something, let's kill off parts of the language we don't need any more, and let's be really brutal about it. No holds barred.

What this repo is

A place to make deprecation proposals for javascript features you hate; even if you think nobody will agree, vent it out, make a proposal. Somebody might be listening.

What this repo is not

No proposals for new features, new syntax, new standard libraries. There's a great place for that already. This repo is about what to take away, not what to add.

Submitting a proposal

Please include:

  1. A rationale explaining why the feature you hate should be universally hated by everyone, and why it should eventually be blasted into the sun.
  2. Some code examples showing code which will be allowed in the new utopian world, and code which will be universally shunned, exiled, and fail to compile.
  3. A link to an issue so people can discuss and tell you how awesome your idea is, or give you suggestions for how to be brutal and cut even more old horrible features.

That ought to do for now!

How will the javascript feature I hate actually be removed?

I'm not sure. Maybe if enough people are interested (yay democracy!) the powers that be will decide to introduce a sane deprecation system and start killing off some of these features.

When I say 'sane' I really mean something more like semver and less like "use strict". Please.

If anyone wants to flesh out how we could actually get to this point -- submit a PR with a proposal! As somebody with not a lot of insight into how TC39 works, I really just want a place to throw the proverbial spaghetti at the wall.

Existing proposals

Code of Conduct

Be excellent to each other.

deprecate.js's People

Stargazers

Chris J. Lee avatar joje avatar Jay Kan avatar Mitesh avatar Daniel Brain avatar

Watchers

James Cloos avatar Daniel Brain avatar  avatar Malcolm Blake avatar

deprecate.js's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.