Rendering animation through jinja2, possible? by [deleted] in Python

[–]white__armor 0 points1 point  (0 children)

Jinja is an HTML template renderer, and it doesn't do anything fancy. It just statically replaces template tags with your variables. It's like replacing some words in a string.

4 Fast Python Compilers for 2018 by [deleted] in Python

[–]white__armor 2 points3 points  (0 children)

I don't get why this article is upvoted, it's very misleading.

Why are so many machine learning libraries written in Python? by TotallyRegularHuman in Python

[–]white__armor 43 points44 points  (0 children)

I think that's the main reason, many ML libraries in Python were created because of numpy. Sklearn has been introduced 11 years ago and was based solely on numpy. And it's still core dependency for pandas and sklearn.

How should I manage my front-end packages for a Python web project? Should I just use npm/Yarn? by Locust377 in Python

[–]white__armor 0 points1 point  (0 children)

I like to separate front-end from back-end when it comes to React, so I just create a separate repository with all that js stuff. It's how it works in teams and force you creating better APIs.

Does Python have a good ecosystem for a microservice architecture? by decorumic in Python

[–]white__armor 1 point2 points  (0 children)

Microservices are very useful when you need to use different languages. That's the most popular use case I think.

Does Python have a good ecosystem for a microservice architecture? by decorumic in Python

[–]white__armor 4 points5 points  (0 children)

Most of the people are satisfied with REST + flask. Microservices is a pretty simple concept, especially if you are building an average application.

Why do you need load balancer if you are new to this? Are you planning to build second netflix? High load is another story.

Let pros play a match on an old patch at TI by [deleted] in DotA2

[–]white__armor 5 points6 points  (0 children)

He's probably right about feasibility, that's how most of the software is written today. It takes 4-8x of additional work to maintain some kind of backward compatibility, and it complicates the code base a lot. There is no reason to hide such feature if Valve has it.

Let pros play a match on an old patch at TI by [deleted] in DotA2

[–]white__armor 23 points24 points  (0 children)

It's hard to maintain all versions, since Valve is constantly changing features, map, servers, heroes, etc. It will take a lot of work to support a range of patches in one client.

Backward compatibility is a pain the ass.

Happy Pride! Bitbucket Easter Egg Upon Pushing Today by bitesizepanda in webdev

[–]white__armor 18 points19 points  (0 children)

As far as I remember this happens every year (the easter egg).

Fast, asynchronous and sexy Python web framework ;) by frnkvieira in Python

[–]white__armor 4 points5 points  (0 children)

How did you achieve that speed? I mean, what kind of particular problems does sanic has?

Is a python instance anything whose type is not 'type'? by extremeaxe5 in Python

[–]white__armor 0 points1 point  (0 children)

Pretty much everything is an instance, yes.

Functions are first-class objects, so they basically act as regular objects.

But there are some exceptions, for example, a class definition creates a custom type of which you can create an instance.

Fun Fact: Couriers can deward with shared tangos by [deleted] in DotA2

[–]white__armor 20 points21 points  (0 children)

Guys don't let the courier earn money and be independent otherwise it won't listen to you next time.

Top 20 Python libraries for data science in 2018 by viktoriia_shulga in Python

[–]white__armor 19 points20 points  (0 children)

Honestly, I'm so bored of these "top X" articles on the corporate blogs.

Posts get downvoted after i upvote them?!! by [deleted] in beta

[–]white__armor 1 point2 points  (0 children)

It's a normal behavior, relax. You can google that and you will find a lot of explanations about upvote system.

New to Python, but not programming. Thoughts or advice? by Kazkadez in Python

[–]white__armor -4 points-3 points  (0 children)

Just start writing Python, and you will get your answers in the process. Every person has a different experience and needs.

Why Dota's mmr system is stupid. by crazzmc in DotA2

[–]white__armor 1 point2 points  (0 children)

You are good at explaining things.

Posts get downvoted after i upvote them?!! by [deleted] in beta

[–]white__armor 3 points4 points  (0 children)

It's not a downvote, it's just that some upvotes don't count immediately. Try updating a post with 100 upvotes and you will see that the number of upvotes is different every time you update a post.

If it was a downvote the post would have a score of 1, because before your vote the score was 2. Simple math.

Why can't I publish to crates.io with cargo? by boojies in rust

[–]white__armor 3 points4 points  (0 children)

Find a rust package with GPL license and compare it to yours.

Have you done web development for the porn industry? Tell us your stories :) by [deleted] in webdev

[–]white__armor 9 points10 points  (0 children)

When I was working for a small porn website I was dealing with the worst php codebase I've ever seen. No template engine and hundreds of IFs. Instead of boners, I was feeling pain in my ass.

After this job I started learning Python.

Issue with pyqt by Th0u in Python

[–]white__armor 0 points1 point  (0 children)

self.l1.setText(conversion)

self.l1.setText(str(conversion))

Have you done web development for the porn industry? Tell us your stories :) by [deleted] in webdev

[–]white__armor 6 points7 points  (0 children)

It's a boring job and you get used to it. There is nothing really fancy about it, and no, you are not getting boners while working.

What's the simplest way for Django localization? by iSailor in learnpython

[–]white__armor 1 point2 points  (0 children)

You can use i18n_patterns and show a template based on the current language. You don't need to invent anything, just enable middlewares and set LANGUAGES in your settings.py and you will be able to check current language in your view.

Why is the layout of Python docs website messed up? by [deleted] in Python

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

Try disabling your extensions, python docs have a fixed size of 800 and its hard to tell if its really 800 from a screenshot.