41 karma · joined April 13, 2018
You could also use python type hints for this stuff.
Here are some links about units in python:
https://socialcompare.com/en/comparison/python-units-quantit...
What if I want to compute the average altitude? This requires adding altitudes.
Also, KDE Dolphin can run commands in the current folder.
You can get the history to last forever by appending history to a file.
https://stackoverflow.com/questions/17330158/django-how-to-u...
I like Django. I need to process data on the server side and like to write that in python because it is more convenient than C. I also built my GUI in Django without knowing JavaScript. "just shipping JSON" seems like a different use case.
I have a piece of hardware (a laboratory hardware switch) that exposes a REST API for CRUD. I wanted to build a GUI that formats and summarizes information and offers convenient control. The data is small enough so that python can process it without becoming the bottleneck. I used Django ORM to model the data and django forms with htmx for the GUI. Authentication was easily added to Django.
The ORM part was a bit painful as Django forms expect a queryset and a queryset is not be the result of a raw sql query. There is a way to feed list of tuples into a choices argument but I decided against that , and instead dumbed down my query so I was able to write it as an django ORM language query.
That's an elitist perspective that doesn't include the average worker making a living by knowing their tools and not much else.
You are profiting off workers as a middle man in the economy by doing HFT, and trying the justify it by some vague concept of the "correct price". You are producing nothing of value, merely taking away value before someone else notices it is there.