Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python Parsin

Name: Anonymous 2012-01-30 6:54

Hey /prog/, How can I make this code look cleaner?

Code:        http://pastebin.com/YetPiWJa
Input:       http://pastebin.com/h8BgFYge
NEMA format: http://www.gpsinformation.org/dale/nmea.htm#nmea

Would censor out my info, but fuck it.

Name: Anonymous 2012-01-30 9:11

>>4
I personally believe that forcing users to stick with one single style over the enirety of the language is a good thing. I programmed in C for three years, until I found the Linux Kernel Style my code was absolute C soup and unintelligble to most programmers at a glance. Forcing a consistent style on the user makes code readable across the entire language. I can go look at any other snippet of Python and read the code for what it is rather then "What the fuck is the scope on this line?". Fucking Beautiful.

And about powerful, I can generally write anything (for any nontrivial example) in 10%-25% the amount of code a C varient and still maintain clairity.

And hell, if you wankers still want to write C and harness the awesomeness of python you can do it by writing a simple module. Python is fucking boss like that.

Come at me bro.

(In other unrelated news, why the fuck does Dillo work so well over SSH compared to Firefox/Chromium?)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List