Posts

Showing posts with the label Week 10

Week 9 to 12 - Learning with MCR Codes

Image
My experience with  @MCRcodes   as a Quality Assurance Tester.  This is an evening part-time coding boot camp based in central Manchester which runs for 24 weeks, from February 2018 to July 2018. Week 9 (April 2018) - After spending two decades using the internet, I finally have an understanding how it works now, and the communication between the server and the client. Nice to create and run a simple server using Express and I now know what API actually means now, I think. Really appreciate how amazing and powerful the npm  package manager really  is, and looking forward to installing other future packages.  We have now started our back-end programming journey. Session 1 -  The Internet, the Web, HTTP Session 2 -  Web APIs & Express Week 10 - Really enjoying creating and reading test units for server assignments. Additionally, learning s ynchronous/a synchronous programming has been a tease.   Unfortunat...

Week 10 - Session 2 - Group Programming Workshop - Microlife Calculator

Image
blog image source Group exercise - b uilding a life activity tracker, which will tell us how much our life expectancy has increased or decreased based on a day's activities. Use a single JSON file to store information about the user and their activities.  Learning objectives from this exercise: Can you explain Request/Response? Can you use Express to create a web server locally? Can you use Postman to feature test an API? Can you use Node's fs module to read and write from files? Can you follow JavaScript asynchronously? Can you use Express to build a basic CRUD (Create, Read, Update, Delete) web API? Can you create unique IDs for objects to distinguish them from one another? Do you understand different status codes and how to send them? Can you validate user input? Can you use query parameters? GitHub Microlife Calculator exercise -  https://github.com/SharifCoding/microlife-calculator

Week 10 - Session 1 - Asynchronous JavaScript

Image
blog image source Synchronous programming means that, barring conditionals and function calls, a code is executed sequentially from top-to-bottom, blocking on long-running tasks such as network requests and disk I/O. Asynchronous programming means that the engine runs in an event loop. When a blocking operation is needed, the request is started, and the code keeps running without blocking for the result. When the response is ready, an interrupt is fired, which causes an event handler to be run, where the control flow continues. In this way, a single program thread can handle many concurrent operations. User interfaces are asynchronous by nature and spend most of their time waiting for user input to interrupt the event loop and trigger event handlers.  Node is asynchronous by default, meaning that the server works in much the same way, waiting in a loop for a network request, and accepting more incoming requests while the first one is being handled.  This is important ...