The browser in becoming increasingly important in computing.This seems to be inline with the rise of cloud based computing and storage. The fracturing of the smartphone market has also made HTML5 apps more attractive for phone application developers. As HTML5 apps can be be run in any modern browser and smartphones run those browsers, HTML5 apps are automatically supported on any smartphone OS.
With the arrival of the OpenBCI headset imminent, I'd like to know more about the possibilities of coding in the browser.
When I came to the conclusion that programming was a necessary part of neuroscience, I started looking for the perfect language. One that would do all the things I needed so I wouldn't waste time learning inferior languages. After a lot of reading and a little experience, I understand why more experienced programmers don't spend a lot of time answering that question. There is no one best language, they all have their tradeoffs.
Except for Matlab..... Matlab is just bad. ;-)
You will probably end up learning a few languages.
When I want to learn a programming language, I look around for articles on the nature of the language. Not tutorials but discussions about what it looks, feels and smells like. I try to get a feel for the personality of the language so I have some framework to piece together the information I will acquire. Next I do some online tutorials involving guided coding in a browser. Something like codeacademy. or Didacto
This material is taken from the codeacademy site.
the basic syntax of HTML is
< something > ....... < something />
With the somethings (tags) defining what goes between these markers (thus the term - markup language).
It can be headers (h1 - h6)
<h2> This is a heading </ h2>
<p> Text can go between paragraph tags </p>
In the opening tag we can also state some attributes.
In the next line, the 'a' tag denotes links and
the 'href' is an attribute.
In this case it is a web address and notice it is in quotation marks.
The text between the tags 'links' will be what the user sees and clicks on.
<a href='http://www.codecademy.com'> links </a>
Images have an attribute 'source' which gives the path to an image file.
The styling of the different elements of the html page are defined by the CSS file.
The 'h1' part is a selector, the 'color' part is a property and the 'red' is it's value. A property:value pair is called a CSS rule.