[Off-topic]: What do poems look like in lines of code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 13

[Off-topic]: What do poems look like in lines of code?

I'm trying to mix my passions; write and programming. That's why I'm trying to write poetry in lines of code. What other ways can I apply such poetic expressions to valid programming syntax? https://code.sololearn.com/wnnHSZ6is7HT/?ref=app https://code.sololearn.com/wJ2mgzt720Ao/?ref=app https://code.sololearn.com/wq6RAmgJZztw/?ref=app

27th Mar 2019, 2:48 AM
Francisco Choca
Francisco Choca - avatar
6 Answers
+ 15
Francisco Choca This is a great question and the first of its kind that I've personally come across. First thing that comes to mind is our one and only Paul Caron (a.k.a. ChillPill) and the madness... er, um I meant genius... Yeah... the genius behind some of his creative codes: https://code.sololearn.com/cRyRBylqY32L/?ref=app https://code.sololearn.com/WiRBeITg5MMi/?ref=app Seriously... take a look at what and how he implemented these codes with some creative function overrides. You might also want to research concepts like Fluent Interface and Method Chaining. Chai.js is a great implementation using these concepts to form programmatic instructions using sentence structures. See examples from their website: https://www.chaijs.com Cucumber is a framework utilizing human readable Gherkin language that converts to actual programming commands. Hopefully, these give you some ideas to consider.
27th Mar 2019, 4:45 AM
David Carroll
David Carroll - avatar
+ 7
Nice, I like it! I've been to a code poetry slam before, maybe you can find one in your area. Do try to keep the Q&A-section topical though, self-promotion posts should go in your personal feed instead.
27th Mar 2019, 3:10 AM
Schindlabua
Schindlabua - avatar
+ 6
For more inspiration, here are a couple of other links you might find interesting: https://www.ncwit.org/blog/you-can-code-can-you-haiku https://dev.to/ben/give-me-your-best-programming-haiku-54db
27th Mar 2019, 4:52 AM
David Carroll
David Carroll - avatar
+ 4
Thank you very much, David Carroll I will go through the links and study them. Thanks again for taking the time to answer me. Good day.
27th Mar 2019, 1:05 PM
Francisco Choca
Francisco Choca - avatar
+ 4
Maybe I am dumb but I don't see the purpose of code poetry.
28th Mar 2019, 2:27 AM
Sonic
Sonic - avatar
+ 2
No it's all good. It happens :)
27th Mar 2019, 3:48 AM
Schindlabua
Schindlabua - avatar