Giter Club home page Giter Club logo

nice.js's Introduction

Nice.js extends JS syntax

You create less code. Code looks better

I worked last years with python language. And when I tried to switch to node.js and create both backed and frontend on JavaScript only - I found that JS lacks some cool features from other part of the World.

In this project I implement compiler from Nice.js syntax to plain JavaScript (now on python, but in near future - on JS). I believe that you are using Underscore.js to simplify your coding life. I also use it, and in resulting code you will see _() syntax.

Resulting code is readable like your original code on Nice.js. We transform only short forms of code to full form of plain JS.

And the greatest part of this project that you can use classes like in other OOP languages.


Syntax

You can find syntax description in folder tests.

This is part of them:

  • classes - class MyClass extends BaseClass {...}
  • conditions - if (10 not in list) or if (a == b or c and d)
  • loops - for (x, y in obj) and [year for year in years if year <= 30]
  • etc

Thank you for interest to this project. It's fun. And it's helpful. I am trying to change our development life to implement our amazing ideas faster and easier.

Feel free to contact me, add new propositions in comments to files or by creating issues. It will be happy to review your pull requests and discuss with you.

-- Anton Danilchenko

nice.js's People

Contributors

1st avatar

Watchers

James Cloos avatar Andy Eastwood avatar  avatar

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.