Design and Best Practice

Code Lint – What is it? What can help?

Code Lint – What is it? What can help?

So what exactly is code lint?  I’m sure we’ve all heard of a linter but how many out there have actually taken the time to sit down and use one?  What are they used for?  Well, getting rid of code lint, of course!  A linter is defined by Wikipedia as:

A linter or lint refers to tools that analyze source code to flag programming errors, bugs, stylistic errors, and suspicious constructs.

So obviously feeding off of the definition of a linter, a good explanation for the lint itself could possibly be clearly defined as:

Code lint is a software programming “smell” that is identified by programming errors, bugs, stylistic errors and/or suspicious constructs.

I personally believe that this is a good explanation to those.  There are linters out there for nearly every language, however; I’m going to focus on JavaScript for soon-to-be apparent reasons.

Continue reading →

Posted by DCCoder in Design and Best Practice, Programming, 0 comments
Comments are useless, sometimes evil!

Comments are useless, sometimes evil!

That’s right, I said it. Comments are evil. But wait a minute, I hear you say, they tell us about the code, help us explain what is going on, etc etc.  I’m not saying comments can’t be useful in code, of course they can, but that vast majority are not.  Most that I have seen are simply useless and some are even downright evil.

“Code never lies, comments sometimes do.” – Ron Jeffries

Continue reading →

Posted by DCCoder in Design and Best Practice, General, 0 comments
Material design, what is it and why you should be using it.

Material design, what is it and why you should be using it.

Lately there has been a lot of uptick in Material Design.  More bloggers are blogging, and more designers are designing, but as a developer what do you need to know about Material Design?  The best place to start is to define exactly what Material Design is.  Wikipedia defines this as:

 

Material Design (codenamed Quantum Paper) is a design language developed in 2014 by Google. Expanding upon the “card” motifs that debuted in Google Now, Material Design makes more liberal use of grid-based layouts, responsive animations and transitions, padding, and depth effects such as lighting and shadows.

Though this description technically does describe it, we can do a little better.  Material Design is a design language that focuses on “materials” or objects with physical surfaces and edges.  This was primarily created with mobile application design in mind. These days, however, Material Design is being extrapolated into many other realms such as web development.

Continue reading →

Posted by DCCoder in Design and Best Practice, 0 comments