unmaintainable-code
Nginx
Our great sponsors
- Onboard AI - Learn any GitHub repo in 59 seconds
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- SaaSHub - Software Alternatives and Reviews
unmaintainable-code | Nginx | |
---|---|---|
58 | 86 | |
9,804 | 19,430 | |
- | 1.1% | |
0.0 | 0.0 | |
over 2 years ago | 14 days ago | |
C | ||
- | - |
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.
unmaintainable-code
- How to make intentionally bad code?
-
Show HN: Spaghettify – A VSCode Extension to make your code worse with AI
Two thoughts:
* This is ridiculous. Why would you do this? Which made think of this quote: "Which is ridiculous and unnecessary but when has that ever stopped programmers?" from one of my favorite Tom Scott videos: https://www.youtube.com/watch?v=gocwRvLhDf8
* How to Write Unmaintainable Code: https://github.com/Droogans/unmaintainable-code
- i litterally died what was my friend tryiing to do here????
- Koje knjige/dokumente preporučujete
-
how to justify foo and bar;
How to Write Unmaintainable Code is basically a must-read for any programmer in my opinion, even so many years later.
-
I wrote the least-C C program I could
Oh my the defines. What is language and semantics?
Very ugly, ill-defined, uncodified democracy. No one tells you when you vote, no one counts up the votes, there are no official results.
When you speak or communicate with someone else, you are voting with them. "I vote this word means X, for a poor/crude/coarse agreement of what X is the first place."
And this is propaganda at its finest. Evil doublespeak: say one thing, and it actually is another. Snuck in.
Fantastic.
-
How do you make code unnecessarily obscure?
May I anti-recommend (i.e. suggest you read so as not to follow the advice of it) this wonderfully written guide here on unmainable code.
-
Bad variables
How To Write Unmaintainable Code
Nginx
-
Not knowing the /proc file system
So yes, I don't think I have ever typed out "fileDescriptor" but I do label these things to make it more legible!
OP has a point. We could do with more discipline when it comes to naming conventions in C. We're not using punch cards any longer.
Somewhat related, there's another comment about the 80 char max... clang-format keeps to this. I'm kind of OK with this particular remnant of punch cards because I can get four editor windows open side by side on my ultra wide monitor.
The nginx codebase is pretty freaking fantastic and I've learned a lot from just randomly browsing through the source, but I mean, come on:
https://github.com/nginx/nginx/blob/master/src/core/ngx_arra...
if ((u_char *) a->elts + a->size * a->nalloc == p->d.last) {
-
Simplifying preview environments for everyone
For frontend applications - it can be quite simple to implement preview environments with a simple static storage and a reverse proxy tool like Nginx or Traefik.
- kind - Configuring Extra Port Mappings & IPv6 Networking - Part 4
-
mTLS everywhere!
Last but not least, we should configure TLS for upstreams. In the following, I'll use a simple nginx instance that responds with static content. Use it as an illustration for more complex upstreams.
-
Lessons Learned Writing A Zero Trust NGINX Module (in C) - How I Spent Hours Debugging NGINX
set(NGINX_CONFIGURE_ARGS "--with-threads" "--with-compat") if (DEBUG) set(NGINX_CONFIGURE_ARGS "--with-threads" "--with-compat" "--with-debug") endif() message("args ${NGINX_CONFIGURE_ARGS}") # build against nginx at the version specified by GIT_TAG. nginx uses custom auto configuration scripts that # creates header files that are specific to the current host and output to /objs/*.h. ExternalProject_Add( nginx PREFIX ${CMAKE_BINARY_DIR}/_deps/nginx GIT_REPOSITORY https://github.com/nginx/nginx.git GIT_TAG release-1.23.2 TIMEOUT 10 CONFIGURE_COMMAND ./auto/configure ${NGINX_CONFIGURE_ARGS} INSTALL_COMMAND "" #empty install command to disable install UPDATE_COMMAND "" #empty update command to disable update LOG_DOWNLOAD ON BUILD_IN_SOURCE 1 #build inside of the downloaded repo's source directory as expected by auto/configure ) if(NOT DEFINED $ENV{ZITI_SDK_C_BRANCH}) SET(ZITI_SDK_C_BRANCH "main") endif() FetchContent_Declare(ziti-sdk-c GIT_REPOSITORY https://github.com/openziti/ziti-sdk-c.git GIT_TAG ${ZITI_SDK_C_BRANCH} ) set(ZITI_BUILD_TESTS off) set(ZITI_BUILD_PROGRAMS off)a FetchContent_MakeAvailable(ziti-sdk-c) add_dependencies(${PROJECT_NAME} nginx) ExternalProject_Get_property(nginx SOURCE_DIR) message("project name ${PROJECT_NAME}") target_include_directories(${PROJECT_NAME} PUBLIC "${SOURCE_DIR}/objs" PUBLIC "${SOURCE_DIR}/src/core" PUBLIC "${SOURCE_DIR}/src/event" PUBLIC "${SOURCE_DIR}/src/event/modules" PUBLIC "${SOURCE_DIR}/src/http" PUBLIC "${SOURCE_DIR}/src/http/modules" PUBLIC "${SOURCE_DIR}/src/mail" PUBLIC "${SOURCE_DIR}/src/stream" PUBLIC "${SOURCE_DIR}/src/os/unix" ) target_link_libraries(${PROJECT_NAME} ziti)
- Pleroma 2.5.0 の構築 - 環境: Elixir 1.11 on OpenBSD 7.1
-
Quickly checking that a string belongs to a small set
nginx uses switch on a combination of length + specific known characters as part of a similar optimization.
https://github.com/nginx/nginx/blob/9c7a2c7ce4ad02a36df1bb0e...
-
Pleroma 2.5.0 with Elixir 1.11 on OpenBSD 7.1
In order to publish it as service, you have to combine it with some web server. In Pleroma, the cases using nginx seem more than Apache or Caddy.
-
How can I install nginx v 1.3.13 and above on ubuntu 22?
I developed an application which utilizes web sockets and tried to host it on digital ocean vps (ubuntu 22). I discovered that nginx supports web sockets starting from v 1.3.13 and I reinstalled nginx following the official guide http://nginx.org/en/linux_packages.html#Ubuntu. However the version which got installed was 1.23.3. On nginx main page https://nginx.org/, it seems that the version of the latest release is 1.29 . Can someone explain why is that the case? And how can I get nginx v1.3.13+ on my server?
On nginx main page https://nginx.org/, it seems that the version of the latest release is 1.29 .
What are some alternatives?
Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
envoy - Cloud-native high-performance edge/middle/service proxy
Squid - Squid Web Proxy Cache
nestjs-monorepo-microservices-proxy - Example of how to implement a Nestjs monorepo with no shared folder
Hiawatha - Hiawatha is an open source webserver with security, easy to use and lightweight as the three key features. Hiawatha supports among others (Fast)CGI, IPv6, URL rewriting and reverse proxy. It has security features no other webserver has, like blocking SQL injections, XSS and CSRF attacks and exploit attempts. The built-in monitoring tool makes it perfect for large scale deployments.
darkhttpd - When you need a web server in a hurry.
Apache - Mirror of Apache HTTP Server. Issues: http://issues.apache.org
Jenkins - Jenkins automation server
YARP - A toolkit for developing high-performance HTTP reverse proxy applications.
h5ai - HTTP web server index for Apache httpd, lighttpd and nginx.
uWSGI - uWSGI application server container
Cherokee - Cherokee Web Server