<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/feeds.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="https://chameth.com/">
    <title>Chameth.com - posts like g15-ram-upgrade, utility-user-stories</title>
    <subtitle>Personal homepage of Chris Smith</subtitle>
    <link href="https://chameth.com/feeds/posts/like/g15-ram-upgrade,utility-user-stories/" rel="self"/>
    <link href="https://chameth.com/"/>
    <icon>https://chameth.com/favicon.png</icon>
    <updated>2023-07-29T00:00:00Z</updated>
    <id>https://chameth.com/</id>
    <author>
        <name>Chris Smith</name>
    </author>
    <entry>
        <title>Upgrading the RAM in a Dell G15 laptop</title>
        <link href="https://chameth.com/g15-ram-upgrade/"/>
        <updated>2023-07-29T00:00:00Z</updated>
        <id>https://chameth.com/g15-ram-upgrade/</id>
        <content xml:lang="en" type="html">&lt;figure class=&#34;image left&#34;&gt;
  &lt;picture&gt;
      &lt;source srcset=&#34;https://chameth.com/g15-ram-upgrade/g15.avif&#34; type=&#34;image/avif&#34;/&gt;
      &lt;source srcset=&#34;https://chameth.com/g15-ram-upgrade/g15.webp&#34; type=&#34;image/webp&#34;/&gt;
      &lt;img src=&#34;https://chameth.com/g15-ram-upgrade/g15.png&#34; alt=&#34;An open Dell G15 laptop&#34; loading=&#34;lazy&#34; width=&#34;580&#34; height=&#34;402&#34;/&gt;
  &lt;/picture&gt;
  &lt;figcaption&gt;&lt;p&gt;The Dell G15&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;I currently use a Dell G15 laptop for work. It has served me well for a little
over a year, but recently it has been struggling a little with my day-to-day
workload. It came with 32GB of RAM — the highest possible specification at the
time&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a class=&#34;footnote-ref&#34; href=&#34;#fn:1&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; — but that is apparently no longer enough for me.&lt;/p&gt;
&lt;p&gt;For a recent project, I was working on a Rust library used in an Android app.
That meant running the usual glut of Android tools (Android Studio, an emulator
and at least one Gradle daemon) alongside a normal IDE (IntelliJ IDEA). Throw
in a web browser and a couple of electron apps, and I often managed to
use all 32GB.&lt;/p&gt;
&lt;p&gt;When you start swapping memory out to an encrypted disk — even an SSD — it
doesn’t make for great performance. At first, I tried to work around this
by enabling the Linux out-of-memory (OOM) killer, but it turns out that it’s not
too good with Electron apps: it will kill the large browser process, but then
the small Electron wrapper will just respawn it.&lt;/p&gt;
&lt;!--more--&gt;
&lt;h3 id=&#34;can-it-be-upgraded-or-not&#34;&gt;Can it be upgraded or not?&lt;/h3&gt;
&lt;p&gt;The obvious solution to not having enough RAM is to add more RAM. A quick look
in the manual showed this might not be possible, though. The manual includes
the following “Memory specifications” table:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Values&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Memory slots&lt;/td&gt;
&lt;td&gt;Two SODIMM slots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory type&lt;/td&gt;
&lt;td&gt;DDR5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory speed&lt;/td&gt;
&lt;td&gt;4800&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maximum memory configuration&lt;/td&gt;
&lt;td&gt;32GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimum memory configuration&lt;/td&gt;
&lt;td&gt;8GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory size per slot&lt;/td&gt;
&lt;td&gt;8GB or 16GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory configurations supported&lt;/td&gt;
&lt;td&gt;&lt;ul&gt;&lt;li&gt;8 GB, 1 x 8 GB, DDR5, 4800 MHz&lt;/li&gt;&lt;li&gt;16 GB, 1 x 16 GB, DDR5, 4800 MHz&lt;/li&gt;&lt;li&gt;16 GB, 2 x 8 GB, DDR5, 4800 MHz, dual-channel&lt;/li&gt;&lt;li&gt;32 GB, 2 x 16 GB, DDR5, 4800 MHz, dual-channel&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;That unambiguously says that an upgrade from 32GB is not possible. I gave up.&lt;/p&gt;
&lt;p&gt;Later though, I was complaining about memory issues to a friend, and he pointed
out a Dell forum thread where a couple of people claim to have successfully
installed dual-channel 32GB modules. Since the alternative was getting an
entire new PC after only a year, I decided to give it a go.&lt;/p&gt;
&lt;h3 id=&#34;the-upgrade-attempt&#34;&gt;The upgrade attempt&lt;/h3&gt;
&lt;p&gt;I ordered a pair of Crucial 32GB DDR5-4800 SODIMMs, and after they turned up
dismantled the laptop. The G15 comes apart pretty normally: there are uncovered
screws on the bottom holding the lower part of the case on. With those
removed and some gentle prying, it pops off, and you get access to the battery,
GPU and motherboard.&lt;/p&gt;
&lt;p&gt;The first thing I saw was this:&lt;/p&gt;
&lt;figure class=&#34;image full&#34;&gt;
  &lt;picture&gt;
      &lt;source srcset=&#34;https://chameth.com/g15-ram-upgrade/motherboard.avif&#34; type=&#34;image/avif&#34;/&gt;
      &lt;source srcset=&#34;https://chameth.com/g15-ram-upgrade/motherboard.webp&#34; type=&#34;image/webp&#34;/&gt;
      &lt;img src=&#34;https://chameth.com/g15-ram-upgrade/motherboard.jpg&#34; alt=&#34;The G15 motherboard, with a large &amp;#34;DDR5 8G/16G Only&amp;#34; label, and a smaller &amp;#34;DIMM B DDR5 8G/16G&amp;#34; label next to a SODIMM slot&#34; loading=&#34;lazy&#34; width=&#34;1536&#34; height=&#34;1300&#34;/&gt;
  &lt;/picture&gt;
  &lt;figcaption&gt;&lt;p&gt;The G15 motherboard adamantly proclaiming that it doesn’t want 32GB SODIMMs&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Not one but two labels that indicate it will only accept 8GB or 16GB modules.
