News for hackers. Stuff that matters.

bahmutov

Wow, someone has submitted Cypress.io here - probably because we just crossed 25k stars on GitHub.

We at Cypress do read these comments, and we definitely understand both the positive and negative opinions. If you have never tried Cypress yourself - take a look at the first test page https://on.cypress.io/writing-your-first-test

Try it yourself, you might like the syntax and the developer experience. And if not - no worries, there are TestCafe, Puppeteer, Playwright, Selenium, Webdriver that might work better for you.

Re:Cypress testing framework that runs in the browser on Wednesday November 15, 2017 @01:08PM (#15706063)
thank you, our small team at Cypress appreciates every little bit of good publicity
Re:JavaScript Blogs to Follow in 2017 on Monday January 09, 2017 @03:41PM (#13359599)
Can I humbly submit my blog? https://glebbahmutov.com/blog/ - 3 years, 350 blog posts, mostly covering JavaScript / Node / code quality
warning: posting my own website https://glebbahmutov.com/

Has links to blog / slides / github and list of GitHub projects with search. Allows people and myself to quickly find something. Getting recruiters' pitches (and occasional hand crafted emails to join teams) every day.

Re:An Open Source, Self-Hosted Heroku on Friday October 14, 2016 @10:56AM (#12708460)
I have been using Dokku for a year for personal side projects and it has been awesome. Each release brings good features, fixes bugs and in general improves it.

Setting up could never be easier (read https://glebbahmutov.com/blog/running-multiple-applications-...) and the large number of plugins for databases is a huge plus.

We use "bates" https://github.com/luiscarli/bates by our own engineer
Re:Ask HN: Why don't you blog? on Monday March 07, 2016 @02:48PM (#11241112)
I blog at https://glebbahmutov.com/blog/ as a reminder to myself how some problems are solved. Now people at work, especially new hires, comment how 50% of my communication or answering questions are just links to the blog posts.
Re:Instant Web Application on Sunday January 03, 2016 @12:36AM (#10829651)
That's why I recommend using PouchDB to work with whatever API is available. Storage limits are harder to work around, but if your HTML snapshot weights more than 50MB (or even 1MB!) that it is a problem by itself.
Re:Instant Web Application on Friday January 01, 2016 @11:10PM (#10824995)
The app saves its state in whatever form it wants. The demo saves it in localStorage that is very limited. One really should look at something better like IndexedDB or WebSql (or something that hides the technical details, like localForage or PouchDB).
Re:Instant Web Application on Friday January 01, 2016 @11:09PM (#10824987)
seems to flash for me, add a few todos and then hit reload
Re:Instant Web Application on Friday January 01, 2016 @11:07PM (#10824977)
ok, server-side rendering, why don't you run the entire server inside the ServiceWorker then for speed? https://github.com/bahmutov/express-service
Re:Instant Web Application on Friday January 01, 2016 @11:05PM (#10824974)
Exactly!
Re:Instant Web Application on Friday January 01, 2016 @11:05PM (#10824971)
The blog post author (Gleb Bahmutov) here.

Thanks for commenting, this is a cool experiment I worked on, just trying to eliminate the bootstrapping delay. Will be happy to answer any questions here, via issues in the demo repos (https://github.com/bahmutov/instant-vdom-todo), or in the library repo https://github.com/bahmutov/bottle-service

The demo itself runs from https://instant-todo.herokuapp.com/ (please use Chrome or Opera or enable ServiceWorker in the Firefox for now)

PS: Here is a little bonus, my current exploration where ServiceWorker might be useful - run your server (like ExpressJS) inside the ServiceWorker ;) https://github.com/bahmutov/express-service

Re:Faker.js – generate fake data in the browser and Node on Tuesday December 29, 2015 @10:54AM (#10807225)
The only one anyone needs - is the list of fake todos, generated using https://github.com/bahmutov/fake-todos

See demo at http://glebbahmutov.com/fake-todos/

Take a look at https://github.com/bahmutov/PE-N-starter - PouchDB (which later can proxy to CouchDB), Express and Node. Much better DB and no locking you to any rendering framework. Comes with GitHub integration plugin. Demo at http://pe-n-starter.herokuapp.com/
Well, consider that you have not paid anything for these packages, can you complain that authors do not follow the semver?

If you want to protect yourself and upgrade reliably - there are tools, like my https://github.com/bahmutov/next-update - runs your tests and only keeps upgrades that don't break stuff.

While the author is down on automatic file name scans, I see nothing wrong in using tools to catch easy mistakes. How many people do regular code / package reviews? Did not think so. I recommend: - https://github.com/jandre/safe-commit-hook - my fork of the above for NPM js workflow https://github.com/bahmutov/ban-sensitive-files - NPM checklist that includes sensitive file reviews https://github.com/bahmutov/npm-module-checklist

Finally, if GitHub can automate some of the simple checks, so can we, for different tools and environments of course.

Re:React vs. Angular 2 on Saturday November 21, 2015 @01:31PM (#10607565)
A way to handle sequences of events - which is really powerful abstraction. Look at this (shameless self-promotion) presentation https://slides.com/bahmutov/javascript-journey-boston-code-c... and the companion blog post http://glebbahmutov.com/blog/journey-from-procedural-to-reac... plus repo of the code that shows every style of JS, including Redux and Reactive https://github.com/bahmutov/javascript-journey
Re:Coding Interview Tips on Thursday October 15, 2015 @04:36PM (#10395821)
I like asking a refactoring / functional programming question in JavaScript like this one http://glebbahmutov.com/blog/functional-js-interview-questio... trying to make the candidate work through several small steps. At each step (step itself is pretty simple) I am looking for clarity and the candidate being able to explain the logic and the solution.
Re:Greenkeeper: Always up-to-date npm dependencies on Friday September 25, 2015 @02:23PM (#10279786)
Use next-updater - tested dependencies update for projects in bulk. Npm publish, github tag, push, etc. Flexible ranges (major, minor, patch), etc. You control everything. https://github.com/bahmutov/next-updater built on top of next-update https://github.com/bahmutov/next-update

Older »