Skip to content

Commit

Permalink
Moved some articles and setup redirects.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-carroll committed May 3, 2024
1 parent 254bbce commit ec52e9b
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 40 deletions.
1 change: 1 addition & 0 deletions bin/flutter_arbiter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Future<void> main(List<String> arguments) async {
..plugin(const MarkdownPlugin())
..plugin(const JinjaPlugin())
..plugin(const PrettyUrlsPlugin())
..plugin(const RedirectsPlugin())
..plugin(const SassPlugin())
..plugin(DraftingPlugin(
showDrafts: isPreviewMode,
Expand Down
78 changes: 39 additions & 39 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ packages:
dependency: transitive
description:
name: archive
sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d"
sha256: "0763b45fa9294197a2885c8567927e2830ade852e5c896fd4ab7e0e348d0f373"
url: "https://pub.dev"
source: hosted
version: "3.4.10"
version: "3.5.0"
args:
dependency: transitive
description:
name: args
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.5.0"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -157,10 +157,10 @@ packages:
dependency: transitive
description:
name: file
sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
url: "https://pub.dev"
source: hosted
version: "6.1.4"
version: "7.0.0"
fixnum:
dependency: transitive
description:
Expand All @@ -177,6 +177,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.0"
github:
dependency: transitive
description:
name: github
sha256: "57f6ad78591f9638e903409977443093f862d25062a6b582a3c89e4ae44e4814"
url: "https://pub.dev"
source: hosted
version: "9.24.0"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -261,10 +269,10 @@ packages:
dependency: transitive
description:
name: json_annotation
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
url: "https://pub.dev"
source: hosted
version: "4.8.1"
version: "4.9.0"
lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -293,10 +301,10 @@ packages:
dependency: transitive
description:
name: mason_logger
sha256: "0e90e637dcfcb7fb6c30b38e71cd41fa0e4e3df6f1da177f8251ac3f15147e9f"
sha256: "56c44e588e908ef0d1dbb593e1b4473b8ee5fb48fcc8d645c925ab6c8041ebdf"
url: "https://pub.dev"
source: hosted
version: "0.2.12"
version: "0.2.15"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -325,10 +333,10 @@ packages:
dependency: transitive
description:
name: native_stack_traces
sha256: c797830b9910d13b0f4e70ddef15cde034214fe3bdb8092c4ea5ffad2f74013f
sha256: "64d2f4bcf3b69326fb9bc91b4dd3a06f94bb5bbc3a65e25ae6467ace0b34bfd3"
url: "https://pub.dev"
source: hosted
version: "0.5.6"
version: "0.5.7"
native_synchronization:
dependency: transitive
description:
Expand Down Expand Up @@ -385,14 +393,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.1.4"
pointycastle:
dependency: transitive
description:
name: pointycastle
sha256: "70fe966348fe08c34bf929582f1d8247d9d9408130723206472b4687227e4333"
url: "https://pub.dev"
source: hosted
version: "3.8.0"
pool:
dependency: transitive
description:
Expand All @@ -405,10 +405,10 @@ packages:
dependency: transitive
description:
name: process
sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32"
url: "https://pub.dev"
source: hosted
version: "4.2.4"
version: "5.0.2"
protobuf:
dependency: transitive
description:
Expand All @@ -429,10 +429,10 @@ packages:
dependency: transitive
description:
name: pub_updater
sha256: b06600619c8c219065a548f8f7c192b3e080beff95488ed692780f48f69c0625
sha256: "54e8dc865349059ebe7f163d6acce7c89eb958b8047e6d6e80ce93b13d7c9e60"
url: "https://pub.dev"
source: hosted
version: "0.3.1"
version: "0.4.0"
pubspec_parse:
dependency: transitive
description:
Expand All @@ -453,10 +453,10 @@ packages:
dependency: transitive
description:
name: sass
sha256: "22c745186a9d1bc05320c64764d2ca73f5ca2f91833f041b4a07aef81ec7517d"
sha256: "92176f438340e3971338b2290ea17694b37f12ab945d60bfa24063568f949e76"
url: "https://pub.dev"
source: hosted
version: "1.74.1"
version: "1.75.0"
shelf:
dependency: transitive
description:
Expand Down Expand Up @@ -525,11 +525,11 @@ packages:
dependency: "direct main"
description:
path: "packages/static_shock"
ref: main
resolved-ref: "86d4a0ccc0ac6424a3f22e651b24c4f1a0386319"
ref: HEAD
resolved-ref: ce0a3312fe17dc18ccccd68f06946455cdde63a6
url: "https://github.com/Flutter-Bounty-Hunters/static_shock.git"
source: git
version: "0.0.3"
version: "0.0.4"
stream_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -566,26 +566,26 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073"
sha256: d72b538180efcf8413cd2e4e6fcc7ae99c7712e0909eb9223f9da6e6d0ef715f
url: "https://pub.dev"
source: hosted
version: "1.25.2"
version: "1.25.4"
test_api:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
sha256: "2419f20b0c8677b2d67c8ac4d1ac7372d862dc6c460cdbb052b40155408cd794"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
version: "0.7.1"
test_core:
dependency: transitive
description:
name: test_core
sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4"
sha256: "4d070a6bc36c1c4e89f20d353bfd71dc30cdf2bd0e14349090af360a029ab292"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.6.2"
test_process:
dependency: transitive
description:
Expand Down Expand Up @@ -614,10 +614,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: a75f83f14ad81d5fe4b3319710b90dec37da0e22612326b696c9e1b8f34bbf48
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
url: "https://pub.dev"
source: hosted
version: "14.2.0"
version: "14.2.1"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -654,10 +654,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "0a989dc7ca2bb51eac91e8fd00851297cfffd641aa7538b165c62637ca0eaa4a"
sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb"
url: "https://pub.dev"
source: hosted
version: "5.4.0"
version: "5.5.0"
xml:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependency_overrides:
git:
url: https://github.com/Flutter-Bounty-Hunters/static_shock.git
path: packages/static_shock
ref: main

dev_dependencies:
lints: ^2.0.0
Expand Down
2 changes: 2 additions & 0 deletions source/code_practices/_data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tags:
- codePractices
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ synopsis: Avoiding bad names is as important as using good names. You should avo
naming your own app or package classes, methods, and properties.
layout: layouts/article.jinja
groupOrder: 2
redirectFrom: operations/banned-terms
---
Avoiding ambiguous names in software is as important as choosing meaningful names. The following
is a list of names to avoid in your code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ synopsis: Reading code quickly depends upon consistency in coding practices. App
ordering policies throughout your code for faster reading and easier review.
layout: layouts/article.jinja
groupOrder: 11
redirectFrom: operations/consistent-code-ordering
---
The best way to help developers on your team read code quickly is to establish consistent practices.
When reviewing code that follows consistent practices, a developer can literally review code as
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ synopsis: The most popular debug tool is print statements littered through code.
with loggers.
layout: layouts/article.jinja
groupOrder: 12
redirectFrom: operations/developer-logs
---
The first thing a developer does when things go wrong is add a `print` statement somewhere
in the code and then re-run the app. This approach tends to work in the moment, but if you're
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: How to name common things in Flutter apps.
synopsis: Naming is critical for communication, speed, and modeling. This post describes a number of important names to learn and use.
layout: layouts/article.jinja
groupOrder: 1
redirectFrom: operations/naming-conventions
---

Names are what bind us in software development. Whether between the members of a team, employees in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: Directories and files to create for your app.
synopsis: Code has to go somewhere. Learn how to breakdown directories and files in an effective way.
layout: layouts/article.jinja
groupOrder: 10
redirectFrom: operations/packaging-code-for-apps
---
To understand the importance of where you place your code, consider daily operations within a
development team (even a small team). When you begin work on a ticket, you need to locate the code
Expand Down
13 changes: 13 additions & 0 deletions source/index.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@
</ul>
{% endif %}

{% if pages.byTag("codePractices")|length > 0 %}
<h2>Code Patterns</h2>
<hr>
<ul class="article-list">
{% for page in pages.byTag("codePractices", sortBy="groupOrder") %}
<li>
<div class="article-title">{{ page.data["title"] }}</div>
<div class="article-description">{{ md(page.data["synopsis"]) }}&nbsp;&nbsp;&nbsp;<a href="{{ page.data["url"] }}">Learn More...</a></div>
</li>
{% endfor %}
</ul>
{% endif %}

{% if pages.byTag("patterns")|length > 0 %}
<h2>Patterns</h2>
<hr>
Expand Down

0 comments on commit ec52e9b

Please sign in to comment.