developer. I love graphic novel, competitive videogames and cats. You can find me on the internet with the nickname MakhBeth - - Twitter GitHub LinkedIn
not just a pleasing document to read, picturing an ideal state for your code. It is a key document in a project’s life, describing how and why code should be written. Hugo Giraudel
v a r n a m e d = f u n c t i o n n a m e d ( ) { r e t u r n t r u e ; } ; or: v a r n a m e d = f u n c t i o n n a m e d ( ) { r e t u r n t r u e } ;
n a f i l e f a r f a r a w a y * / @ m i x i n v i s u a l l y - h i d d e n { b o r d e r : 0 ; c l i p : r e c t ( 0 0 0 0 ) ; h e i g h t : 1 p x ; w i d t h : 1 p x ; m a r g i n : - 1 p x ; o v e r f l o w : h i d d e n ; p a d d i n g : 0 ; p o s i t i o n : a b s o l u t e ; } / * s o m e w h e r e i n y o u r c o d e * / . p i p p o { @ i n c l u d e v i s u a l l y - h i d d e n ( ) ; } . p l u t o { @ i n c l u d e v i s u a l l y - h i d d e n ; }
u n n e c e s s a r y f u n c t i o n c a l l f u n c t i o n ( ) { v a r n a m e = g e t N a m e ( ) ; i f ( ! a r g u m e n t s . l e n g t h ) { r e t u r n f a l s e ; } t h i s . s e t F i r s t N a m e ( n a m e ) ; r e t u r n t r u e ; } / / g o o d f u n c t i o n ( ) { v a r n a m e ; i f ( ! a r g u m e n t s . l e n g t h ) { r e t u r n f a l s e ; } n a m e = g e t N a m e ( ) ; t h i s . s e t F i r s t N a m e ( n a m e ) ; r e t u r n t r u e ; }