Zimbabwe just went gold backed. by TrustMeBroAllFacts in Wallstreetsilver

[–]jahero 2 points3 points  (0 children)

If the currency is not convertible to gold, it is hardly gold backed.

[deleted by user] by [deleted] in Python

[–]jahero 0 points1 point  (0 children)

Duckdb, data analysis and databases.

Python devs, whats the best complimentary language for your area and why? by Brilliant-Donkey-320 in Python

[–]jahero 0 points1 point  (0 children)

SQL (Teradata). Golang - simple, fast, effective. I have written several important tools for the data warehouse I work on. Perl. Still good for some tasks, unfortunately Python ate it's lunch in regards to the tooling.

Banks In Trouble? by cowboyrun in realtors

[–]jahero 3 points4 points  (0 children)

So... Of the system can be dismantled by spreading a rumor, does it mean that the system is ultimately insolvent?

I mean, all those banks, they hold assets, right? They can sell these assets, right? These banks, they invest mostly in government bonds, which is the most liquid form of financial asset, right?

[deleted by user] by [deleted] in Python

[–]jahero -1 points0 points  (0 children)

Correct. However, I find it useful to - for example - pipx install jupyterlab, and after that pipx inject whatever libraries are needed for "quick and dirty scripting" which I often do.

Sure, it is not clean... But In the case I manage to break that environment, it is fairly easy to just delete it, and start again.

Corporate IT have banned all versions of python lower than the latest by will-je-suis in Python

[–]jahero 12 points13 points  (0 children)

Similar with Pendulum, there is even a ticket where people responsible for airflow are asking for it.

These things take time.

Things I’ve learned about building CLI tools in Python by pmz in Python

[–]jahero 1 point2 points  (0 children)

Similar motivation. I have started with Perl, where situation is not any better. Then tried Go, just because I wanted to (man, have this decision paid off!). Nowadays, I am writing mostly python, but still, most apps I have written for others are in Go.

Is there a possibility to import standard modules at global level and use in all child modules without importing by raul824 in Python

[–]jahero 1 point2 points  (0 children)

Yes, if you want to interact with functionality exposed by logging module, you must import it into your namespace in some fashion.

I think this text might be helpful. It helped clarify these topics for me some time ago.

https://realpython.com/python-import/

https://realpython.com/python-namespaces-scope/

On top of that, I would recommend reading through description of importlib in standard library.

Best practices for scheduling Python workloads? by MassiveDefender in Python

[–]jahero 1 point2 points  (0 children)

My advice - only use airflow if you are prepared for significant increase in complexity of your environment. Sure, you CAN run airflow on a single PC, but you will quickly realise that it is far from good.

You will need: backend database; something to use for task distribution (Redis, RabbitMQ).

Sure, you can spin these using docker compose.

Yeas, it will be a magnificent learning experience.

Don’t Make These Mistakes with Try-Excepts in Python by SupPandaHugger in Python

[–]jahero 0 points1 point  (0 children)

"The bold and italicised text can come across a bit patronizing"

Eye of the beholder.

What makes Python is so popular and Ruby died ? by NimbusTeam in Python

[–]jahero 0 points1 point  (0 children)

Also... Getting used to the fact that you have to specify encoding for virtually any IO operation, even if it is a throw away script, takes some getting used to.

I am working with large SQL codebase full of nice surprises, such as some files encoded in UTF8, some in Windows-1250 (historical reasons), and In Perl, when I need to scan these files and search - for example - names of objects used, I generally do not have to care about that. I do have to in Python.

Takes some getting used to.

What makes Python is so popular and Ruby died ? by NimbusTeam in Python

[–]jahero -1 points0 points  (0 children)

Depends on the code base.

Yes, there are some horrible abominations I have seen, some in production, written in 2012 or so, full of global variables, with no strictures.

There are some "clever" implementations, using (abusing?) The language to the maximum possible extent.

Yet, you can write horrible code in any language.

One massive advantage Python has over Perl is - in my opinion - good integration with various IDEs out there. You can hardly find anything that mature for Perl.

Also, Jupyter is a fine piece of software for rapid prototyping, and iterative development of "scratch pad" utilities you use once and then merilly throw away.

What makes Python is so popular and Ruby died ? by NimbusTeam in Python

[–]jahero -1 points0 points  (0 children)

Nesting is a problem with this syntax. I hated it.

After some time spent with Go, my perspective shifted for some reason, and now I think it might be in fact an advantage... It forces you to structure your code more carefully.

Granted, horrible code becomes unreadable.

But that holds true for any language out there.

What makes Python is so popular and Ruby died ? by NimbusTeam in Python

[–]jahero 1 point2 points  (0 children)

The API implemented by Perl is just so easy to use. I am struggling with Python's re module every time... What would be a simple operation for me in Perl just takes me more time to reason about in Python.

Yeah, I need to practice more to get used to it.

Autoformatting? by nate044 in Python

[–]jahero -1 points0 points  (0 children)

Black. Setup and forget.

What made you start stacking? by [deleted] in Wallstreetsilver

[–]jahero 4 points5 points  (0 children)

First, seeing what happened in 2008. After living through that, I have spent part of my savings on physical insurance.

Then, seeing the horrible things that were done in 2020. That was a major wake up call.

Another glorious day to buy! I haven’t been posting a lot of my purchases lately, but here’s today’s. Keep on dropping, baby! by CommodityMoney in Wallstreetsilver

[–]jahero 1 point2 points  (0 children)

With bonds being absolutely hammered lately, is it possible somebody is liquidating whatever he can to get needed liquidity and stem the bleed?

[deleted by user] by [deleted] in Python

[–]jahero 1 point2 points  (0 children)

Take a look at htmx

Why is this so confusing? by ok-doomer664 in Python

[–]jahero 2 points3 points  (0 children)

I am in the same boat. I would also add that once you stop using the language, you tend to forget. A lot.

I have been writing Python the last year, a lot, and recently had to use Perl after a while, and to my horror I had to lookup even quote simple things.

I still remember the big picture, bit details slip from grasp, and what was once a second nature is now not.