{"id":15016399,"url":"https://github.com/devdungeon/cookbook","last_synced_at":"2025-04-05T18:12:18.407Z","repository":{"id":30814807,"uuid":"34371982","full_name":"DevDungeon/Cookbook","owner":"DevDungeon","description":"Code snippets for various programming languages and libraries","archived":false,"fork":false,"pushed_at":"2024-05-01T23:12:13.000Z","size":24815,"stargazers_count":312,"open_issues_count":16,"forks_count":84,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-04-05T18:12:09.215Z","etag":null,"topics":["android","c","cookbooks","csv","java","javascript","perl","php","python","ruby","snippets","spreadsheet","tutorial"],"latest_commit_sha":null,"homepage":"http://www.devdungeon.com","language":"HTML","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/DevDungeon.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":"2015-04-22T06:02:53.000Z","updated_at":"2025-02-04T04:19:40.000Z","dependencies_parsed_at":"2024-05-02T00:40:48.296Z","dependency_job_id":null,"html_url":"https://github.com/DevDungeon/Cookbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDungeon%2FCookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDungeon%2FCookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDungeon%2FCookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDungeon%2FCookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevDungeon","download_url":"https://codeload.github.com/DevDungeon/Cookbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378152,"owners_count":20929297,"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","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":["android","c","cookbooks","csv","java","javascript","perl","php","python","ruby","snippets","spreadsheet","tutorial"],"created_at":"2024-09-24T19:48:49.608Z","updated_at":"2025-04-05T18:12:18.384Z","avatar_url":"https://github.com/DevDungeon.png","language":"HTML","readme":"## The Cookbook Method\n\nA cookbook in the programming context is collection of tiny programs that each demonstrate a particular programming concept. The Cookbook Method is the process of learning a programming language by building up a repository of small programs that implement specific programming concepts. Starting with a Hello World program and building the knowledge piece by piece on top of that.\n\nIf you are a beginner, you will probably want to start out with one language like Python and start building up your repetoire of snippets for reference and confidence. If you are a seasoned developer, you may want to start building a cookbook from scratch for a new language you have never used, or keep a cookbook for more advanced topics in a language you are already familiar with.\n\nHere is an example of when my Cookbook comes in handy. Recently I was faced with a situation where I needed to make an HTTP request to an API, parse the JSON response, generate a CSV spreadsheet, and email the spreadsheet. Because I already had my own cookbook snippets for doing each of those three actions, it was really easy to put together a program that did what I needed it to.\n\n## Watch the video\n\n  \n[![The Cookbook Method](https://img.youtube.com/vi/8vmUTz6it5A/0.jpg)](https://www.youtube.com/watch?v=8vmUTz6it5A \"The Cookbook Method\")\n\n\n### Benefits of Building Your Own Cookbook\n\n* You can share it with others\n* Learn topics that are interesting to you\n* You build up your knowledge in small increments\n* You can see your progress over time\n* You have a library of reference material in your own style.\n* It is quicker than looking up documentation or looking for a Stack Overflow answer.\n* Explore new topics\n* Learn new programming languages.\n* Tips for Building a Cookbook\n* Store your cookbook in a version control system like Git.\n* Keep a to do list of topics or programming languages you want to explore and learn\n* It does not have to be just code. I have a lot of plain text .txt files with notes on things like how to create a Python pip package, creating Ruby Gems, or how to create a runnable JAR in Java. Sometimes tips on installing prerequisites if something was difficult or just notes on how to compile and run programs.\n* It can also be template programs. For example I have a base chrome browser extension that doesn't really do anything itself, but it is a fully functional extension with all the boilerplate done and ready for me to start developing.\n* Programs should be fully runnable and not just chunks of code without context that do not compile and execute\n* Keep the snippets small, simple and to one topic\n\n### Example Cookbook Topics\n\nEveryone has different goals with programming so identify topics relevant to your interests. Here are some ideas if you do not know where to get started.\n\n* Hello, world\n* Getting user input from stdin\n* Taking command line arguments\n* Reading and writing files\n* Using TCP sockets\n* Making HTTP requests\n* Parsing JSON\n* Creating a CSV file\n* Making database connections\n* Playing an audio file\n* Multithreading\n* Drawing 2D graphics to screen\n* Drawing 3D graphics to screen\n* GUI programming\n\n## The DevDungeon Cookbook\n\n* http://www.devdungeon.com/cookbook\n* https://github.com/DevDungeon/Cookbook\n\n## Contact\n\nJohn \"NanoDano\" Leon \u003cnanodano@devdungeon.com\u003e\nhttps://www.devdungeon.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdungeon%2Fcookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdungeon%2Fcookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdungeon%2Fcookbook/lists"}