The Mother of All TODO Notes
I asked ChatGPT to "write a program in Rust that transpiles TypeScript code to JavaScript code" and it printed out the mother of all TODO notes. (Sorry @kdy1dev) Write a program in Rust that transpiles TypeScript code to JavaScript code. Here is an example program in Rust that transpiles TypeScript code to JavaScript code: Copy code use std::fs::File; use std::io::{BufRead, BufReader}; fn main() { // Open the TypeScript file let ts_file = File::open("input.ts").expect("Unable to open file"); // Read the file line by line let reader = BufReader::new(ts_file); for line in reader.lines() { let line = line.expect("Unable to read line"); // Transpile the TypeScript line to JavaScript let js_line = transpile_ts_to_js(line); // Print the transpiled JavaScript line println!("{}", js_line); } } fn transpile_ts_to_js(ts_line: String) -> String { // TODO: Implement the actual transpilation ts_line }
A social media post shows a user asking ChatGPT to write a Rust program that transpiles TypeScript into JavaScript. The generated example contains a placeholder function with the comment “TODO: Implement the actual transpilation,” making the joke that the supposedly central task was never implemented. It is shared as a humorous reaction to AI-generated code that looks complete but leaves the hardest part unfinished. EN: A social media post shows a user asking ChatGPT to write a Rust program that transpiles TypeScript into JavaScript. The generated example contains a placeholder function with the comment “TODO: Implement the actual transpilation,” making the joke that the supposedly central task was never implemented. It is shared as a humorous reaction to AI-generated code that looks complete but leaves the hardest part unfinished.
- @gentoomemes / 1503 2022-12-06
- @rzeczyzabawne / 3873 2022-12-06
- Type
- image
- Size
- 535×800 · 63.6 KiB
- Mood
- саркастичный / sarcastic
- Language
- en
- Added