Oh well, what’s the worst that can happen?&lt;/p&gt;
&lt;h3 id=&#34;oops&#34;&gt;Oops?&lt;/h3&gt;
&lt;p&gt;I dutifully installed the new modules, reconnected the battery and put the
case back together. I pressed the power button, and… nothing. None of the
usual garish lights that immediately come on, no screen output, just a dead
laptop. After reading some more of the user manual, I found that there is a tiny
status LED on the side next to the ethernet port. Forcing the laptop to power
off and back on again, the status LED blinked a distress code at me: 2 amber
blinks, 4 white blinks. The manual says that is — unsurprisingly — a memory
fault.&lt;/p&gt;
&lt;p&gt;I figured at this point that the manual and labels on the motherboard were
probably right. I took the laptop apart again, reinstalled the original 2x16GB
modules, reassembled it, and pressed the power button. It didn’t boot. I don’t
spend a lot of time fiddling inside computers, but I’ve done it enough that
I’m reasonably confident I can’t entirely break a computer while swapping some
RAM modules. I took to Googling&lt;sup id=&#34;fnref:2&#34;&gt;&lt;a class=&#34;footnote-ref&#34; href=&#34;#fn:2&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt;, and found an interesting article that said
Dell laptops don’t like to boot after RAM changes unless you clear the CMOS by
popping out the battery for 15 minutes.&lt;/p&gt;
&lt;p&gt;I opened the laptop up, and looked around for the CMOS battery. There wasn’t
one. Turns out they don’t exist any more. I left the main battery disconnected
for a while to see if it would help, and it didn’t.&lt;/p&gt;
&lt;h3 id=&#34;unexpected-success&#34;&gt;Unexpected success&lt;/h3&gt;
&lt;p&gt;I started to get worried: if I couldn’t fix this, I wouldn’t be able to
work until I got a new PC, and that wasn’t really in my budget at the minute.
I sat reading old forum threads and help guides&lt;sup id=&#34;fnref:3&#34;&gt;&lt;a class=&#34;footnote-ref&#34; href=&#34;#fn:3&#34; role=&#34;doc-noteref&#34;&gt;3&lt;/a&gt;&lt;/sup&gt;, none of which were actually
useful. Out of nowhere, though, the laptop booted up.&lt;/p&gt;
&lt;p&gt;Naturally, I immediately shut the laptop down again, opened it up, and switched
back to the new RAM modules. Then I turned it on again and sat waiting. After
about 15 minutes of it looking totally dead, it turned on and showed a BIOS
warning about the hardware configuration being changed. It then booted perfectly
normally, and all 64GB of RAM was visible and usable.&lt;/p&gt;
&lt;p&gt;My theory is that the forum threads were right: Dell laptops are funny about
RAM upgrades. But somehow in removing the physical CMOS battery, they’ve kept
the same “you have to wait 15 minutes” behaviour just without any indication
that’s what’s happening. Regardless, I now have enough RAM even for the
greediest of IDEs and Electron apps.&lt;/p&gt;
&lt;div class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;
&lt;hr/&gt;
&lt;ol&gt;
&lt;li id=&#34;fn:1&#34;&gt;
&lt;p&gt;Bizarrely, the maximum spec has &lt;em&gt;decreased&lt;/em&gt; to 16GB since then. &lt;a class=&#34;footnote-backref&#34; href=&#34;#fnref:1&#34; role=&#34;doc-backlink&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&#34;fn:2&#34;&gt;
&lt;p&gt;In the generic sense. I use &lt;a href=&#34;https://kagi.com/&#34;&gt;Kagi&lt;/a&gt; these days. &lt;a class=&#34;footnote-backref&#34; href=&#34;#fnref:2&#34; role=&#34;doc-backlink&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&#34;fn:3&#34;&gt;
&lt;p&gt;On my phone because, y’know, the laptop was busted. &lt;a class=&#34;footnote-backref&#34; href=&#34;#fnref:3&#34; role=&#34;doc-backlink&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content>
    </entry>
    <entry>
        <title>On the utility of user stories</title>
        <link href="https://chameth.com/utility-user-stories/"/>
        <updated>2021-10-16T00:00:00Z</updated>
        <id>https://chameth.com/utility-user-stories/</id>
        <content xml:lang="en" type="html">&lt;p&gt;User stories are a staple of most agile methodologies. You’d be hard-pressed to find
