Review of "Stocks Extension" version 36

Details Page Preview

Stocks Extension brings stock quotes to your GNOME Shell Panel

Extension Homepage
https://github.com/cinatic/stocks-extension

No comments.

Diff Against

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

All Versions

Previous Reviews on this Version

JustPerfection rejected
1. `_destroyed` is a bad practice. Please removed that. 2. As mentioned before, you cannot create instance of objects in global scope (line 6 `helpers/fetch.js`): - [EGO Review Guidelines: Initialization](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-initialization-for-static-resources) - [EGO Review Guidelines: Destroy](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#destroy-all-objects) 3. Please remove `schemas/gschemas.compiled`. Not needed for 45+ packages.
internetstaff posted a review
1-2, got it. 3. is gschemas.compiled not considered useful for manual installs? Seems like other active extensions still include it ...
JustPerfection posted a review
It will be compiled on install time.
internetstaff posted a review
What pattern do you expect to see as a replacement for `_destroyed`? FWIW, I just volunteered to take this extension over since it was abandoned a couple of years ago - I'm not the original author.
JustPerfection posted a review
Once you called `destroy()` on the instance, you should never access the instance again. You should null out the property or variable you are holding that instance. Something `_destroyed` to check whether the destroy has been called before is anti pattern and a bad practice.
internetstaff posted a review
I appreciate your patience on this.