NewsCrawler.org

Laravel for COBOL: a satirical port of a web framework

Contribute to pihedy/laravel-cobol development by creating an account on GitHub.
Image: github.com

Laravel for COBOL is an unofficial, satirical GitHub project that imitates the Laravel PHP web framework in COBOL. The authors state that it is not affiliated with Laravel or Laravel Holdings Inc. and uses the name only for parody. The README lists features such as routes declared in the PROCEDURE DIVISION, an Eloquent-style ORM, batch-job queues, and RACF-compatible authentication.

In the examples, the data model is a copybook[1] that also serves as the schema, and model status codes follow VSAM[2] file statuses, so '23' corresponds to a ModelNotFoundException. Controllers choose actions with EVALUATE instead of PHP method dispatch, and the authors say the PHP controller is about fifteen lines while theirs is 188. Each middleware runs twice, before and after the controller.

Setup requires Docker and Git, and tasks run through a ./cobtisan command-line tool. By default, data is stored in GnuCOBOL indexed files. The project also lists first-class deployment on z/OS[3] and includes a benchmark command that compares it with Laravel (PHP) on a $5 VPS with 1 vCPU and 1 GB RAM.

Read the original github.comDiscussion

Discussion

Most commenters find the project funny and compare it with other satirical ports such as Laravel for Rust and Go, and one suggests a Laravel for Brainfuck. One commenter agrees that languages are becoming an implementation detail and links a study on coding agents building COBOL systems.

Sources

Published: First seen: Читать по-русски

Open as a page