{"id":18536295,"url":"https://github.com/adishavit/modernizing_wmi_sample","last_synced_at":"2025-05-15T00:35:32.914Z","repository":{"id":72816509,"uuid":"115532848","full_name":"adishavit/modernizing_wmi_sample","owner":"adishavit","description":"Experimental and expository project showing how to refactor Windows C code into modern C++.","archived":false,"fork":false,"pushed_at":"2017-12-31T17:10:16.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-26T03:27:26.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adishavit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-12-27T15:14:08.000Z","updated_at":"2019-05-18T09:58:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c21de9e-8f51-44a7-9bac-c3066f81bd7e","html_url":"https://github.com/adishavit/modernizing_wmi_sample","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fmodernizing_wmi_sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fmodernizing_wmi_sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fmodernizing_wmi_sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fmodernizing_wmi_sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adishavit","download_url":"https://codeload.github.com/adishavit/modernizing_wmi_sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239251184,"owners_count":19607583,"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":[],"created_at":"2024-11-06T19:31:47.808Z","updated_at":"2025-02-17T07:28:49.499Z","avatar_url":"https://github.com/adishavit.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## `[WiP] ### Initial Commit. ###`\n\n# C++ Modernization of Windows C Code\n\nIn December 2017, [Simon Brand](https://blog.tartanllama.xyz/optional-expected/), [Vittorio Romeo](https://vittorioromeo.info/index/blog/adts_over_exceptions.html) and [Jonathan Müller](http://foonathan.net/blog/2017/12/04/exceptions-vs-expected.html) all published widely circulated blog posts extolling the virtues of Algebraic Data Types (ADTs) vs. exceptions. \n\nThis repo is an attempt to try out these techniques on real world legacy C code to understand the implications, pros and cons of the various approaches. The project also investigates the conveniece and utility of scope-guard-like generic scoped RAII resource management utilities.   \n\nWhen this investigation is done, it will be discussed in yet another [blog post](http://videocortex.io/#blog). \n\nThe code to be refactored is an [MSDN sample program](https://msdn.microsoft.com/en-us/library/aa384724(v=vs.85).aspx) from the Windows WMI Performance Monitoring documentation. It is a typical, non-trivial, sample, similar to many other Windows WIN32 C APIs. \n\n\n***This is a work in progress.***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadishavit%2Fmodernizing_wmi_sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadishavit%2Fmodernizing_wmi_sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadishavit%2Fmodernizing_wmi_sample/lists"}