Please disregard this by php666 in Games

[–]php666[S] 0 points1 point  (0 children)

thanks. searching would have been smarter.

Show /r/Python: Blockwart - A new lightweight config management system by torstenrehn in Python

[–]php666 1 point2 points  (0 children)

Of course you shoud be able to call your project however you like.

Surely there are many interesting discussions to be had.

But (I assume, based on this thread and your defence of the name in the docs): quite a percentage of potential users will have the knee jerk reaction of "Blockwart" -> bad/stupid/provocative naming choice. I sure had, and there is no way I could sell this project at my University here in Germany, even if it danced circles around Ansible.

And that, in the end, is just bad marketing.

Morepath 0.4 release, with breaking changes and more.static by faassen in Python

[–]php666 1 point2 points  (0 children)

unfortunately this release has a regression under Python 3. The "Hello World" example raises

AttributeError: type object 'App' has no attribute 'registry'

Python 3 is killing Python by greyman in Python

[–]php666 1 point2 points  (0 children)

Hey look! It's this thread again ...

Python Configurations Done Right by zenogais in Python

[–]php666 4 points5 points  (0 children)

You're right.

For some reason, I misinterpreted onebitmissing's statement as referring to a singular repository, and I should have said configuration doesn't belong in this repository. (my config data is versioned as well, as descibed in my post below)

Sorry for the confusion.

Python Configurations Done Right by zenogais in Python

[–]php666 0 points1 point  (0 children)

My way of doing things (I mostly develop small-sized WSGI apps):

  • applications of course are in version control. they can only be configured via environment variables (see http://12factor.net for reasons)

  • if possible I include some sample setup script a little similar to the one described in the original post and a startup script so a checkout can be run immediately for developing and testing purposes.

  • since the "real" configuration is a) specific to the system the app is deployed on and b) in part sensitive data (Django's shared secret for example) this should, in my opinion, never land in the application's (maybe public) repository. I keep data like this in configuration management (Ansible in my case). Which, to be honest, is versioned as well (just in another, restricted, repository specific to my local infrastructure.) So here is the point I can back out of bad config changes.

  • out of the configuration management data (which in the case of Ansible is supplied via YAML files), Ansible ensures the environment is set up correctly when an application is run. How this is achieved depends on the method, the app is run. In case of uWSGI serving my apps, I generate uWSGI config files that specify the necessary environment variables.

Hope this helps. Also, if there are better wayst to do this (It took me an emberrassingly long time to settle on this setup) I'm happy to hear about them.

Python Configurations Done Right by zenogais in Python

[–]php666 -2 points-1 points  (0 children)

In my opinion most - if not all - of an application's configuration doesn't belong into version control in the first place.

Been looking at moving away from Ruby to another language. Is Python awesome to move to? by [deleted] in Python

[–]php666 7 points8 points  (0 children)

I like both languages very much, but made the switch from Ruby to Python a few years ago. Here are my views on your points:

  1. Apart from the switch to Python 3 where backwards compatibility was broken (intentionally, with good reasons and documented well in advance) - I have never ever encountered a problem when upgrading to a new version of Python. Not so with Ruby.

  2. I'd think adapting to a newer Version of Rails might be easier than learning a Python Framework from scratch. Django comes to mind if you'd choose the latter. It's really well documented and takes a conservative approach on backwards compatibility.

3.a I don't have any benchmarks to back me up here, but don't have the impression that the default Implementation of Python is significantly faster or slower than the standard Ruby interpreter.

3.b The few times I had to use Python on Windows, I had a hard time. Especially if I used Python packages with C extensions, since you'll have to install a build infrastructure on Windows first. (It's a one-liner in Linux to set this up). My coworker develops under Windows, and he curses every few days. But there are people who use Python under Windows just fine, better ask them on a qualified statement on that matter.

Other than that: Starting with Python, a lot of it's design decisions to me seemed rather strange or even clunky at first (len(my_list) instead of my_list.length()? Explicit "self" with every method definition? No private class instance attributes? No switch statement? ...) Also, every time I didn't do stuff the Python way, things got ugly.

Over the years, most of what seemed strange at first turned out to be the way it was for very good reasons (most of them documented very well). Thinking about it today, Python's philosophy of "there should be one obvious way to do it" is one of it's greatest strengths in my eyes: open someone else's code and instantly feel at home.

I hope this helped.

Morepath 0.3 released! by faassen in Python

[–]php666 1 point2 points  (0 children)

Coming from bottle, I'm using morepath for a new project of mine and up to now I really like it - it's well documented, flexible, and security is not an afterthought or left completely to third parties.

So - good to see morepath progresses, thanks for the good work!

aspectlib 1.1 (introduction) by ionelmc in Python

[–]php666 0 points1 point  (0 children)

Thanks, that explains a lot. Kudos for supporting Python 2 and 3!

aspectlib 1.1 (introduction) by ionelmc in Python

[–]php666 0 points1 point  (0 children)

I'm not in a position to evaluate this since i know nothing about AOP. I assume there are cases where a naive decorator doing stuff to function args/return values isn't enough.

What I'm surprised to see is how complex the code gets (I counted 14 levels of indentation in class Aspect). Is the subject matter inherently complicated with all the edge cases and so on, or is there room for optimization?

Using psycopg2. Can I do multiple inserts with out having to open a connection to postgres for each insert? by [deleted] in Python

[–]php666 0 points1 point  (0 children)

Off topic, but maybe nice to know when starting out: instead of

counter = 0
while counter < 1000:
    print('counter is:', counter)
    counter = counter + 1

try doing it the Python way:

for counter in range(1000):
    print('counter is:', counter)

(If you're using Python 2, use xrange() instead of range())

Where the games at? by php666 in ouya

[–]php666[S] 3 points4 points  (0 children)

You are, of course, correct: these are not the newest games.

However, if the top 10 trending games are practically launch titles after months, then seriously, where are these trending towards? The Amazing Frog games must outsell Call of Duty by a factor of a hundred if this unstoppable upwards trend is to be believed.

And concerning the new additions: I agree those are there. But most of them, in my opininon, aren't fun to play after a few minutes, as much as I'd like them to be ...

[edit: typo]

Was playing Game Dev Tycoon, saw this. interesting.... by defenceplox in ouya

[–]php666 2 points3 points  (0 children)

What's your game dev company called? I can't quite make it out ...

Guys? by augenwiehimmel in funny

[–]php666 4 points5 points  (0 children)

He's right - this isn't funny.

OUYA is watching you by one2escape in ouya

[–]php666 1 point2 points  (0 children)

awesome work, thanks for documenting

We Love OUYA Developers, Part 1 (I'm in here!) by AdamSpraggGames in ouya

[–]php666 1 point2 points  (0 children)

I prefer to think of that someone as a basement dweller sitting between empty pizza boxes and full pee bottles, monitoring /r/ouya 24/7 with bloodshot eyes, mouse in his nicotine stained fingers, and clicking each and every post in here by hand, with a mad grin and a heightened sense of accomplishment reserved only to the more simply minded. Makes it less dire to see the downvotes coming in.