https://github.com/objarni/casual
The same "casual" program in different languages
https://github.com/objarni/casual
Last synced: 11 months ago
JSON representation
The same "casual" program in different languages
- Host: GitHub
- URL: https://github.com/objarni/casual
- Owner: objarni
- License: mit
- Created: 2018-01-26T06:48:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-21T12:15:45.000Z (over 8 years ago)
- Last Synced: 2025-02-06T11:55:22.957Z (over 1 year ago)
- Language: Lua
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Casual - examples of mundane programming tasks in X languages
=============================================================
Why?
----
I sit with many different languages every day, and small syntactic
differences annoy me to have to google all the time. IntelliSense
does not help with how to write an object literal, or a for-loop!
Dogma
-----
- All examples should be contained within one page of code
- The examples should show 'conventional programming' in each language
How?
----
X number of self-verifying input files in different languages
display the syntax of needed 'language features' clearly and within
one page of code (no more!).
Any and all of the examples should:
1. Object literal --> A
2. Parse inputJSON --> B
3. Produce a text string from A and B --> Atxt, Btxt
4. Verify Atxt == Btxt
5. Produce a text report from A --> Areport
6. Verify Areport equals report_str
What?
-----
* Looping over lists
* Writing object literals, including lists, string properties
* Reading JSON string
* Asserting
* Interpolating and concatenating string