jetbrains junie

I had a coupon code for JetBrains Junie AI Ultimate for a year. I set it up last month and have been using it a good bit.

How setup went

First I installed the Junie plugin. After accepting the license, I went to:

help > register – click disabled paid plugins > click JetBrains AI Assistant > Enable and restart

Then I clicked the three dots and license info which took me to the website. I had to click buy on AI ultimate and enter the code. I’m guessing I could have started on that page.

My first test

As a simple use case, I asked JUnie to create a package with two examples. Junie gave me a plan and the two examples:

Create com.jeanneboyarsky.scoped package with immutability examples.

Explore repository to confirm coding style and package naming conventions.

  1. Create new package directory src/com/jeanneboyarsky/scoped with two classes:
  2. Ensure examples are self-contained with main methods printing illustrative output.
  3. Note compilation requirements: document that JDK 21 needs –enable-preview, while JDK 22+ compiles normally.
  4. Provide summary and submit changes.

then listed summary for each class

A new Java class has been created to demonstrate that ScopedValue bindings are immutable within their scope. The implementation highlights that reassignment attempts are not permitted due to ScopedValue being a preview API.

A new Java file has been created to demonstrate that while a ScopedValue’s binding is immutable, the underlying object can be mutable. The code successfully illustrates mutating a Map within scoped values, while also handling scope boundaries.

Finally listed two two classes it created with a link to rollback if i don’t like
A new package com.jeanneboyarsky.scoped was created with two classes: ScopedImmutable1 demonstrates the immutability of ScopedValue bindings, and ScopedMapMutable1 shows that the contents of a mutable Map inside a ScopedValue can be changed. The code compiles for JDK 21+ but lacks automated tests.

In PyCharm

The license is good for all JetBrains products so I tried it in PyCharm as well.

Create a file named junie.py that plays tic tac toe. However instead of X and O, use Unicode symbols for unicorn and wolf. Also have the computer player use a strategy with a low win rate.

The generated code was concise and clear. It used Python idioms. It was well commented. Junie decided to implement my request for a low win rate with this strategy:

# Strategy intentionally weak:
# 1) 60% of the time: choose random move outright.
# 2) 40% of the time: attempt some light heuristics but also sometimes skip blocks/wins.
# Light heuristics section (still weak)
# a) occasionally avoid taking a direct win to stay weak
# b) occasionally block human, but not always
# c) mild preference for center, but not strong
# d) otherwise random corner or side

I ran the code and it works. And won’t frustrate a small child.

Generating Docs

I’m presenting an updated version of “Java Does What Now.” I created an IntelliJ project with packages for each of the examples in my presentation. After I was done, I asked Junie to create a readme to document the unexpected behaviors exhibited by the code.

It didn’t always get it right, for example telling me the module import was invalid. But that’s a new feature so not one it’s been trained on. But overall it did a good job.

[kcdc 2025] 82 bugs i collected in a year you won’t believe made it to production

Speaker: Francois Martin

For more see the table of contents


General

  • Collected 382 bugs over 2 years

Bugs

  • Shows places where the accent mark in his name was handled incorrectly
  • Lorem ipsum on website instead of text
  • Ship date 12/31/69 – default time in a different timezone so converted
  • Get it before gone – 0 available
  • All items in pull down are “Object”
  • “null” displayed instead of value
  • Undefined/NaN instead of number
  • Emails missing
  • Everything in English and terms and conditions link in French
  • Dark mode changes background but not text so black on black
  • Viewing 42 of 38
  • 18 of 0 products found
  • Merge first and middle name into first name
  • Clicking + goes from 0 to 1 to 2 to 0 to 3.00000000000000004
  • AI bug – said thought looking for something unrelated
  • Lack to HTML entity decoding
  • Character encoding issues
  • @fmartin_ fails validation. It wasn’t the underscore, Couldn’t get it to be valid even without.
  • Lack of responsiveness; text overlays, menu cutoff
  • Glitching – various things that go away on refresh
  • Placeholders not replaced
  • Unfiltered error message. User shouldn’t/doesn’t need the back end message
  • “2 guest” instead of “2 guests”
  • Text keys instead of translated value
  • Text keys flash and translate a few seconds later. SSR (server side rendering) solves this.
  • Incorrect/missing info

