
Explore CoffeeScript, a JavaScript preprocessor, using whitespace and indentation to declare variables and objects, with automatic last-line return and compile to JavaScript via Grunt or watch.
Discover the ternary operator and shorthand conditional assignments in CoffeeScript, showing how output can be A if true, else B, and compare with plain if statements for readability.
Scaffold a basic express application, install dependencies, and set up a socket server inside the project. Declare a socket IO variable and listen on ports 3000 and 4000.
Set up socket event handlers for connections, emit a hello message back to the newly connected client, and enable a client-server handshake with simple heartbeat messages.
Conclude the advanced backend web development course by celebrating the completion of the module, emphasizing continued learning through a full stack javascript bootcamp and career-ready connections.
In this course we examine several technologies. The first is Grunt. Grunt is a task runner which is a way for us to implement a build system to handle writing our code in different languages, preprocessing, minifying our code, and doing unit testing -- all automated. We’ll also take a look at Coffeescript, which is a preprocessor for Javascript. It follows a lot of similar structures to Python and is very, very popular.
Finally, we’ll discuss Sockets. Sockets are a way for us to open a constant connection between the server and the client. Normally when you make a request, the request goes up and then comes down with the data. With a socket, that request goes up and stays open, allowing the server to send data whenever it wants and the client to send data whenever it wants.
So, we can make real time applications using sockets and we’ll take a look at how to implement a very simple system using socket IO.
Course Includes:
What You'll Learn: