Menu

1 / 5

1,978 lines: Laravel for COBOL is smaller than its joke

DEV Community: laravel·frank chu·1 day ago
#KPWu6GwO
#devtolaravel#devto#dev#lines#cobol
Long article (832 words) — no AI summary yet.
Reading 0:00
15s threshold

I counted 1,978 lines of COBOL in the whole Laravel for COBOL repo — 41 files, zero lines past column 72. The joke framework that hit Hacker News this week is smaller than most people's node_modules cleanup PRs, and its most-quoted number checks out exactly: the user controller really is 188 lines.

Laravel for COBOL is, by its own README, "an unofficial, satirical project." It pitches routing in the PROCEDURE DIVISION, an Eloquent-style ORM over indexed files, RACF-flavored auth, and a CLI whose name I will not spoil. The satire only works if the code is real, so I cloned it and counted instead of laughing and moving on.

What I measured

import pathlib files = [ p for p in pathlib . Path ( '.' ) . rglob ( '*' ) if p . is_file ( ) and '.git' not in p . parts and p . suffix in ( '.cbl' , '.cpy' ) ] total = blank = comment = over72 = 0 for p in files : lines = p . read_text ( errors = 'ignore' ) . splitlines ( ) total += len ( lines ) blank += sum ( not l . strip ( ) for l in lines ) comment += sum ( l .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.