{"id":28324672,"url":"https://github.com/sendyhalim/naming-things","last_synced_at":"2026-02-12T16:04:53.301Z","repository":{"id":80011791,"uuid":"84916093","full_name":"sendyhalim/naming-things","owner":"sendyhalim","description":"Guidelines for naming things + reasonings, coding style guide, etc","archived":false,"fork":false,"pushed_at":"2017-03-26T13:19:18.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T22:51:41.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/sendyhalim.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,"zenodo":null}},"created_at":"2017-03-14T06:56:46.000Z","updated_at":"2018-02-02T03:41:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"82ec7135-9636-40a3-90a2-3996f199cfb3","html_url":"https://github.com/sendyhalim/naming-things","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sendyhalim/naming-things","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendyhalim%2Fnaming-things","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendyhalim%2Fnaming-things/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendyhalim%2Fnaming-things/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendyhalim%2Fnaming-things/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sendyhalim","download_url":"https://codeload.github.com/sendyhalim/naming-things/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendyhalim%2Fnaming-things/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29371480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-05-25T18:11:19.414Z","updated_at":"2026-02-12T16:04:53.297Z","avatar_url":"https://github.com/sendyhalim.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Naming things\nJust my convention for naming things in code\n\n## Variables\n### Iterable\nUse plural for iterable data type such as `Array` and `List`\n\nGood\n```\nposts\nusers\n```\n\nBad\n```\npost\nuser\n```\n\n### Map / Dictionary\nUse `\u003cvalue\u003eBy\u003cKey\u003e` format for `Map` / `Dictionary` type\n\nGood\n```\n// If we supply email as key, we will get a user\nuserByEmail\n\n// If we supply product type as key, we will get an iterable products\nproductsByProductType\n```\n\nBad\n```\nusers\nuser\nproducts\nproduct\n```\n\n## Comments\n- Always use capital letter to start a new sentence\n- Add one space between comment marker and the comment itself\n\nGood\n```\n// This is a comment.\n// Another comment.\n```\n\nBad\n```\n//This is a comment\n// this is a comment\n```\n\n## File Nodes\nUse hyphen `-` or underscore `_` to separate words\n\nNever use\n- space, makes it harder for autocompletion in terminal\n- camelCase, macOS is not case sensitive.\n\nGood\n```\nsome-file.txt\nsome_file.txt\n```\n\nBad\n\n```\nsomeFile.txt\nsome file.txt\n```\n\n\n## Urls\nUse `-` to separate words\n\nGood\n\n```\nhttp://example.com/some-example/post\n```\n\nBad\n\n```\nhttp://example.com/some_example/post\nhttp://example.com/some example/post\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendyhalim%2Fnaming-things","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsendyhalim%2Fnaming-things","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendyhalim%2Fnaming-things/lists"}