Here is some of the technologies I've used to craft code:
Farzan Tinati
License: Creative Commons Zero v1.0 Universal
You don't need any external libraries to use localstorage
https://github.com/pharzan/InstaTinder/blob/master/instatinder.js#L5
You can find out whether a feature you want to use is supported by browsers by checking caniuse.com
https://github.com/pharzan/InstaTinder/blob/master/instatinder.js#L10
You could have directly used instapost, instead of inserting it into main
https://github.com/pharzan/InstaTinder/blob/master/instatinder.js#L31
You should change the method to" post"
https://github.com/pharzan/InstaTinder/blob/master/instatinder.js#L65
"if" condition already has a return in it, therefore "else" is useless. If the 'if' condition does not match, it will continue to execute whatever is in else. If the 'if' condition matches, then it will execute the if's body and will return from there, without looking at the rest of the function.
https://github.com/pharzan/InstaTinder/blob/master/instatinder.js#L163
Crowded lines such as this hides the possible errors or unnecessary codes such as
vm.counter(vm.counter())
https://github.com/pharzan/InstaTinder/blob/master/instatinder.js#L196
Route is enough here. Mount is not used with route. When the page is loaded, m.route decides which component to be called
https://github.com/pharzan/InstaTinder/blob/master/instatinder.js#L86
You could have a userservice such as
userService = {
email: m.prop(''),
password: m.prop('')
...
}
Then share it between components. Like
// form
m('input', { value: userService.email(), onchange: m.withAttr('value', userService.email)
// some other component
var user = userService.email()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.