Minimum Viable Programmer: Everything you need to know and nothing more to ditch your dead end job and join the world of tech. by Caley Dallas

Minimum Viable Programmer: Everything you need to know and nothing more to ditch your dead end job and join the world of tech. by Caley Dallas

Author:Caley, Dallas [Caley, Dallas]
Language: eng
Format: epub
Published: 2020-07-19T16:00:00+00:00


For languages like Python and YAML where indent level is actually critical to the operation of the code, spaces are best because you will never accidentally put something at the wrong indent level.

For anyone who is tired of pressing the space bar so many times, almost every IDE made has an option to convert the tab key to output spaces instead. learn how to configure your IDE and don’t be an asshole.

Tabs are better for:

NOTING, NOT ONE GOD DAMN THING!

Camel Case, one Hump or Two?

Camel case is when you make some of the words in your code have capital letters at the beginning. This is especially useful when you have to merge several words together into one. For example:

ThisIsMyCoolFunction()

anotherCrazyVariable = "wtf?"

Whether it’s “one hump” or “two” is whether or not you capitalize the first letter or not. In the above example the first one is two humps (also called Upper Camel Case, or PascalCase) and the other is only one hump or “Lower Camel Case”

Snake Case / Kabob Case

Snake case is when you put dashes between the words to merge several of them. like so

first-name = "Humpty"

last-name = "Dumpty"

Snake case is not used that often because many languages do not allow dashes in the variables but you will see it from time to time.

Underscores

Underscores are just like snake case except you use under scores:

my_variable

http://www.mysite.com/this_is_really_cool.png

Hungarian Notation

We haven’t got into data types yet, but when we do you will understand that variables can hold different types of data like ‘strings’ and ‘integers’ or ‘boolean’ values. With Hungarian notation you are supposed to prefix your variable names with a letter than indicates what type of data it holds. here are some examples:

sFirstName (First name string)

b_is_this_thing_on (boolean value to determine if this thing is on or not)

You get the idea. personally I think this is stupid.

Parenthesis, Brackets and Braces

Parenthesis are these ( and ), Brackets are these { and } and Braces are these [ and ] Each of these symbols is used extensively in just about every programming language. What is important to note about them is how and where they are placed. Lets take for example the definition of a function in Javascript. you will need to surround the contents of the function with brackets, but you can do this in several ways:

Open/close brackets on the same line:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.