{"id":387,"date":"2024-07-17T06:25:12","date_gmt":"2024-07-17T13:25:12","guid":{"rendered":"https:\/\/kdcinfo.com\/blog\/?p=387"},"modified":"2024-07-18T07:08:57","modified_gmt":"2024-07-18T14:08:57","slug":"up-your-dart-and-flutter-programming-game-learning-by-linting","status":"publish","type":"post","link":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/","title":{"rendered":"Up Your Dart and Flutter Programming Game: Learning by Linting"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Due to an innate burden that saddles me with self-comparisons of everything I do with the likes of highly talented software engineers, I can never consider myself to be a <strong><em>great<\/em><\/strong> developer (albeit context is everything, and I certainly aspire to be). However, in my pursuit of that ever-elusive aspirational goal, a few primary concepts I&#8217;ve learned (and am still learning) in the last few years stand out with which I believe have helped me to expand my horizons the most.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming from a fairly lengthy procedural-based development background, the first couple topics I focused on gaining experience with are likely already quite common to other programmers, for which I&#8217;ll keep the elaborations below brief. However, &#8230;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">the third topic, I believe, <strong><em>may be an undervalued learning opportunity for a lot of developers.<\/em><\/strong><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">The three most significant advances in my learning adventures into mobile app development via Flutter and Dart have stemmed primarily from:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1) Learning OOP (and SOLID)<br>2) Learning about design patterns<br><strong>3) Working with lint analyzers<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">OOP<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I must say that after a lifetime of procedural programming with various procedural languages \u2014 like <a href=\"https:\/\/en.wikipedia.org\/wiki\/AutoLISP\" target=\"_blank\" rel=\"noreferrer noopener\">AutoLISP<\/a>, ASP 2.0, JavaScript, JSP and PHP \u2014 and while it is still a work in progress, outside of learning Flutter, <strong>learning OOP has been the most rewarding of learned experiences I&#8217;ve had<\/strong> in the last few years.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From personal experience, the transition from procedural to OOP is in no way a natural occurrence. Fortunately, a presentation by Sandi Metz helped with insights into a lot of OOP principles, like, &#8220;factories are where conditionals go to die&#8221;\u2014<a href=\"https:\/\/youtu.be\/YtROlyWWhV0?t=1795\" target=\"_blank\" rel=\"noreferrer noopener\">Polly Want a Message<\/a>. A couple other talks of hers were also filled with a lot of valuable goodies, like her Rail Conference talks on &#8220;<a href=\"https:\/\/www.youtube.com\/watch?v=8bZh5LMaSmE\" target=\"_blank\" rel=\"noreferrer noopener\">All the Little Things<\/a>&#8221; (refactoring) and &#8220;<a href=\"https:\/\/www.youtube.com\/watch?v=PJjHfa5yxlU\" target=\"_blank\" rel=\"noreferrer noopener\">Get a Whiff of This<\/a>&#8221; (code smells).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Patterns<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Learning design patterns is also still a work in progress. Going through dozens of patterns and being aware of the three types of patterns is certainly helpful, but for me, studying a bunch of individual patterns for situations you may never encounter feels unproductive. And although the certificate program from <a href=\"https:\/\/refactoring.guru\/design-patterns\" target=\"_blank\" rel=\"noreferrer noopener\">Refactoring.Guru<\/a> felt quite comprehensive, I&#8217;ve yet to find an engaging interactive way of really learning the fundamentals of the various patterns, short of just studying them one at a time. Some good news, however, is I&#8217;ve got the repository pattern down fairly well thanks to Flutter Bloc. \ud83e\udd73 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Learning via Linting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While learning pure OOP will likely be a lifelong work in progress, and with discovering design patterns naturally when deriving solutions, I&#8217;ve found that linting tools are also quite revealing for learning better Flutter and Dart programming structures and patterns.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>The Dos and Don&#8217;ts of a language are exposed with linting tools.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Lint rules yield advice and suggestions, and can even help to isolate some code smells. And because not all smells are bad, you can also learn <em>when<\/em> to disable rules, or the various ways of ignoring them. Ergo, you&#8217;re not only learning the rules (i.e. suggestions) for the language, you&#8217;re also learning when <em>not<\/em> to apply them. Sometimes a file will have only one or two rules to ignore. Other times a rule may need to be ignored for an entire file, or by simply disabling the rule altogether.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What&#8217;s more, you can expand your knowledge of these rules by adopting additional lint tools or libraries. At least with Flutter and Dart, you&#8217;re not stuck with just one. Alongside <a href=\"https:\/\/pub.dev\/packages\/flutter_lints\" target=\"_blank\" rel=\"noreferrer noopener\">Flutter Lints<\/a>, there&#8217;s also <a href=\"https:\/\/pub.dev\/packages\/very_good_analysis\" target=\"_blank\" rel=\"noreferrer noopener\">Very Good Analysis<\/a> (VGV), <a href=\"https:\/\/pub.dev\/packages\/lint\" target=\"_blank\" rel=\"noreferrer noopener\">Lint<\/a>, and a tool I&#8217;m currently learning a lot from which is <a href=\"https:\/\/dcm.dev\/docs\/rules\/\" target=\"_blank\" rel=\"noreferrer noopener\">DCM<\/a>* (formerly Dart Code Metrics). <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Both the <strong>Lint<\/strong> and <strong>Very Good Analysis<\/strong> packages track development of new Dart and Flutter lint rules well and are updated regularly.<\/p>\n<cite>RydMike (published July 28, 2021, updated Nov 20, 2023). Flutter Linting and Linter Comparison. <a href=\"https:\/\/rydmike.com\/blog_flutter_linting.html\">https:\/\/rydmike.com\/blog_flutter_linting.html<\/a><\/cite><\/blockquote>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"606\" src=\"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_080517_via_10015_io-1024x606.png\" alt=\"DCM lint fix: prefer-null-aware-spread | `...?playersMap['new'],`\" class=\"wp-image-393\" style=\"width:400px\" srcset=\"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_080517_via_10015_io-1024x606.png 1024w, https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_080517_via_10015_io-300x177.png 300w, https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_080517_via_10015_io-768x454.png 768w, https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_080517_via_10015_io.png 1072w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">*Note that <a href=\"https:\/\/dcm.dev\/pricing\/\" target=\"_blank\" rel=\"noreferrer noopener\">DCM is subscription-based<\/a>. As a solo developer, the subscription runs a tad bit more than an <a href=\"https:\/\/github.com\/features\/copilot#pricing\" target=\"_blank\" rel=\"noreferrer noopener\">Individual GitHub Copilot subscription<\/a>, and a tad bit less than a <a href=\"https:\/\/openai.com\/chatgpt\/pricing\/\" target=\"_blank\" rel=\"noreferrer noopener\">ChatGPT Plus plan<\/a>. At the time of writing the Individual Plan had been merged into the Teams Plan who&#8217;s cost is $14\/month if billed annually. For anyone who can afford it, the code analysis is truly helpful. For those who can&#8217;t afford the annual, just one or two months could help as well. Or, it would seem they also have a special <a href=\"https:\/\/dcm.dev\/blog\/2023\/10\/18\/announcing-dcm-license-for-oss-projects\/\" target=\"_blank\" rel=\"noreferrer noopener\">free license for open source projects<\/a>, which could prove a great entry point. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While a copy of my open source app&#8217;s <a href=\"https:\/\/github.com\/KDCinfo\/dev-play\/blob\/main\/tic-tac-tuple\/packages\/base_services\/lib\/src\/analysis_options.yaml\" target=\"_blank\" rel=\"noreferrer noopener\">lint analysis configuration is available in GitHub<\/a>, it does not include the DCM configuration section, because DCM is a paid service, so I&#8217;ve included the configuration in the expandable section below (<em>DCM Lint Analysis Configuration<\/em>). When you expand the section, you&#8217;ll notice that half the rules are commented; that&#8217;s how I make my way through the list, by commenting out the <code>avoid<\/code> rules, typically about one per day (I also do this with my private <a href=\"https:\/\/kdrecall.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">KD-reCall apps<\/a>).<\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>DCM Lint Analysis Configuration<\/summary>\n<pre class=\"wp-block-code\"><code># This is for anyone using DCM.\n\ndart_code_metrics:\n  extends:\n    - recommended\n  rules:\n    - avoid-accessing-collections-by-constant-index: false\n    - avoid-duplicate-initializers: false\n    - avoid-dynamic: false\n    - avoid-empty-setstate: false\n    - avoid-incomplete-copy-with: false\n    - avoid-inferrable-type-arguments: false\n    - avoid-missed-calls: false\n    - avoid-missing-enum-constant-in-map: false\n    - avoid-missing-image-alt: false\n    - avoid-nullable-interpolation: false\n    - avoid-nullable-tostring: false\n    - avoid-passing-async-when-sync-expected: false\n    - avoid-passing-self-as-argument: false\n    - avoid-redundant-async: false\n    # - avoid-redundant-else: false\n    - avoid-shadowing:\n        ignored-names:\n          - context\n    # - avoid-unassigned-late-fields: false\n    # - avoid-undisposed-instances: false\n    # - avoid-unnecessary-futures: false\n    # - avoid-unnecessary-local-late: false\n    # - avoid-unnecessary-nullable-return-type: false\n    # - avoid-unnecessary-reassignment: false\n    # - avoid-unnecessary-setstate: false\n    # - avoid-unnecessary-stateful-widgets: false\n    # - avoid-unused-parameters: false\n    # - dispose-fields: false\n    - match-getter-setter-field-names: false\n\n    # Some of these are needed (for now) for context-after-await calls.\n    # - move-variable-closer-to-its-usage: false\n\n    # - no-equal-then-else: false\n    # - prefer-correct-callback-field-name: false\n    # - prefer-correct-json-casts: false\n    # - prefer-declaring-const-constructor: false\n    # - prefer-match-file-name: false\n    # - prefer-prefixed-global-constants: false\n    # - prefer-single-widget-per-file: false\n    # - prefer-switch-with-enums: false\n    # - prefer-trailing-comma: false\n    # - proper-super-calls: false\n    # - use-setstate-synchronously: false\n    #\n    - unnecessary-trailing-comma: false\n    - avoid-unused-instances: false\n    - no-empty-block: false<\/code><\/pre>\n<\/details>\n\n\n\n<p class=\"wp-block-paragraph\">The code refactoring involved in some of these lint changes is where the learning comes in \u2014 at least when you take the time to look into why the refactors are being suggested, and don&#8217;t just apply them blindly. A few extracted examples of some rules that have helped with dozens of refactors include:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>\/\/\/ DCM lint fix: <strong><mark style=\"background-color:#ffff00\" class=\"has-inline-color\">prefer-null-aware-spread<\/mark><\/strong>\n\n  playersMap&#91;'new'] = &#91;\n    \/\/ <strong>...<\/strong>playersMap&#91;'new']!,\n    <strong><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">...?<\/mark><\/strong>playersMap&#91;'new'],\n\n\/\/\/ DCM lint fix: <mark style=\"background-color:#ffff00\" class=\"has-inline-color\"><strong>prefer-iterable-of<\/strong><\/mark>\n\n  \/\/ sublists.add(List<s><strong><mark style=\"background-color:#ffbfbf\" class=\"has-inline-color\">.from<\/mark><\/strong><\/s>(currentSublist));\n  sublists.add(List<strong><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">.of<\/mark><\/strong>(currentSublist));\n\n\/\/\/ DCM lint fix: <strong><mark style=\"background-color:#ffff00\" class=\"has-inline-color\">prefer-dedicated-media-query-methods<\/mark><\/strong>\n\n  \/\/ width: MediaQuery<s><strong><mark style=\"background-color:#ffbfbf\" class=\"has-inline-color\">.of<\/mark><\/strong><\/s>(context)<s><strong><mark style=\"background-color:#ffbfbf\" class=\"has-inline-color\">.size<\/mark><\/strong><\/s>.width * 0.4,\n  width: MediaQuery<strong><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">.sizeOf<\/mark><\/strong>(context).width * 0.4,\n\n\/\/\/ DCM lint fix: <strong><mark style=\"background-color:#ffff00\" class=\"has-inline-color\">avoid-unsafe-collection-methods<\/mark><\/strong>\n\n  \/\/ final newName = widget.listRowPlayerList<s><strong><mark style=\"background-color:#ffbfbf\" class=\"has-inline-color\">&#91;value]<\/mark><\/strong><\/s>;\n  final newName = widget.listRowPlayerList<strong><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">.elementAtOrNull(value) ?? ''<\/mark><\/strong>;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Bonus Read<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>much more in-depth explanation<\/strong> of Flutter linting is available in an article titled, <strong><a href=\"https:\/\/rydmike.com\/blog_flutter_linting.html#compare-and-choose\" target=\"_blank\" rel=\"noreferrer noopener\">Flutter Linting and Linter Comparison<\/a>: Custom linting setup, and comparing linting rules by different packages<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It provides a very detailed configuration and lint comparison analysis and is definitely a worthwhile read!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CI\/CD (WIP)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">My fourth pillar of knowledge advancement is with CI\/CD, for which I&#8217;m currently knee-deep in learning and aim to walk through at least a few different approaches and tools. A separate blog post on that is expected next.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cheers!<br>&#8211; Keith | <a href=\"https:\/\/keithdc.com\">https:\/\/keithdc.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to an innate burden that saddles me with self-comparisons of everything I do with the likes of highly talented software engineers, I can never<\/p>\n","protected":false},"author":1,"featured_media":395,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[122,110,135,136],"class_list":["post-387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dart","category-flutter","tag-dart","tag-flutter","tag-learning","tag-linting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Up Your Dart and Flutter Programming Game: Learning by Linting - App Development: Odds and Ends<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Up Your Dart and Flutter Programming Game: Learning by Linting - App Development: Odds and Ends\" \/>\n<meta property=\"og:description\" content=\"Due to an innate burden that saddles me with self-comparisons of everything I do with the likes of highly talented software engineers, I can never\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/\" \/>\n<meta property=\"og:site_name\" content=\"App Development: Odds and Ends\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-17T13:25:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-18T14:08:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_163611_via_10015_io.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1832\" \/>\n\t<meta property=\"og:image:height\" content=\"634\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Keith D Commiskey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Keith D Commiskey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/\"},\"author\":{\"name\":\"Keith D Commiskey\",\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/#\\\/schema\\\/person\\\/87980b154db7bd0cd7c569ca09328bac\"},\"headline\":\"Up Your Dart and Flutter Programming Game: Learning by Linting\",\"datePublished\":\"2024-07-17T13:25:12+00:00\",\"dateModified\":\"2024-07-18T14:08:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/\"},\"wordCount\":1004,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/#\\\/schema\\\/person\\\/87980b154db7bd0cd7c569ca09328bac\"},\"image\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/code_20240716_163611_via_10015_io.png\",\"keywords\":[\"dart\",\"flutter\",\"learning\",\"linting\"],\"articleSection\":[\"dart\",\"flutter\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/\",\"url\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/\",\"name\":\"Up Your Dart and Flutter Programming Game: Learning by Linting - App Development: Odds and Ends\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/code_20240716_163611_via_10015_io.png\",\"datePublished\":\"2024-07-17T13:25:12+00:00\",\"dateModified\":\"2024-07-18T14:08:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/code_20240716_163611_via_10015_io.png\",\"contentUrl\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/code_20240716_163611_via_10015_io.png\",\"width\":1832,\"height\":634,\"caption\":\"DCM lint fix: prefer-null-aware-spread | `...?playersMap['new'],`\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/2024\\\/07\\\/17\\\/up-your-dart-and-flutter-programming-game-learning-by-linting\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Up Your Dart and Flutter Programming Game: Learning by Linting\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/\",\"name\":\"App Development: Odds and Ends\",\"description\":\"Providing insights into a career of apps and utilities that I&#039;ve conceptualized, designed, and developed; complemented with developmental journeys, findings, observations, and challenges encountered along the way.\",\"publisher\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/#\\\/schema\\\/person\\\/87980b154db7bd0cd7c569ca09328bac\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/#\\\/schema\\\/person\\\/87980b154db7bd0cd7c569ca09328bac\",\"name\":\"Keith D Commiskey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/keith-sac-01.jpg\",\"url\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/keith-sac-01.jpg\",\"contentUrl\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/keith-sac-01.jpg\",\"width\":113,\"height\":117,\"caption\":\"Keith D Commiskey\"},\"logo\":{\"@id\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/keith-sac-01.jpg\"},\"description\":\"Web App Creator; Former Flutter Developer; Former Front End Developer; Former Technical Graphics.\",\"sameAs\":[\"https:\\\/\\\/kdcinfo.com\\\/blog\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/commiskey\"],\"url\":\"https:\\\/\\\/kdcinfo.com\\\/blog\\\/author\\\/kdc4wp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Up Your Dart and Flutter Programming Game: Learning by Linting - App Development: Odds and Ends","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/","og_locale":"en_US","og_type":"article","og_title":"Up Your Dart and Flutter Programming Game: Learning by Linting - App Development: Odds and Ends","og_description":"Due to an innate burden that saddles me with self-comparisons of everything I do with the likes of highly talented software engineers, I can never","og_url":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/","og_site_name":"App Development: Odds and Ends","article_published_time":"2024-07-17T13:25:12+00:00","article_modified_time":"2024-07-18T14:08:57+00:00","og_image":[{"width":1832,"height":634,"url":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_163611_via_10015_io.png","type":"image\/png"}],"author":"Keith D Commiskey","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Keith D Commiskey","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#article","isPartOf":{"@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/"},"author":{"name":"Keith D Commiskey","@id":"https:\/\/kdcinfo.com\/blog\/#\/schema\/person\/87980b154db7bd0cd7c569ca09328bac"},"headline":"Up Your Dart and Flutter Programming Game: Learning by Linting","datePublished":"2024-07-17T13:25:12+00:00","dateModified":"2024-07-18T14:08:57+00:00","mainEntityOfPage":{"@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/"},"wordCount":1004,"commentCount":0,"publisher":{"@id":"https:\/\/kdcinfo.com\/blog\/#\/schema\/person\/87980b154db7bd0cd7c569ca09328bac"},"image":{"@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#primaryimage"},"thumbnailUrl":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_163611_via_10015_io.png","keywords":["dart","flutter","learning","linting"],"articleSection":["dart","flutter"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/","url":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/","name":"Up Your Dart and Flutter Programming Game: Learning by Linting - App Development: Odds and Ends","isPartOf":{"@id":"https:\/\/kdcinfo.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#primaryimage"},"image":{"@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#primaryimage"},"thumbnailUrl":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_163611_via_10015_io.png","datePublished":"2024-07-17T13:25:12+00:00","dateModified":"2024-07-18T14:08:57+00:00","breadcrumb":{"@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#primaryimage","url":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_163611_via_10015_io.png","contentUrl":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2024\/07\/code_20240716_163611_via_10015_io.png","width":1832,"height":634,"caption":"DCM lint fix: prefer-null-aware-spread | `...?playersMap['new'],`"},{"@type":"BreadcrumbList","@id":"https:\/\/kdcinfo.com\/blog\/2024\/07\/17\/up-your-dart-and-flutter-programming-game-learning-by-linting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kdcinfo.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Up Your Dart and Flutter Programming Game: Learning by Linting"}]},{"@type":"WebSite","@id":"https:\/\/kdcinfo.com\/blog\/#website","url":"https:\/\/kdcinfo.com\/blog\/","name":"App Development: Odds and Ends","description":"Providing insights into a career of apps and utilities that I&#039;ve conceptualized, designed, and developed; complemented with developmental journeys, findings, observations, and challenges encountered along the way.","publisher":{"@id":"https:\/\/kdcinfo.com\/blog\/#\/schema\/person\/87980b154db7bd0cd7c569ca09328bac"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kdcinfo.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/kdcinfo.com\/blog\/#\/schema\/person\/87980b154db7bd0cd7c569ca09328bac","name":"Keith D Commiskey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2023\/08\/keith-sac-01.jpg","url":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2023\/08\/keith-sac-01.jpg","contentUrl":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2023\/08\/keith-sac-01.jpg","width":113,"height":117,"caption":"Keith D Commiskey"},"logo":{"@id":"https:\/\/kdcinfo.com\/blog\/wp-content\/uploads\/2023\/08\/keith-sac-01.jpg"},"description":"Web App Creator; Former Flutter Developer; Former Front End Developer; Former Technical Graphics.","sameAs":["https:\/\/kdcinfo.com\/blog","https:\/\/www.linkedin.com\/in\/commiskey"],"url":"https:\/\/kdcinfo.com\/blog\/author\/kdc4wp\/"}]}},"_links":{"self":[{"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":11,"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/posts\/387\/revisions\/401"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/media\/395"}],"wp:attachment":[{"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kdcinfo.com\/blog\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}