{"id":18026852,"url":"https://github.com/yegor256/elegantobjects","last_synced_at":"2025-10-07T01:53:58.338Z","repository":{"id":66354633,"uuid":"65680327","full_name":"yegor256/elegantobjects","owner":"yegor256","description":"Supplementary materials for \"Elegant Objects\" book","archived":false,"fork":false,"pushed_at":"2024-04-02T10:53:52.000Z","size":57,"stargazers_count":23,"open_issues_count":6,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-17T14:51:08.594Z","etag":null,"topics":["book","oop","oop-principles"],"latest_commit_sha":null,"homepage":"http://www.yegor256.com/elegant-objects.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yegor256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-14T18:22:39.000Z","updated_at":"2024-04-24T07:37:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ef00e39-7ade-4dc5-ae35-0ce1ad2230a1","html_url":"https://github.com/yegor256/elegantobjects","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yegor256/elegantobjects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Felegantobjects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Felegantobjects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Felegantobjects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Felegantobjects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/elegantobjects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Felegantobjects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708028,"owners_count":26031932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["book","oop","oop-principles"],"created_at":"2024-10-30T08:08:17.047Z","updated_at":"2025-10-07T01:53:58.309Z","avatar_url":"https://github.com/yegor256.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://rawgithub.com/yegor256/elegantobjects/master/cactus.svg\" height=\"100px\"/\u003e\n\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/takes/blob/master/LICENSE.txt)\n\nThis repository contains all code samples from\n[Elegant Objects](http://www.yegor256.com/elegant-objects.html) book,\nboth\n[vol.1](http://goo.gl/W2WVMk) and\n[vol.2](http://amzn.to/2oYNncj).\n\n## Changelog\n\n8/13 [`e54ef498a`](https://github.com/zerocracy/books/commit/e54ef498a) (thanks to Janez Kuhar)\n\n  * typo in Section 2.3: `multiplicand` replaced with `factor`\n  * typo in Section 2.3: \"objects of classes\" instead of \"classes\"\n  * Assembly code in Section 3.2.1 is fixed, it was not correct before\n  * `32db197` reverted, we do need `return` there!\n\n7/9 [`af90e7f01`](https://github.com/zerocracy/books/commit/af90e7f01) (thanks to Mauricio Togneri)\n\n  * new champion: `android.view.View` into Vol.2\n\n7/2 [`7df68b002`](https://github.com/zerocracy/books/commit/7df68b002) (thanks to Christian Köstlin)\n\n  * \"a Factory Pattern\" replaced with \"the Factory Pattern\"\n  * \"CRLF\" renamed to \"EOL\" in Section 2.5\n  * \"synchronized(this.dollars)\" replaced with \"synchronized(this)\" in Section 2.6.6\n\n5/7 [`4c94462b3`](https://github.com/zerocracy/books/commit/4c94462b3) (thanks to Krzysztof Szafrański)\n\n  * Foot note about inevitable recursion in Fibo example\n\n4/21 (thanks to John Page): multiple small typos\n\n4/18/2017 **v1.4** published (with Vol.2).\n\n2/10 [`20cfbf9`](https://github.com/zerocracy/books/commit/20cfbf95184f4a83d07c1fc662d3f4ec2b306017) (thanks to Andrey Valyaev)\n\n  * The entire C++ example in Section 3.4 to the one you can\n    find in [this file](https://github.com/yegor256/elegantobjects/blob/master/vol-1/chapter-3/3.4/immutable-list-cpp/main.cpp).\n  * Inaccurate C++ attribute definition fixed in Section 3.5.1:\n    `const std::string\u0026 print();` replaced with `std::string print() const;`.\n\n2/8 [`9d84f5f`](https://github.com/zerocracy/books/commit/9d84f5f21c9a97bac9dd2b58ef6b243e13fd3c0d) (thanks to Andrey Valyaev):\n\n  * Typo fixed in Section 2.5: `\"{ %s }\"` replaced with `\"{ %s }%s\"`.\n  * Typo fixed in Section 3.2.2: `def events` replaced with `def evens`.\n\n1/31 [`6a57308`](https://github.com/zerocracy/books/commit/6a57308ee6fad5db31ee74e3b74429837177ee8e) (thanks to Artem Gapchenko):\n\n  * _Object Oriented Software Construction_ by Bertrand Meyer was mentioned\n    in a footnote, in Section 2.4.\n\n1/7/2017 **v1.3** published.\n\n1/5 [`6f69b54`](https://github.com/zerocracy/books/commit/6f69b545fac8db24dc8e7cc0e6a330ee95f454e8) (thanks to Ilya Vassilevsky):\n\n  * Semi-colon removed from Ruby code in Section 1.1.\n  * Type in Section 1.3, `Code` replaced with `Cash`.\n\n1/1 [`29f0ae9`](https://github.com/zerocracy/books/commit/29f0ae9e08a04c11286a38ffd779870476bcf8f9):\n\n  * Java code in Section 2.6.6 was replaced with the code\n    from [this file](https://github.com/yegor256/elegantobjects/blob/master/vol-1/chapter-2/2.6.6/unsafe-cash/Main.java).\n\n12/25 [`8126324`](https://github.com/zerocracy/books/commit/81263242faee149924cabb50525b1f904cd66b01):\n\n  * Right after the long Java script in Section 2.6.6 I added this\n    text: \"Of course, the script must `shutdown()` the `svc` at the end.\n    I skipped that part for the sake of brevity.\"\n\n12/14 [`32db197`](https://github.com/zerocracy/books/commit/32db197592060403434f0fc78382f854a982a35c) (thanks to Andrey Valyaev):\n\n  * Typo in Java script in Section 4.1, after\n    `print(\"Can't print; it's not a title.\")` goes `return;`.\n  * Typo in Java script in Section 3.2.6:\n    `fee = 2.5` replaced with `rate = 2.5` and\n    `fee = 3.0` replaced with `rate = 3.0`.\n  * Typo in Java declaration of interface `Exchange` in Section 2.9:\n    `toUsd(String target)` replaced with `toUsd(String source)`\n    and `return this.origin.rate(\"USD\", target)` replaced with `return this.origin.rate(source, \"USD\")`.\n\n9/12 [`9e3e7ff`](https://github.com/zerocracy/books/commit/9e3e7ff853fe6f21446ed65255cf2fff03f2eef6):\n\n  * Typo in preface: `thew` replaced with `threw`.\n\n8/20 **v1.2** published.\n\n8/3 [`71eeb7d`](https://github.com/zerocracy/books/commit/71eeb7d769ae99499826a1105129a92f238c6774):\n\n  * A new footnote added to the paragraph talking about\n    `@RetryOnFailure` Java annotation in Section 4.2.4\n    with a link to [aspects.jcabi.com](http://aspects.jcabi.com/).\n\n7/15 [`13409df`](https://github.com/zerocracy/books/commit/13409dfb7ac44ebade4aca70629d43cbcd7ff077) (thanks to Nicole Cordes):\n\n  * Typo in Section 1.1: `a extension` replaced with `an extension`.\n  * Class renamed in Section 1.3: `IntegerAsString` to `StringAsInteger`.\n\n6/28 [`44420be`](https://github.com/zerocracy/books/commit/44420bea21bbc686f48121e2885105431c6b3545):\n\n  * C++ code fix in Section 4.4:\n    `Text t = new Text(\"/tmp/test.txt\")` replaced with\n    `Text t(\"/tmp/test.txt\")`.\n\n5/25 **v1.1** published.\n\n5/17 [`38f1ca8`](https://github.com/zerocracy/books/commit/38f1ca803545b26e7ebbf8dbe94efba4d1add943):\n\n  * Broken section reference in Section 1.2 fixed.\n\n4/20 [`9b245d0`](https://github.com/zerocracy/books/commit/9b245d0bab875b598a4697324176ac6a3880459b):\n\n  * Spelling mistakes fixed and introduced automated spell checking.\n\n2/22/2016 **v1.0** published.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Felegantobjects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Felegantobjects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Felegantobjects/lists"}