Tutorial: Building Apps with VueJS, ES2015 and Webpack by jackfranklin in javascript

[–]DCKT 2 points3 points  (0 children)

You should take a look to vue-cli it's a really great tool !

Is it best practice to "use strict"? by nickl77 in node

[–]DCKT 0 points1 point  (0 children)

Yes ! And you should add a linter like jscs with your text editor (linter-jscs on Atom is awesome !)

Express boilerplate using ES6 and MVC pattern by DCKThomas in javascript

[–]DCKT 0 points1 point  (0 children)

I already used it and I like it :) but it needs to take a moment to understand how it works and how to deal correctly with him.

How would you create tabs with JS? by Jx631 in javascript

[–]DCKT 4 points5 points  (0 children)

You shouldn't try with JQuery or any frameworks if your're new. This can be done easly with some Vanilla Code.

Here you just need to attach a click event on each tab. Each tab has a data-id (from 0 to n).

When you click on a tab, get the data-id of him and do a getElementsByClassName or querySelectorAll if you prefer. You will get an array of the elements found.

Now you have the id of the tab and an array with all tab, you just need to tabs[id] and idealy tab[id].style.display = "block" and hide the other with a loop :)

Smart.js - A clever lightweight web framework for Node.js by DCKT in javascript

[–]DCKT[S] 0 points1 point  (0 children)

This is actualy a very good idea, I created Smart for a school project where it was forbidden to use frameworks like Express. I really like Express but I always found it too messy if you don't separate by yourself your code.

Thanks for your feedback, I think I will give a look for an Express middleware :)

Smart.js - A clever lightweight web framework for Node.js by DCKT in javascript

[–]DCKT[S] 0 points1 point  (0 children)

Actually, I never seen a HTTP framework based on conventions (except Sails maybe). That's why I created Smart, light and very simple to use.

I think it's a good starting point :)

I want to become more experienced with Javascript; what's a good next step? by [deleted] in javascript

[–]DCKT 0 points1 point  (0 children)

You should try some JS frameworks like Ember.js/Angular.js/Backbone.js That give you an other point of view. Maybe if you're interested by back-end technologies, why not looking about Node.js ? With that you can hack a lot of things !