an experienced software developer that’s not come across them at some point in their
career. In case you haven’t, they look something like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As a frequent customer, &lt;br/&gt;
I want to be able to browse my previous orders, &lt;br/&gt;
So that I can quickly re-order products.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;They provide a persona (in this case “a frequent customer”), a goal (“browse my previous
orders”) and a reason (“so that I can quickly re-order products”). This fictitious user
story would probably rank among one of the better ones I’ve seen. More typically you end
up with something like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As a user, &lt;br/&gt;
I want to be able to login,&lt;br/&gt;
So that I can browse while logged in.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This doesn’t really provide a persona or any proper reasoning. It’s just a straight-forward
task pretending to be a user story. If this is written in an issue then it provides no
extra information over one that simply says “Allow users to login”. In fact, because it’s
expressed so awkwardly I’d argue that it’s worse.&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;This kind of task-disguised-as-a-user-story problem becomes more obvious when people try
to write technical tasks in the same way:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As a developer,&lt;br/&gt;
I want to refactor the JobFactory,&lt;br/&gt;
So that I can work with it more efficiently in the future.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This just says “Refactor the JobFactory”. If you wrote that in a ticket you’d probably
feel bad for not describing it very well, but somehow when it’s dressed up as a user
story it feels more valuable.&lt;/p&gt;
&lt;h3 id=&#34;does-the-user-really-want-that&#34;&gt;Does the user really want that?&lt;/h3&gt;
&lt;p&gt;One thing that really irks me about user stories is that it lets you twist your
business objectives into sounding like they’re the user’s idea: the story becomes
a post-hoc justification for a task you decided was required.&lt;/p&gt;
&lt;p&gt;Say you’re making a mobile app for an online book store, and your team for whatever
reason has a target of increasing the number of users who view the daily book-of-the-day
offer. Maybe you do some interviews and users tell you they forget to check in each
day to see what the offer is. How can you funnel more users there?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As a mobile app user, &lt;br/&gt;
I want to receive a push notification whenever a new book-of-the-day is available, &lt;br/&gt;
So that I have the chance to buy the book.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Some users probably do want such a thing, but I’d argue the vast majority of them
do not. Imagine if every app on your phone alerted you whenever there was a new
deal, or popped up a dialog whenever you went near a physical shop they had
vouchers for…&lt;/p&gt;
&lt;p&gt;Obviously in the cold reality of capitalism businesses make money by doing things
not strictly in the interests of users&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a class=&#34;footnote-ref&#34; href=&#34;#fn:1&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;. When written up like this it becomes so
painfully disingenuous, though. Despite writing a user story that starts with
the words “As a user”, you’re not really putting yourself in the user’s shoes.&lt;/p&gt;
&lt;h3 id=&#34;who-even-is-the-user&#34;&gt;Who even is the user?&lt;/h3&gt;
&lt;p&gt;One of the big benefits of user stories comes from using &lt;em&gt;personas&lt;/em&gt;
to describe users. It’s also one of the things that’s rarely actually done, at
least in my experience. Looking at Google Trends you can see the rise of searches
for “user story” as agile slowly takes over the world, but the movement in
searches about personas is very slight:&lt;/p&gt;
&lt;figure class=&#34;image center&#34;&gt;
  &lt;picture&gt;
      &lt;source srcset=&#34;https://chameth.com/utility-user-stories/google-trends-story-persona.avif&#34; type=&#34;image/avif&#34;/&gt;
      &lt;source srcset=&#34;https://chameth.com/utility-user-stories/google-trends-story-persona.webp&#34; type=&#34;image/webp&#34;/&gt;
      &lt;img src=&#34;https://chameth.com/utility-user-stories/google-trends-story-persona.png&#34; alt=&#34;Graph showing relative search frequency for user stories against user personas&#34; loading=&#34;lazy&#34; width=&#34;1000&#34; height=&#34;550&#34;/&gt;
  &lt;/picture&gt;
  &lt;figcaption&gt;&lt;p&gt;Graph showing relative search frequency for user stories against user personas&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;A lot of the time stories are just written with “As a user”, or have some
adjectives tacked on to the start (“as a mobile user”, “as a logged-in user”).
The best I’ve ever seen in the wild was specifying the class of user like
in the example at the start: “as a frequent customer”, or “as a visually impaired user”.&lt;/p&gt;
&lt;p&gt;The problem with using these classes is it requires you to come up with them
when you’re writing the story. Maybe one day you think about visually impaired
users, but the next you don’t. Maybe Bob thinks about certain classes of users,
but Alice concentrates on different ones.&lt;/p&gt;
&lt;p&gt;The ideal way to solve this is to come up with personas that all the team
understand. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Kiera is addicted to books. She reads across genres, and often buys books
to gift to her friends and family. She has piles and piles of books to
read, but that doesn’t stop her ordering more if she sees a good deal.
She likes receiving new books almost as much as reading them, and opts
for the fastest delivery available.&lt;/li&gt;
&lt;li&gt;Sharon is a slow, methodical reader. She buys one book at a time when she’s
close to finishing her current one, and gifts or resells her old books.
She almost exclusively reads Science Fiction, and will generally read
complete series from start to finish. She’s short-sighted and often
struggles when using mobile phones or computers.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You’d probably want 2-4 personas that collectively represent most facets of your
userbase. They can be a lot more fleshed out than these - if you search for
example user personas you’ll find many beautifully presented examples that
have complete backgrounds including hobbies, education levels, and so on.
Even with this minimal level of detail, though, I’d argue they’re more useful
than just writing things in a standard user story form.&lt;/p&gt;
&lt;p&gt;Thinking back to the story about push notifications, writing it to use one
of these two personas forces you to think about the trade-offs involved. Kiera
probably &lt;em&gt;would&lt;/em&gt; like a notification, but it would annoy and possibly confuse
Sharon. This then leads you down the path of considering how to accommodate
both types of user — maybe adding it as an option, or doing some fancy machine
learning, etc. The conversation is now focused around the users, rather than
steamrolling over them to reach a business objective.&lt;/p&gt;
&lt;h3 id=&#34;youre-holding-it-wrong&#34;&gt;You’re holding it wrong&lt;/h3&gt;
&lt;p&gt;The problems I’ve described are not a problem with user stories &lt;em&gt;per se&lt;/em&gt;, but
rather common issues with how they’re used. But there’s only so many times you
can tell people they’re holding a tool wrong before you have to accept that maybe
the tool was badly designed.&lt;/p&gt;
&lt;p&gt;Considering features from the perspective of multiple personas is the single
best thing you can possibly do to ensure you’re providing value to your users.
You don’t even need to write things in the typical user story style to benefit
from this.&lt;/p&gt;
&lt;p&gt;Tacking “As a user,” to the start of all your JIRA tickets isn’t being agile,
and isn’t good for users, even if it lets you tick a box somewhere. In some
cases this lip-service to users is actively detrimental to them. We should
be valuing users and personas over stilted templates and check-box exercises
(&lt;a href=&#34;https://agilemanifesto.org/&#34;&gt;remind you of anything?&lt;/a&gt;).&lt;/p&gt;
&lt;div class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;
&lt;hr/&gt;
&lt;ol&gt;
&lt;li id=&#34;fn:1&#34;&gt;
&lt;p&gt;As a user, I want to pay more money for the things that I buy,
so that the company’s CEO can afford to go to space. &lt;a class=&#34;footnote-backref&#34; href=&#34;#fnref:1&#34; role=&#34;doc-backlink&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content>
    </entry>
</feed>
