There's a niche for something that's as sloppy-easy-to-get-started as PHP, but with a more concise/consistent/powerful language. Perhaps, a "PYP" - Python with PHP characteristics. This is a little like that.
The FuqIt Web Framework
41–50 of 84 posts
Re: The FuqIt Web Framework
#42 cd not_my_porn_folder
python -m SimpleHTTPServerRe: The FuqIt Web Framework
#43There's a niche for something that's as sloppy-easy-to-get-started as PHP, but with a more concise/consistent/powerful language. Perhaps, a "PYP" - Python with PHP characteristics. This is a little like that.
Someone asked on stackoverflow why PHP is so easy to learn, so I wondered how much learning curve we could cut away. Drop .erb and .haml files in a dir. Done.
Re: The FuqIt Web Framework
#44Re: The FuqIt Web Framework
#45Well 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…
I think what happened was it started out as a quick and dirty thing that just grew and grew.
Re: The FuqIt Web Framework
#46Earlier quoted context omitted.
Isn't the interesting idea basically CGI?
Depending on how much you want to reduce it, you can dismiss almost anything having to do with a webserver this way. Some more powerful versions that dismiss any and all computer related ideas that have output: - But isn't that just calling a bunch of syscalls? - But isn't that just moving a bunch of bytes around?
The brilliant idea behind CGI is that you set a directory as your cgi-bin, drop an executable file, and then the webserver will run that executable and pass in a bunch of data from the request as environment variables and on STDIN, and then send STDOUT back to the browser. It's an incredibly powerful idea with a really simple implementation. You can write your scripts in any language, they can do anything, they can present further abstractions and run other scripts, they can embed other languages like Python or PHP or Haskell, and they can embed other frameworks like Django or Rails. And all you have to do is drop a file in a directory and make it executable. All because of the power of plain text: CGI "speaks" a uniform interface that any computer language can understand.
When I saw FuqIt, I thought of CGI because the brilliant idea behind FuqIt seems to be "Drop a Python file or Jinja template in a directory, and we'll call it via a uniform interface". Kinda like CGI, huh, except it's restricted to Python? (Actually, there's another standard - WSGI - that's built around the same principles as CGI but restricted to Python.)
Re: The FuqIt Web Framework
#47The first version now is minimalistic. But to be a second Ruby on Rails framework, your system will get more complicated soon. Good luck.
Re: The FuqIt Web Framework
#48There's a niche for something that's as sloppy-easy-to-get-started as PHP, but with a more concise/consistent/powerful language. Perhaps, a "PYP" - Python with PHP characteristics. This is a little like that.
Re: The FuqIt Web Framework
#49Re: The FuqIt Web Framework
#50 def do_GET(self):
try:
self.knife_or_banana(self.path)
[...]
def knife_or_banana(self, path):
# THIS AIN'T THAT SECURE, BUT FUQIT
root, ext = os.path.splitext(path)
[...]