Search Results


16 matches found for 'Javascript'

Javascript Essentials

... default behavior of moving declarations to the top. Given the following Javascript code, what is the expected output, and why? fcn2(); fcn1(); function fcn2(){ alert("hi"); } var fcn1 = function(){ alert("hey") } The expected output is a pop up alert that says "hi", followed by an error that fcn1 isn't defined.


Webpack: Usage Examples

... What is Webpack? Webpack is a module bundler, primarily used for front-end. A module can be a Javascript file, a CSS file, an HTML file or many others. Webpack will bundle all of these files up for you in your project.


Javascript Concepts

... is a block-level declaration var is a global-level declaration Functions Javascript functions are first-class objects because they can have properties and methods just like any other object.


Kefir.js - Reactive Javascript

... observables. observables could be two things; a stream, or a property (not to be confused with a Javascript object property) Streams A stream is a sequence of events made available over time.


CSR vs. SSR

... rendering), which is by default what most web applications use. CSR just means that all of the Javascript processing is done by the user's browser when the user accesses the page. This usually means that the HTML files are pretty plain and small.


Asynchrony vs. Multithreading

... object. Another example is Node.JS, which is a very popular serverside framework / library for Javascript that is usable outside of browsers. Node.JS is known to handle network requests asynchronously, but this is actually just an extension of the ECMAScript standard, where Promises are used.


A primer on MapReduce

... container and transform them. For example, if I want to convert a list of numbers to strings in Javascript: [0, 1, 2, 3].map(number => Integer.parseInt(number)); Reduce Reduce is also known as folding or aggregation.


Web Development 101

... application. For example, Pug is a template engine for Node.js that handles the View. React is a Javascript library for handling the View as well. Django Templates are also responsible for altering the View.


Useful Links

... Time Complexity PyPy vs CPython strings and bytesarray (Python 3+) Performance Tips Javascript, ES6 ES6 Destructuring Classes suck in Javascript React Hooking up React Redux with Django Backend Import issues with IntelliJ / WebStorm jQuery jQuery Cheat Sheet Chaining vs.


Web Backend Security Headers - 1. CSP Headers

... a whitelist policy. Depending on the policy, the following things can be disabled: Inline Javascript code Inline CSS statements Dynamic Javascript code evaluation (i.


Comparison Charts of File Storage Formats

... data around with REST APIs, and it is convenient for web browsers since it works natively with Javascript. .tg {border-collapse:collapse;border-spacing:0;} .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; overflow:hidden;padding:10px 20px;word-break:normal;} .


Python Essentials

Scopes Python has closures, similar to Javascript, since functions are first class objects. But unlike Javascript, there are some subtle gotchas in regards to working with function scopes.


npm and Node.js Management

npm packages install and save Install a package and also write it to package.json under "dependencies":{} npm install <PACKAGE> --save Alternatively, for developer dependencies: npm install <PACKAGE> --save-dev or npm i -D <PACKAGE> npm install, update, run (outside of current directory) npm install --prefix <PATH to directory> npm update --prefix <directory> npm run --prefix <script defined in package.


Algorithm Handbook

... word. Example applications: A spell checker, auto-complete system. Java Data Structures Javascript Data Structures Python Data Structures Python Tricks Use the ~ unary operator to get a 2's complement of an integer.


HTML and CSS Concepts

... and drop, get history, have editable content, and etc. This reduces the dependency on additional Javascript code. HTML 5 also introduces new elements such as <nav>, <footer>, <audio>, and <video>.


Data stores in Software Architectures

... solution is to actually distribute all your static content - images, CSS styling, additional Javascript, videos, etc. to a CDN. Solutions: CDN (ex: AWS Cloudfront, Akamai) with assets compressed Runner-ups: Object store (ex: Amazon S3) would be suitable - geolocation can be considered Price Alerts Let's say you have an app that allows users to add pricing alerts when a certain item is detected at a cheap price.