sozluk-cgi
FuckIt.py
sozluk-cgi | FuckIt.py | |
---|---|---|
3 | 24 | |
210 | 5,020 | |
- | - | |
10.0 | 0.0 | |
about 8 years ago | 9 months ago | |
Pascal | Python | |
MIT License | Do What The F*ck You Want To Public License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sozluk-cgi
-
Ask HN: What's your "it's not stupid if it works" story?
Using CGI protocol on a Windows server. IIS (Windows' own web server) basically interfaces with executables by running them, feeding them HTTP headers, and server variables through environment variables, and gets the response HTTP headers and the body from their STDOUT. It's very inefficient, of course, since every request requires spawning a new copy of the executable, but it had worked fine in its first months :)
Here is a very simple example from the original sources: https://github.com/ssg/sozluk-cgi/blob/master/hede.pas
-
The beauty of CGI and simple design
I wrote Eksi Sozluk, the most popular Turkish social platform to date, back in 1999 using Delphi as CGI executables[1]. Delphi was the tool that I knew best, and CGI worked for me at the beginning. I almost immediately started having problems with EXE files constantly active, making updates impossible (as it was Windows based), which required restarting the server for any kind of update.
CGI executables also caused problems when I switched to an Alpha AXP RISC server which emulated x86, bringing the performance to a crawl. That made me switch to classic ASP, and about 10 years later, to ASP.NET MVC with routing, unit tests, abstractions, jQuery, all the shiny things at the time.
Web didn't stop there of course; there came SPA's, React, Vue and whatnot.
Now, seeing the yearning for CGI in 2023 feels funny. Have we come full circle? :)
___
[1] https://github.com/ssg/sozluk-cgi
FuckIt.py
-
FuckIt.py VS exception_escaping - a user suggested alternative
2 projects | 17 Jan 2024
- Ask HN: What's your "it's not stupid if it works" story?
-
Sleekiest Python Trick you know.
Traditionally, you import a package and then use things from it to do a task. However, it is actually possible to have the import itself do stuff; I used this technique in python_ms to replicate the original JS module down to its import. And fuckit did it way before that.
- Fuckit.py makes sure your Python code runs whether it has any right to or not
- Works better than test1
-
Getting mentioned in a random issue on a random repository Iโve never even looked at. What is it? Spam.
"Hot programmer girls in your area, click here to get an invite to their private repositories. ๐๐๐๐๐"
- Why does Python have a PEGI age rating?
- some programming languages at a glance
-
That's actually a good idea (Python)
Someone already made it for you: https://github.com/ajalt/fuckitpy
- i litterally died what was my friend tryiing to do here????
What are some alternatives?
quickserv - Dangerously user-friendly web server for quick prototyping and hackathons
sentry-telegram - Plugin for Sentry which allows sending notification via Telegram messenger.
php - Prolog Home Page
aiounittest - Test python asyncio-based code with ease.
Trusted-CGI - Lightweight runner for lambda functions/apps in CGI like mode
Python Testing Crawler - A crawler for automated functional testing of a web application
vehiclelogserver - Vehicle logging server for Second Life vehicles
Selenium Wire - Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
preemptible-thread - How to preempt threads in user space
PyRestTest - Python Rest Testing
zfs - OpenZFS on Linux and FreeBSD
callee - Argument matchers for unittest.mock