General

  • Defect – imperfection or deficiency where it does not meet requirements or impairs its intended use
  • ex: expose info that shouldn’t. not clear what to do, instructions don’t work
  • Reproducibility doesn’t matter. Once is enough
  • Found more bugs since June. Maybe because of vibe coding?
  • Most bugs are UI. Logic, error handling came in next
  • Of the critical/blockers, data validation and error handling had most bugs

To prevent

  • webdriver.io good for testing mobile
  • end to end testing
  • dog fooding – use the product yourself
  • exploratory testing – experts can find lots of bugs in short time
  • heat map visualization – see where clicks are. dead clicks (click an element and nothing happens. Rage clicks (repeated clicks out of frustration and nothing happens)
  • Turn off stack traces in prod. Only show specific messages
  • Prevent SQL injection and XSS
  • Test in all the languages you support

My take

The session began with a guest – 30 seconds accordion song about bugs and service pack 2. Relaxing and fun; great timing as last session of the day. I enjoyed seeing the examples and also the analysis/statistics about categories of bugs.

[kcdc 2025] designing for behavioral change – the science behind habit-forming products

Speaker: Preston Chandler

For more see the table of contents


General

  • Why do some products become second nature while others are forgotten – valuable, fun, etc

Habit Loop

  • Cue -> Response -> Reward
  • If you put a golf ball near a nest, a goose will pull it into nest. Maximizes number of chicks from when egg rolls out of nest

Hook Model

  • Trigger -> Action -> Variable reward -> investment
  • Investment can be effort/time/money
  • Consultants expensive. If free, wouldn’t care about. “That was just $100 of advice”
  • Variable rewards are more appealing than predictable ones. ex: gambling
  • Some things need to be predictable – ex: excel formula

B=MAP

  • behavior = motivation * ability * prompt
  • Cathedral in Milan – had to sign up for entry with a QR code. Prompt was QR code. Motivated to get in. Couldn’t get website to work after 20-30 minutes

Effort vs Reward

  • Amazon – easy – buy now button, reward by getting stuff faster, microtransactions, made easy for you to give them money.
  • Tiktok – easy – just scroll down and get gratification. Variable reward; not every video good. Also dark pattern.
  • US Treasury – hard. Keyboard where click each letter and not in order. Changed since
  • hard website – abandon
  • AT&T – expensive. Negative reward compared to others. 8 hours to leave service. Multiple calls to customer service. People will never go back if left dissatisfied
  • Rewards – money, time, scrolling motivation
  • Checklists motivate most people, satisfaction of moving as done
  • Line of sight goals are motivating. Ex: daily goals, gold coins
  • Different people motivated by different things

Dark Patterns

  • Sign up for newsletter and get 30% in
  • Confusing radio buttons on whether to opt in
  • Link with very little contrast to background so can barely see
  • Company and user incentives not aligned

Voice Assistant

  • Use for music, timer, shopping
  • Sticky because personalizable to you

DuoLingo

  • Motivated to keep streak alive. Child said didn’t have enough time to finish homework. Said ok because went zoo. But wanted to keep streak
  • Easy to pick up, don’t need a lot of time
  • Bird will look angry and shame you – dark pattern
  • Constantly upselling – dark pattern

Exercise

  • For trigger clarity, action simplicity, reward value and investment payoff, think about obstacle today and how make better

Other

  • Behavior is deisgnable – ex: clear trigger, low effort
  • Ethics = engagement + trust
  • Small changes can have a big impact. If hose squished, have a constraint and hardly any water goes though. Must fix that to improve

Playbook

  • Identify internal/external triggers
  • Minimize friction, simplify first action
  • Offer variable rewards tied to meaning
  • Encourage invementment, effort builds attachment
  • Align outcomes with user values

Creativity

  • Chore Kanban
  • Have ChatGPT make budget a Shakespearean sonnet

My take

Great examples to understand ideas. Fun examples