Mr. Robot.

roma★
$LAYYYTER

Andulka
Xuebing Du
occasionally subtle
let's talk about Bridgerton tea, my ask is open

tannertan36
we're not kids anymore.

Product Placement

Discoholic 🪩
No title available
NASA

祝日 / Permanent Vacation
YOU ARE THE REASON

⁂

Kaledo Art

pixel skylines
Claire Keane
Aqua Utopia|海の底で記憶を紡ぐ
Not today Justin

seen from United Kingdom
seen from United Kingdom

seen from United States

seen from Malaysia
seen from Germany

seen from Germany

seen from Poland

seen from Canada
seen from United States

seen from Cyprus

seen from United States
seen from United States
seen from United States
seen from United States

seen from United States

seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
@swysercoding-blog
Mr. Robot.
What will you pick for 2017?
Definitely the best video about PWAs!
Don't get too attached to Angular 2 — Angular 3 is coming sooner that you think. Here's what we know so far about the upcoming release.
Definitely exiting stuff!! So they say it is like Angular 2, but with more cool stuff!
Everysoft Corporation by taires http://bit.ly/2fHDdcV
The Depressed Developer 2 by dstori http://bit.ly/2gfXMfz
👆🐶#programminghumor #programmerlife #funny #dog #badpundog
💻🙀#programminghumor #code #cat #programmingfun #cpp #dotnet
Now and Then, what it is to learn JS in 2016 by RolandCuley http://bit.ly/2gHdYoz
The 5 phases of software development by Gabr3l http://bit.ly/2fumyYA
So true...
Yup, it is now my new favourite hobby! Its a thing...
Test your website on any screen size including desktops, tablets, televisions, and mobile phones.
Great tool for checking different screen sizes and devices!
Soooo looking forward to this being released! Will make every Js coffee converter's life easier!
TL;DR It took me a long time to understand Webpack and how it fits in the build process. This is what I wish someone had told me. What is Webpack? How does Webpack compare to Grunt, Gulp, Browserify, Brunch, etc? What's a "development server?" What on earth is require(
Ever wonder what the hell Webpack does? I know I did...so I found this awesome article that explains exactly what it does and how to use it!
Started playing around with Docker, I am so excited I even got VPS hosting!
Constants and Object.freeze in JavaScript
Node.js already supports const and most browsers eventaully will, but that only creates immutable variables not objects. For example:
const obj = { property1: 'value1' }; // some implementations will error out, some will just not assign to it. try { obj = { property2: 'value2' }; } catch (e) { console.log(obj); } console.log(obj); // { property1: 'value1' } obj.property1 = 'value2'; console.log(obj); // { property1: 'value2' }
This is where Object.freeze comes in, it prevents the entire object from being modified:
const obj = Object.freeze({ property1: 'value1' }); // some implementations will error out, some will just not assign to it. try { obj.property1 = 'value2'; } catch (e) {} console.log(obj); // { property1: 'value1' }
This is useful for the same reason that const is useful, it makes code more predictable by ensuring that an object’s properties and values can always be relied on once defined. Though it does have a weakness with arrays:
const arr = Object.freeze([{ property1: 'value1' }, { property2: 'value2' }]); // some implementations will error out, some will just not assign to it. try { arr[0] = { property2: 'value2' }; } catch (e) {} arr[0].property1 = 'value2'; console.log(arr);
So it is important to remember to use Object.freeze on each array element:
const arr2 = [{ property1: 'value1' }, { property2: 'value2' }].map(Object.freeze); // some implementations will error out, some will just not assign to it. try { arr2[0].property1 = 'value2'; } catch (e) {} console.log(arr2); // [ { property1: 'value1' }, { property2: 'value2' } ]
Although, this does not seem like something that has good support, it actually works in all modern browsers. Though since Object.freeze is most useful with const and const is still not supported in some environments, you will need another way of generating constants. Finally, frozen objects run just as fast as regular objects. Frozen objects only ran slower in the past due to browser bugs. For example: https://bugs.chromium.org/p/chromium/issues/detail?id=115960.
Github Location: https://github.com/Jacob-Friesen/obscurejs/blob/master/2016/objectFreeze.js
Material icons!