Ega’s Journal — Week 11

Kevin Ega Pratama
Inspire Crawler
Published in
3 min readMay 8, 2016

This is my 11th post for the journal.

Refactoring

Refactoring CSS file, what i did was removing duplicate, fixing typo, and also removing unused declaration, extra spaces/unused spaces.

The code was a mess (duplicate declaration, typo, unused declaration, empty declaration) because we edit the file together and nobody know what declaration used by other, and the css were cascading each other if more than one style specified for an HTML element. the css will “cascade” following this priority:

  1. Inline style (inside an HTML element)
  2. External and internal style sheets (in the head section)
  3. Browser default
TYPO

Apidocjs

After that i learn to use apidocjs the first thing to do is install nodejs! Download the installer from their website https://nodejs.org/ then install, click next and accept when asked. After that open your command window and try entering “npm” without symbols to check if nodejs is succesfuly installed. then to use apidocjs you must install it via npm. To do just that on your command window type “npm install apidoc -g” then press enter now you have apidoc module for nodejs.

apidoc will automatically generate a documentation HTML from the documentation block created on your file(in this case javascript file). For the test i created a javascript file named test.js inside it are simple methods that i documented using documentation block.

and a history file _apidoc.js to store history of documentation (the file contain documentation block only). this file used to help you manage version control.

then to generate the html file we need to open command window on the files directory and type “apidoc” then enter, now you successfully generated a documentation for your methods.

Result:

Create Login and Register (Authentication)

These past days, i have tried to create Login and Register (authentication) in laravel. The pages are done (with input validation) but the authentication itself isn’t done yet. i’ve watch several videos about authentication in laravel and currently watching a tutorial while coding laravel scaffolding.

--

--