4 ms·
Well must be a slow news day today so I'll say a few things about FuqIt for the high-minded HN crowd: 1. Don't run this at all in anyway that someone can acces
by zedshaw 13y ago
Well must be a slow news day today so I'll say a few things about FuqIt for the high-minded HN crowd:
1. Don't run this at all in anyway that someone can access it. It's ultra hackable. Extra points if people can point out why.
2. I basically am just goofing off. The idea though is this thought: "What if PHP got it right?"
3. There's some little tricks in there you may not have seen before. Take a look at the code if you're new to Python.
4. If I get around to it I may write a web server for this using my various web-server-maker chops and put in some of the Lamson code and then make it talk to ZeroMQ off of a URL similar to how it's doing jinja and python so it can be a full service web+email+messaging system configured off just files in a directory and then probably I'll get bored and do something else.
Enjoy!
- zeroecco 13y agoSpend more time on LRTHW. I need more lessons to get better!! (kidding)
- hartror 13y agoI've seen something similar done with the Mako templating library which allows mixing html and Python. We jokingly dubbed it PHPython, and it had grown into horrible spaghetti. I think what happened was it started out as a quick and dirty thing that just grew and grew.
- rdtsc 13y agoHey Zed that's pretty cool. I think this was submitted with a back-thought of possibly generating ridicule. It doesn't matter, anyone coding and playing with shit like this gets upvotes from me. I also like web.py (the framework conceived and built by Aaron Swartz) for some of the same reasons -- simplicity and cleanliness. Start with something like "let's see how would a clean and simple web framework look like in Python." That's beautiful I think. Yeah I know it hasn't exactly taken off and flask and friends surpassed it but I still like it. EDIT: corrected Aaraon Swartz's name (thanks bensw)
- bensw 13y agos/Schwarz/Swartz
- vph 13y ago>That's beautiful I think. Yeah I know it hasn't exactly taken off and flask and friends surpassed it but I still like it. That reason it still hasn't taken off is that Aaron is very like Zed; they are grasshoppers. They get bored easily from doing something.
- toyg 13y ago:s/is/was/ :(
- kibibu 13y agoI'm going to assume the "ultra hackable" is thanks to requesting '../../phpmyadmin/config.php' or whatever. Oddly enough, I can't easily see any way to load a random (system-level) python module, thanks to including the 'app' package explicitly in the load_module - IIRC you can't resolve imports outside a top-level package.
- davenull 13y agoThis looks cool. BTW, thanks for helping me not feel like a total moron while learning Python, the hard way was the right way.