Live data from Hacker News

We Have to Talk About Flask

blog.miguelgrinberg.com

1–10 of 116 posts

Re: We Have to Talk About Flask

#3
post #2

Shouldn't the tutorial author be specifying a version in the tutorial?

Normally tutorials ask readers to install latest versions of everything. If you have to provide a version for every package used in a tutorial, it means that every time any of such dependencies releases a new version the tutorial has to be updated. I guess it is possible for a blog post, but how can I update my books or my videos?

Re: We Have to Talk About Flask

#4
Any older product will fall into disrepair, simply due to the decreased attention old features get. Plus the years of accumulated of references to any particular feature, that would take years to track and put right whenever it changes.

Not sure there's any cure.

I hit this (OP) issue myself. Solved it somehow, don't remember, just another glitch in the neverending series of glitches that are open-source lack-of-support and obsolete documentation.

Just today, noticed Steam tutorial videos generally use some obsolete version of their website tools. Have to fish around, find where the menus etc are, they sure aren't where the video says they are.

Business as usual.

Re: We Have to Talk About Flask

#5
I have long advocated the idea that online tutorials should have unit tests: there should be a daily build that loads the tutorial, extracts the code bits, runs them, and reports a failure if a dependency broke the tutorial.

And those tutorials should have the ability to force rollbacks of minor point releases that break backwards compatibility.

Tutorials should be pinned to major point releases.

Re: We Have to Talk About Flask

#8
post #2

Shouldn't the tutorial author be specifying a version in the tutorial?

Normally tutorials ask readers to install latest versions of everything. If you have to provide a version for every package used in a tutorial, it means that every time any of such dependencies releases a new version the tutorial has to be updated. I guess it is possible for a blog post, but how can I update my books or my videos?

Surely you should specify at least the major version, and/or the version you tested on. Otherwise you are throwing out the entire point of semantic (or semantic-like) versioning.

Re: We Have to Talk About Flask

#9
post #2

Shouldn't the tutorial author be specifying a version in the tutorial?

Normally tutorials ask readers to install latest versions of everything. If you have to provide a version for every package used in a tutorial, it means that every time any of such dependencies releases a new version the tutorial has to be updated. I guess it is possible for a blog post, but how can I update my books or my videos?

If there is a major version upgrade to a dependency, you would have to update the tutorials if there is a backwards-incompatible change.

Re: We Have to Talk About Flask

#10
It seems unreasonable to expect anything that relies on "version:latest" to not break upon a major version change.

What makes a tutorial different than any other software process, in this context?

Your tutorial was written and functions for a particular version of a software. Pin that version. It's the straightforward thing to do.

Frankly, I would be insulted if I was miseducated by a tutorial that purports to be up to date, but was actually written for a old major version. Learning obsolete techniques, missing best-practices.

Post reply on HN