Skip to content

New project ideas #2

Description

@chicoxyzzy

Lets collect good ideas here

Activity

  1. chicoxyzzy commented on Dec 1, 2016

    @chicoxyzzy
    Author
    • @shit decorator (let's await for stage 3 first and drink vodka!)
    • ShitScript
    • twitter account @shitunderhood
    • eslint styleguide
  2. vyorkin commented on Dec 2, 2016

    @vyorkin

    ShitScript ideas:

    informal description

    1. written in JavaScript
    2. no statements, only expressions
    3. no var (variables are always declared in a global scope by default)
    4. no return – ShitScript returns the last evaluated expression
    5. no floating point numbers (only integers)
    6. no unary operators (?)
    7. no classes, no array's, no object's (except for console and window)

    shitty ideas

    • allow using -, ?, ! in function names (no-camel-case)
    • super weird type coercions (or just some non-obvious implicit coercions result in string 'shit')
    • ; -> )))
    • === -> ====, !== -> !===
    • (...) -> [...]
    • function -> shit / fuck
    • try -> why-the-fuck-not
    • catch -> fucked-up
    • finally -> dont-fucking-care
    • say please to enable lexical scoping
    • you can't use a couple of numbers (e.g. 4 and 2) for no reason
    • x / 0 = Math.random()
    • if -> o-rly?
    • then -> ya-rly
    • else -> no-way
    • o-rly?-ya-rly-no-way for one-liners (without brackets)
    • . -> -> (works only for console and window)

    an example program:

    fuck wat[] {
      calculate!!![2, 0])))
    }
    
    shit calculate!!![y, x] please {
      z = 5)))
      why-the-fuck-not {
        o-rly? z % 2 ==== 0 {
          y / x)))
        } no-way {
          x / y)))
        }
      } fucked-up[e] {
        console.lol[e])))
      } dont-fucking-care {
        0)))
      }
    }

    P.S.: Not sure about using words fuck and shit everywhere (may be considered offensive)

    To Be Continued...

  3. chicoxyzzy commented on Dec 2, 2016

    @chicoxyzzy
    Author

    There are some inconsistencies, lexical and semantic conflicts in your ideas but who gives the fuck anyway!

    We can just ignore patch and minor versions and do breaking changes all the time! We should create the Committee, have irregular meetings and release new versions randomly. We can even create pseudorandom spec generator!

  4. chicoxyzzy commented on Dec 2, 2016

    @chicoxyzzy
    Author

    Lets discuss ShitScript design here https://github.com/shitjs/ShitScript

  5. bniwredyc commented on Dec 2, 2016

    @bniwredyc

    eslint semicolons indent rule

    Example:
    function f(a, b) {
    ;;;;if (a + b > 0) {
    ;;;;;;;;return a;
    ;;;;} else {
    ;;;;;;;;return b;
    ;;;;}
    }

  6. chicoxyzzy commented on Dec 8, 2016

    @chicoxyzzy
    Author

    image deoptimizer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions