Compare commits

...

14 Commits

Author SHA1 Message Date
8abc5932b5 fix: Advent of code repo 2026-04-06 22:07:51 +01:00
MdCMS
98323532c5 update: Impulse.md 2026-04-03 21:00:29 +00:00
MdCMS
de60f3113c update: Impulse.md 2026-04-03 20:58:58 +00:00
MdCMS
8c18f8e67b publish: Impulse.md 2026-04-03 20:54:40 +00:00
MdCMS
fdccb56b92 publish: Impulse.md 2026-04-03 20:51:44 +00:00
MdCMS
694b84e69b publish: Impulse.md 2026-04-03 20:50:14 +00:00
76f11a463f updating: Bacaro 2026-04-03 21:47:24 +01:00
MdCMS
ae633c55fc publish: Bacaro.md 2026-04-03 20:45:14 +00:00
MdCMS
961406dd67 publish: Bacaro.md 2026-04-03 20:42:13 +00:00
a50f603a64 Updating UI CSS 2026-04-03 21:37:31 +01:00
MdCMS
739be9ed87 update: Just Code.md 2026-04-03 20:29:14 +00:00
4832b812b2 Updating UI for lists 2026-04-03 21:27:47 +01:00
11b9f68b02 update: Coding Review Process.md 2026-04-03 21:01:36 +01:00
19baf1946c publish: Coding Review Process.md 2026-04-03 21:00:07 +01:00
8 changed files with 266 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
+++
title = "Coding Review Process"
date = "2026-04-03"
tags = ["software"]
+++
## Evaluate the commits you make.
Do this as you code and commit. Paying attention here, spending an extra 5 minutes to deeply understand the changes you made - and refreshing your mind on previous commits - will save time and potential headache ten-fold later down the line.
### Questions to ask yourself
1. Does each commit make sense where it is?
2. Are the names of functions and variables correct?
3. Are the _diffs_ in the right place and in the correct order?
4. Does each commit compile and pass the tests?
5. What impact does each commit have?
## Review your own code
This should be done in a separate environment to the one you code in. For me, this could be GitHub (or any other online PR viewer), or in a local diff view.
### Questions to ask yourself
1. Does each commit _still_ make sense?
2. __High level overview__: Does it actually work? Are you wiring the correct functions to the correct place? We often miss the bigger picture when we're down in the code.
3. Does the architecture make sense? Are the functions you choose and the abstraction you made worth it?
4. Does it work end-to-end?
5. __Nits__. Do the names make sense, is the spacing correct. Less important, but still very important. If you can't understand your own code, how can others?
## Optional: Have AI review your code
You can use a good agent, with a good prompt, and access to your code base (it must be aware of coding style and general abstractions), to review your code. The agent should have some understand of the code base. Otherwise it might have to go and find it each time.
It will catch things you didn't think of, and act as a barrier between you and the reviewer, so that the reviewer has less to catch.
## Review from a reviewer
Hand the PR to another engineer in your team, who has an understand of the areas you've changed. This process is last, and takes the longest, so you want to arrive at this step having made sure that lower level errors have been corrected, and let the reviewer worry about higher level reviewing (although the reviewer should still pick things apart and comments their _nit picks_).

View File

@@ -0,0 +1,8 @@
+++
title = "Just Code"
date = "2026-04-03T20:29:14Z"
+++
Just Code. Making this is fun, you should do it often.
Just Code.

13
content/places/Bacaro.md Normal file
View File

@@ -0,0 +1,13 @@
+++
title = "Bacaro"
date = "2026-04-03T20:45:13Z"
location = "51.319617583056065,-0.5572360470167215"
lon = -0.5572360470167215
lat = 51.319617583056065
+++
The best restaurant in [Woking](https://en.wikipedia.org/wiki/Woking).
It's a family owned, Italian restaurant, with amazing pasta and superb service.
It's my #1 recommendation for food in Surrey.

10
content/places/Impulse.md Normal file
View File

@@ -0,0 +1,10 @@
+++
title = "Impulse"
date = "2026-04-03T21:00:28Z"
lon = -0.5572360470167215
lat = 51.320283468687144
+++
My favourite corner shop.
I always get my elixir of wakefulness from here!

View File

@@ -6,6 +6,6 @@ toc = true
tags = ["Software", "Advent of Code"]
+++
Git Repo: https://github.com/JohnCosta27/AdventOfCode
Git Repo: https://git.johncosta.tech/JohnCosta27/AdventOfCode/
I'm a massive fan of the Advent of Code, I have created a big mono repo of all the years solutions.

19
layouts/_default/li.html Normal file
View File

@@ -0,0 +1,19 @@
<li class="post-item">
{{ $format := "02 Jan 2006" }}
<a href="{{ .Permalink }}" class="post-item__link">
<span class="post-item__title">{{ .Title | markdownify }}</span>
<span class="post-item__date">{{ .Date.Format $format }}</span>
</a>
{{ if .Summary }}
<p class="post-item__summary">{{ .Summary | plainify | truncate 150 }}</p>
{{ end }}
{{ with .Params.tags }}
<div class="post-item__tags">
{{ range . }}
{{ with $.Site.GetPage (printf "/tags/%s" .) }}
<a href="{{ .Permalink }}" class="post-item__tag">{{ .Title }}</a>
{{ end }}
{{ end }}
</div>
{{ end }}
</li>

View File

@@ -0,0 +1,12 @@
{{ define "main" }}
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h1>
{{ .Content }}
<ul class="post-list">
{{ range .Pages.ByDate.Reverse }} {{ .Render "li" }} {{ end }}
</ul>
{{ end }} {{define "aside" }} {{ if .Params.description }}
<p>{{ .Params.description }}</p>
{{ end }} {{ end }}

170
static/css/custom.css Normal file
View File

@@ -0,0 +1,170 @@
/* ============================================
Global readability improvements
============================================ */
body {
font-size: 17px;
line-height: 1.5;
letter-spacing: 0.015em;
color: var(--base06);
}
p {
margin: 0 0 2rem 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 3rem 0 1rem 0;
}
/* ============================================
Links
============================================ */
a:link,
a:visited {
transition: color 0.15s ease;
}
/* ============================================
Blockquotes
============================================ */
blockquote {
margin: 0 0 2rem 0;
padding: 0.75rem 1.25rem;
border-left: 3px solid var(--base0E);
background-color: var(--base01);
border-radius: 0 4px 4px 0;
}
blockquote::before {
content: none;
}
blockquote p:last-child {
margin-bottom: 0;
}
/* ============================================
Code blocks
============================================ */
pre {
border-radius: 6px;
padding: 1.25rem 1.5rem;
}
code {
border-radius: 3px;
padding: 0.15em 0.35em;
}
pre code {
padding: 0;
}
/* ============================================
Post list
============================================ */
.post-list {
list-style: none;
padding-left: 0;
display: flex;
flex-direction: column;
gap: 0;
}
.post-list .post-item {
padding: 1.5rem 0;
border-bottom: 1px solid var(--base02);
}
.post-list .post-item:first-child {
padding-top: 0;
}
.post-list .post-item::marker {
content: "";
}
.post-item__link {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 1.5rem;
text-decoration: none;
}
.post-item__title {
font-size: 1.15rem;
font-weight: 600;
color: var(--link);
}
.post-item__link:hover .post-item__title {
color: var(--hover);
}
.post-item__date {
font-size: 0.8rem;
color: var(--muted);
white-space: nowrap;
flex-shrink: 0;
}
.post-item__summary {
margin: 0.4rem 0 0 0;
font-size: 0.8rem;
line-height: 1.4;
color: var(--base04);
}
.post-item__tags {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.5rem;
}
.post-item__tag {
font-size: 0.7rem;
padding: 0.15rem 0.55rem;
background-color: var(--base02);
color: var(--base0E);
border-radius: 3px;
text-decoration: none;
transition: background-color 0.15s ease, color 0.15s ease;
}
.post-item__tag:link,
.post-item__tag:visited {
color: var(--base0E);
}
.post-item__tag:hover {
background-color: var(--base03);
color: var(--hover);
}
/* ============================================
Mobile
============================================ */
@media (max-width: 30rem) {
.post-item__link {
flex-direction: column;
gap: 0.2rem;
}
.post-item__date {
order: -1;
font-size: 0.75rem;
}
.post-item__tag {
font-size: 0.75rem;
padding: 0.25rem 0.65rem;
}
}