HNHacker News
TopNewBestAskShowJobs

yashthakur

9 karma · joined November 2, 2017

submissionscomments
yashthakur··on Upgrading Ubuntu 16.04 LTS to Ubuntu 18.04 LTS
Can you provide steps to upgrade it via terminal as well as to fresh install the LTS 18.04 version of Ubuntu?
yashthakur··on Show HN: ReactPWA v2 boilerplate built with PawJS, a pluggable framework
For people who want to know about PawJS, the GitHub link to its repo is: https://github.com/atyantik/pawjs
yashthakur··on Proxy, a new JavaScript ES6 feature
It is just because since all the JSFiddles are on one page. All the console.log would be together in the console and it would be difficult to know which console is for which code.

Hence document.write is used.

Though HTML could be used but that would just increase one more tab to show useless HTML. ;)

yashthakur··on Proxy, a new JavaScript ES6 feature
You can use them to call some functions when an object property is called or set. P.S. Just like Database triggers ;).

You can use them conditionally to manipulate data before fetch or before storing. For example: you want to store the username when a person registers using the email id like userzyx@gmail.com then you can use it to generate username from it by truncating the later part and generate unique username which will be "userzyx" here.

Just open up your brains and see where further it can be used and possibilities are just unlimited.

yashthakur··on Proxy, a new JavaScript ES6 feature
I especially liked the "construct" part as we can use it to take input from the users in frontend as a numbered value and then store it in the database with the currency format which can be later used to make the value visible with the currency in the frontend.
yashthakur··on Show HN: React PWA – A scalable Progressive Web Application foundation
At that time it was on a slow server with multiple sites loaded on that server. You can check the speeds now. If still you have complaints regarding speed kindly comment or raise an issue over there.

By the way the issue was with the server and not the boilerplate.

yashthakur··on Show HN: React PWA – A scalable Progressive Web Application foundation
Currently the site is down due to heavy traffic. The docs are written and in progress. You can also view pages on github wiki. Thank you for checking it out. :)
yashthakur··on Show HN: React PWA – A scalable Progressive Web Application foundation
Kindly check the github repo and its wiki pages: https://github.com/atyantik/react-pwa
yashthakur··on Show HN: React PWA – A scalable Progressive Web Application foundation
It means load only the code for the page/route that you are visiting and not the code of entire site.

Suppose you visit only example.com/about-us page then why should the server load example.com, example.com/faq, example.com/blog code together with it?

I hope you got the point of code-splitting. :)

yashthakur··on Show HN: React PWA – A scalable Progressive Web Application foundation
It is not a static website. It is made using the same boilerplate that is mentioned in the documentation. As the repo maintainer believes in using what he has made. ;)
yashthakur··on Show HN: React PWA – A scalable Progressive Web Application foundation
No it is based on es6/7 jsx. Also it has server side rendering, code splitting and many more features. Kindly check the github repo link shared by tirthbodawala.
yashthakur··on Show HN: React PWA – A scalable Progressive Web Application foundation
You understood it correctly.