summaryrefslogtreecommitdiffhomepage
path: root/services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-04 19:15:15 +0900
committernsfisis <nsfisis@gmail.com>2025-07-04 19:15:15 +0900
commit4b29e31a34357d4f4953fd0d277724852bf4418c (patch)
tree6d9c3e47fe988f211e8598cbedd2031c09ca54cb /services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line
parent98db243a59fb6a409b3677f2195e96da6fd39564 (diff)
parent80f0ab31aceec35c9fd04a6387b14349b806f713 (diff)
downloadnsfisis.dev-4b29e31a34357d4f4953fd0d277724852bf4418c.tar.gz
nsfisis.dev-4b29e31a34357d4f4953fd0d277724852bf4418c.tar.zst
nsfisis.dev-4b29e31a34357d4f4953fd0d277724852bf4418c.zip
Merge branch 'blog/toc'
Diffstat (limited to 'services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line')
-rw-r--r--services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line/index.html45
1 files changed, 44 insertions, 1 deletions
diff --git a/services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line/index.html b/services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line/index.html
index 16704369..0530802b 100644
--- a/services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line/index.html
+++ b/services/blog/public/posts/2022-09-29/write-fizzbuzz-in-php-2-letters-per-line/index.html
@@ -15,7 +15,7 @@
<meta name="Hatena::Bookmark" content="nocomment">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>【PHP】 fizzbuzz を書く。1行あたり2文字で。|REPL: Rest-Eat-Program Loop</title>
- <link rel="stylesheet" href="/style.css?h=899271ae83285479ca025cc358975c53">
+ <link rel="stylesheet" href="/style.css?h=f4a12de8fc55ef1668e211e6c6db4ade">
</head>
<body class="single">
<header class="header">
@@ -49,6 +49,49 @@
</li>
</ul>
</header>
+ <nav class="toc">
+ <h2>目次</h2>
+ <ul>
+ <li>
+ <a href="#section--intro">記事の構成について</a>
+ </li>
+ <li>
+ <a href="#section--regulations">レギュレーション</a>
+ </li>
+ <li>
+ <a href="#section--problems">主な障害</a>
+ </li>
+ <li>
+ <a href="#section--commentary">解説</a>
+ <ul>
+ <li>
+ <a href="#section--commentary--normal-fizzbuzz">普通の (?) fizzbuzz</a>
+ </li>
+ <li>
+ <a href="#section--commentary--remove-keywords"> の排除</a>
+ </li>
+ <li>
+ <a href="#section--commentary--shorten-function-invocation">関数呼び出しの短縮</a>
+ </li>
+ <li>
+ <a href="#section--commentary--incompatible-solution">余談: PHP 8.x で動作しなくてもいいなら</a>
+ </li>
+ <li>
+ <a href="#section--commentary--shorten-string-literals">文字列リテラルの短縮</a>
+ </li>
+ </ul>
+ </li>
+ <li>
+ <a href="#section--stretched-fizzbuzz">完成系</a>
+ </li>
+ <li>
+ <a href="#section--outro">感想など</a>
+ </li>
+ <li>
+ <a href="#section--alternative-solution">余談2: 別解</a>
+ </li>
+ </ul>
+ </nav>
<div class="post-content">
<section id="changelog">
<h2><a href="#changelog">更新履歴</a></h2>