Better HN
topnewbestaskshowjobs
Log inSign up

bahmutov

56 karma · joined Sep 26, 2013 (13y ago) · 45 submissions

Submissions

comment 5y ago · link · parent

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.

2.

Stop Using Page Objects and Start Using App Actions(cypress.io ↗)

1 points · by bahmutov · 7y ago · discuss

comment 9y ago · link · parent

thank you, our small team at Cypress appreciates every little bit of good publicity

comment 9y ago · link · parent

- Docs: https://docs.cypress.io - GitHub: https://github.com/cypress-io/cypress - Gitter: https://gitter.im/cypress-io/cypress

5.

Game of GitHub – Game of Life in GitHub Contributions Chart(github.com ↗)

10 points · by bahmutov · 9y ago · 1 comment

comment 9y ago · link · parent

Can I humbly submit my blog? https://glebbahmutov.com/blog/ - 3 years, 350 blog posts, mostly covering JavaScript / Node / code quality

7.

E2E testing with Cypress: tips and tricks(glebbahmutov.com ↗)

2 points · by bahmutov · 9y ago · discuss

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

We use "bates" https://github.com/luiscarli/bates by our own engineer

11.

Quickly fetch example from a README (Node)(github.com ↗)

1 points · by bahmutov · 10y ago · discuss

12.

Library of predicates (Node and browser)(github.com ↗)

1 points · by bahmutov · 10y ago · discuss

13.

Pad filenames to prevent sorting problems (Node)(github.com ↗)

2 points · by bahmutov · 10y ago · discuss

comment 10y ago · link · parent

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.

15.

Run Express server in your browser's Service Worker(glebbahmutov.com ↗)

7 points · by bahmutov · 10y ago · discuss

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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).

comment 10y ago · link · parent

seems to flash for me, add a few todos and then hit reload

comment 10y ago · link · parent

ok, server-side rendering, why don't you run the entire server inside the ServiceWorker then for speed? https://github.com/bahmutov/express-service

comment 10y ago · link · parent

Exactly!

comment 10y ago · link · parent

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

comment 10y ago · link · parent

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/

comment 10y ago · link · parent

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/

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 11y ago · link · parent

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

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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

29.

Simple Angular wrapper around broadcast / watch using SimpleWebRTC(github.com ↗)

1 points · by bahmutov · 11y ago · discuss

30.

Get list of commits messages between two tags(github.com ↗)

1 points · by bahmutov · 11y ago · discuss

12