• Latitude D800 Battery

    日期:2009-08-26 | 分类:Dell laptop battery | Tags:Latitude D800 Battery

    #6) The Modularity
    I mostly ignored Django for most of its life because I thought it was just another web framework.dell laptop battery Yawn. Yay. A framework. Joy. Models. Views. Controllers. Oh boy, I think I’ll just stick to one of the hundreds I already know.

    Then I saw James Tauber talking about Pinax but more importantly, Latitude D830 Battery, MM165 Battery, YD626 Battery, 312-0393 Battery Latitude D800 Battery,talking about how 2008 was the year of modularity (he used different words). Apparently, Django has been pushing the idea of having discrete “applications” that act within a “site” as cooperating but separate components.

    The idea is that, unlike other “components”, these ones act like decoupled little web sites you can put in and configure for a site, and through the magic of HTTP work seamlessly. From this you can have fully packaged applications that implement functionality you need, like authentication, Latitude D830 Battery,or caching, or tribes without having to gut your whole application and muck around in code.

    If that particular component isn’t working well for you, then you can just modify it, or write your own. Since it’s loosely coupled, and you hopefully kept it that way, then the change isn’t too painful.

    This change in the architecture of a site from “the site is the application” to the “site has many small applications” is powerful to me. I know other frameworks tried similar things, but since they tried to implement their plugin/module systems through code rather than web plumbing it tends to be more brittle.

    Obviously, this can’t be all roses, as I’m sure anyone who’s tried to use Django apps will say,Latitude D830 Battery, MM165 Battery, YD626 Battery, 312-0393 Battery Latitude D800 Battery, but the fact that there’s a concerted and coordinated effort to make it a central part of Django means your burns will be only 1st degree.

    #7) The Simplicity
    At first, I was pretty worried when going through the tutorial because it had me returning HttpResponse objects in the buff with no help.MM165 Battery, As I went through it though they corrected this, and it turned out that much of the code I was writing (or just pasting, 'cause I’m lazy) was very small for a lot of work done. Each paragraph of the tutorial made the code for a generic CRUD application smaller and smaller until they showed generic views eliminating most of it.

    At Django’s most complex it was manageable, and their documentation leads you down the path of seeing the more complicated guts, and then getting easier and easier. The end result of this is you see all the simplicity you can use, but you also get to know the more detailed ways in case you have to do something weird.

    This simplicity seems to be everywhere. What goes in an app? Usually just a few files with some functions in them, sometimes some regex. How do you return a response? Just make a response object. How do you set variables to a template? Just use a hashmap.

    I’m sure there’s lots going on behind the scenes,YD626 Battery, but for the most part it’s been refreshing to just look at a framework and not have to dig through mountains of meta-programming just to find out why my application is showing a nasty 500 error page with headers.

    #8) The Jazz
    Alright, so I’m studying Jazz, and the constant references to jazz in the community really makes me smile. I mean who doesn’t love that old school cheesy as hell love ballad jazz? That alone makes the project worth it, Latitude D830 Battery, MM165 Battery, YD626 Battery, 312-0393 Battery Latitude D800 Battery,but check out Adrian play “Tenderly” by Chet Atkins.

    Dude can play.

    #9) The Python
    When it comes down to it, Python’s just another scripting language. Whatever, it’s not better or worse than the others. It’s not revolutionary, its syntax has some warts, but it’s well documented, doesn’t crash, and has tons of great libraries already made for me. For things like making web applications,312-0393 Battery Python is great.

    People who try to learn Python however seem to get hung up on three things: the “syntax”, the “white space”, and the “functions”.

    First, when I say syntax, I don’t mean the real definition of syntax, but the Java guy’s definition of “syntax” which means “Curly braces so I know where things begin and end.” To people who come from a bounded language like Java reading Python is like having your eyes fly off a cliff at every turn of a dark road. Really, it’s just something you have to get used to if you want to use Python. Every language you’ll switch to will give you the same problems, but working your way through it slowly will make you a better coder.

    Second, the “white space” problem is really different from the syntax for people because what they mean is that they have problems typing in Python code. Usually I only hear this complaint from Emacs users because somehow Emacs fucked up the Python editing mode so that it uses inconsistent tabs and spaces. Latitude D800 Battery,In Python code mixing tabs and spaces is the death! Yet, here’s Emacs just going at it chewing Python like mad. I usually recommend people use any other editor than Emacs, but if they do,Latitude D830 Battery, MM165 Battery, YD626 Battery, 312-0393 Battery Latitude D800 Battery, beg for help tuning it specifically for Python first. Getting to where all code you edit in Python is always indented with spaces is important.

  • Latitude D820 Battery

    日期:2009-08-26 | 分类:Dell laptop battery | Tags:Latitude D820 Battery

    One Laptop Battery Later And I'm A Django Fan
    I haven’t had much time to do any coding since I’ve been studying music full time, and I’m taking these two weeks to work on all the pent up projects and work I’ve been ignoring. One of those projects is to finally try out Django tonight. dell laptop battery I’d been avoiding it because I didn’t want to get sucked into yet another web application framework I didn’t need,Latitude D620 Battery, 312-0386 Battery, PC764 Battery, TD175 Battery, Latitude D820 Battery, but after spending one laptop battery going through the tutorial I just got one thing to say:

    Django Fucking Rocks
    Now, I know that when I drop the f-bombs and do crazy shit like disagree with people they get their panties in a bunch and call it trolling. Calling disagreement trolling is kind of the inverse of Godwin’s law but I simply gotta throw the passion in there and say it FUCKING rocks.

    However, I’m about to qualify this sentiment with the reasons why, based on my experience as a web developer for nearly every industry that uses software, Django is truly good stuff. Most of my review of Django so far is based on this experience, and it in no way states that your framework isn’t also good.

    As you read this, turn off the binary bit for a minute and realize that I’m going to tell you what I like about Django so far,Latitude D620 Battery, not how Django is better than your framework.

    Got the bit turned off? You sure, 'cause I don’t want to get emails debating me that start with your framework also does this stuff. Latitude D620 Battery, 312-0386 Battery, PC764 Battery, TD175 Battery, Latitude D820 Battery,That’s nice, but not what I’m talking about. What I’m talking about is what I like about Django.

    And now, in order of how I encountered them, the top 10 things I like about Django.

    #1) The Documentation
    The Django Documentation is pretty damn good so far. I think modern web frameworks generally have good free documentation, but so far Django’s has been very easy to follow, attractive, and dead accurate. I’m sure I’ll run into errors here and there,312-0386 Battery, but when I get comments like this from the community:

    [ubernostrum] zedas: one thing that’s not so well-documented, actually is the admin.
    I know that the people doing the documentation care enough to take changes, patches, and feedback.

    Currently I’ve read the Overview, Installation, Tutorial and about 1/3 of the Django Book 2.0 and I’ve browsed many random topics like signals which look very useful.

    Based on this review of the documentation, I can say that I haven’t hit any major errors, problems with clarity, or problems finding anything.

    #2) The Community
    I just gotta say Python people are pretty nice. Sure, geek communities everywhere are full of weird people, and I guess that’s why I get along with them so well. But in the Python world, I’m probably the meanest guy they know.

    What’s more important though is they started helping right away. PC764 Battery,I was on the #django channel on irc.freenode.org and just mentioned that I was learning Django. Now, I didn’t actually ask for help, since I’ve been doing this long enough to figure this stuff out fairly quick, but people started pointing me at better docs without me asking.

    It’s refreshing to run into a group who’s attitude is, “Oh,Latitude D620 Battery, 312-0386 Battery, PC764 Battery, TD175 Battery, Latitude D820 Battery, newbie, ok read this and that and that, and oh that too but watch out for…”

    #3) The Admin
    For those of you who don’t know, Django has this cool feature called The Admin which uses your object model and the components you’ve installed in your site to provide you with a fully functioning admin console. With this you can create sites, alter objects, list, delete, sort, filter, drill down, make tables, everything you do in 90% of all enterprise applications.

    Going through the admin, and how easily you can make your own modifications,TD175 Battery, I just feel angry because I’ve had to write that same dumb “sortable-table-of-objects-with-drill-down-filters” over and over and over. Each time in a different framework with a different language. I look at the “log of things you’ve done” to the right and cry. I’ve had to implement that over and over. Each time it was “always way different from the last time” and then it was just exactly what Django has staring at me and mocking me.

    I say, if you’re doing the typical enterprise bullshit coding that’s nothing more than a ton of tables with sorting, you should seriously be trying out the Django Admin. Even if all you do is use it as a way to get a prototype in front of users for initial feedback and discovery it will still save you mountains of work later.

    #4) The Admin Docs
    Once you install docutils this wonderful world opens up where gnomes run around singing and telling you naughty little secrets about your application. With that one skeleton key, your Django Admin will actually let you drill into all your models and views to see their structure.Latitude D820 Battery, No more dumping SQL databases to find out the name of that damn table for the Person class and whether there’s a VARCHAR on it causing you problems.

    Instead you just hop over to the console and browse around. Take a look, see what the models are doing, glance at the views. Forget the template syntax? It’s there. Forgot what URL to use for the user view? It’s there. Need to know all the tags?Latitude D620 Battery, 312-0386 Battery, PC764 Battery, TD175 Battery, Latitude D820 Battery, Yep, all there.