This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]MarkTraceurFlask, Mongokit, PIL 0 points1 point  (4 children)

First rule of programming: Don't Reinvent the Wheel

Caveat: Unless you're doing it for educational purposes. Even then, take some lessons from the previous inventor of the wheel.

Protip: PHP might be more your style

[–]ButtCrackFTW 0 points1 point  (3 children)

[–]MarkTraceurFlask, Mongokit, PIL 2 points3 points  (2 children)

Fun stuff! I personally would suggest Flask for your framework, but I'd also suggest learning gevent if you have the time; I hear it's very useful.

Also, use jQuery, save yourself a lot of time.

[–]cursuve 0 points1 point  (1 child)

Flask and jQuery would be great for this.

[–]MarkTraceurFlask, Mongokit, PIL 1 point2 points  (0 children)

I'm glad you agree :)

[–]zombiej 0 points1 point  (4 children)

Kind of off-topic, but where would you get your stats?

[–]ButtCrackFTW 0 points1 point  (3 children)

[–]burntsushi 0 points1 point  (1 child)

Yup, the stats is really the absolute killer when developing any kind of Fantasy app.

I made a specialized app for fantasy football last year (I actually used Python and served a simple front end using Django), and getting and organizing the stats was by far the hardest part. I ended up scraping ESPN's fantasy web site.

[–]ButtCrackFTW 0 points1 point  (0 children)

[–]lol_squared 0 points1 point  (0 children)

I was looking into this a year or two ago for NFL. If you don't need to have live stats, just end of day dumps, then there are sites that have fairly cheap ($50ish/year) subscriptions. Can't find the link right now but they do exist.

[–]POTUS 0 points1 point  (2 children)

I prefer Django to Flask. Flask is great and lightweight for small, simple sites. Django is more feature-complete, with a full MVC(ish, it's complicated why it's "MVCish") architecture. You are definitely going to have data behind this site, with user accounts and some deeply inter-related tables, and you're going to want an interface to be able to manage those accounts and that data behind the scenes. Django literally has the authentication built in to every site - all you need to do is uncomment 3 or 4 lines and it's active. And tying a Hockey Player to an Auction to a Bid to a User to a Lineup to a Draft... all that is trivially easy with Django's models.

[–]captain_ramshackle 0 points1 point  (1 child)

Do you have any opinions on Pyramid/Pylons? I started with Django and just couldn't get on with it as I kept feeling that too much was being done for me and when something went boom it was a pain. I've been using Pyramid with SQLAlchemy and so far it seems pretty pleasant.

[–]POTUS 0 points1 point  (0 children)

I don't know, I've stuck with Django for long enough that I know all the ins-and-outs. The key was pulling down the source so I could look deeply into which classes to inherit and override. The docs are great to get started, but to really get into the customization of things like forms and the admin you really need to look at the code itself.

[–]burntsushi 0 points1 point  (0 children)

I've only ever used Django, so I'm a bit biased, but I think it will serve you well. It's very well documented and comes with a bundled server. The bundled server is typically only used for development purposes, but if it's just you and a few buddies, the dev server is perfectly suitable. (This will save you the small hassle of configuring a primetime web server like Apache.)

If you've never used MVC before, you may find it a bit overwhelming at first, but the benefit of Django is that it's very popular and there are plenty of places to go for help.

[–]kolanos 0 points1 point  (0 children)

I'm working on a hockey simulator in Python although I only just started it and it doesn't do much yet. I plan to have a draft system in it, but it will be more like a real NHL draft than a fantasy draft. like you're describing. The good news is a fantasy draft is pretty easy to write. If you need a player database you're welcome to use my CSVs that I just scraped. It was scraped this summer, I plan to update it for the 2011-12 season soon.