Monday, 5 April 2021

Today's dilemma: PyCharm hints unregister as a typo

 


OK, so of course since it's a completely irrelevant one, I dug into the problem relatively heavily ... cause what else would you do? :D

And here's one debate (2011) with a lot of interesting comments:

meaning - "Unregister" vs "Deregister" - English Language & Usage Stack Exchange


One pulls some good logic in:



it's convention in programming to call an object that hasn't been 'initialised' as 'uninitialised', not 'deinitialised'.

And since what's deregistered has already been registered, it wouldn't be in the same shoes as those things which never had been registered, and would thus be called unregistered.

But then there's some properly defying statistic there ...!
https://i.stack.imgur.com/cMMOS.png



As evidenced, unregister received a substantial boost shortly after the dot-com boom/bust of the late 90s, while deregister usage has been more or less the same throughout.

[...]

Additionally, both the
un- and de- prefixes can be defined as a reversal of action.

Despite the similarities, I'd go with popular usage and use unregister.

I really like that approach in a way. Quantified. Cold, hard facts in this very emotional problem that gets so many carried away. Numbers do tell a lot. Personally, I always 'knew' unregister to be The Word, but as I noticed due to the PyCharm editor hint, I could have equally naturally said deregister right now (outside the context)... so let's move over this bad infection.

Let's get up to date and context specific:

Final word: GitHub says ... yes!

Search · unregister · GitHub vs. Search · deregister · GitHub!

n

Unregister 👍

Deregister 👎

Repos

196

95

Commits

10M+

1.8M+

 

Without looking at the further candidate metrics, I think there's a clear winner here. And that is, the procrastination of actual work ;)

 

Thursday, 4 February 2021

"Look twice"

Yes, it might matter when errors occur, so I keep checking my store account.

Apparently it's the top one :)


(Time travelling me back to the question of line/bar chart x axis coordinate interpretation ...)

Bug or not, it indeed does good to my self-confidence when I receive slightly bogus intel about my tiny bogus app's bugs (just caught and fixed one after breakfast ... and surely not the one manifesting on the chart <sigh>).

Thanks guys, hope you saw mine, no worries there'll be a next anyway if you missed out & good morning to you too ... 8-]

Wednesday, 3 February 2021

Do delete unused multipass instances

aka 'Completely stupid moves with Snapcraft #1'

You can easily fill up your drive whilst experimenting with Snapcraft if you are as wise as me.

Snapcraft (currently?) relies by default on a virtualization software also by Canonical Ltd., called Multipass.

This will seemingly thrive off pretty big files (I believe I mostly used base18 in my snaps), likely full installations of Ubuntu18. 

I would have expected nothing like to happen when I started deleting my unused multipass machines, but each took ~ 10 GB, despite being almost identical.

Most of them were just results of not caring about snap naming from the first steps ... =b

In short:

multipass list

will give you the snaps, including e.g., having forgotten to use --purge when deleting:

snapcraft-my-snap-name           Deleted           --               Not Available
snapcraft-testapp                Deleted           --               Not Available

now, at this point one might be inclined to delete and purge them well:

multipass delete snapcraft-my-snap-name --purge

and walk away happily with ~ 20 GB (or more) of free space again.

Sunday, 31 January 2021

Wednesday, 27 January 2021

For the "am I crazy" moments with Cython

NB it isn't necessarily a good idea to do something like x = str(x) in Cython.

Keep things with their types associated with variables unchanged, or incomprehensible TypeErrors might keenly jump to help you get your well deserved early dementia.


Thursday, 14 January 2021

Pair programming - the untold truth

It probably is the best alibi to cover for the unstoppable urge of talking to yourself while programming. Well, though - just given that - you aren't necessarily crazy :)

Having throughly studied about 1% of a very prestiguous article, I conclude

"deep, transcendental"

"could actually be a sign of high cognitive functioning"

"might reflect the reality of a genius"

Calm down, that's all we are folks, even if pair programming with an invisible rubber duck at home. Makes sense.


Sunday, 10 January 2021