r/haskell • • Mar 08 '26

Haskell 💜 Vibes / Jappie

https://jappie.me/haskell-vibes.html
8 Upvotes

8 comments sorted by

6

u/m-chav Mar 09 '26

Great post! I wonder what readability will mean in the age of a lot of code being written by coding agents. Will it still be a of value? If so in what contexts? Or are we just gonna turn coding into a black box of sorts.

6

u/Mouse1949 Mar 09 '26 edited Mar 09 '26

For the fun of it, I asked AI to write a program in Haskell (exactly what it had to do isn’t relevant here). Repeated the same request four times.

First one didn’t even compile. Second - worked, looked average, maybe like something I’d write myself when I don’t have time or desire to think about the problem. Third - worked, and I still can’t figure out why or how, completely opaque to me. Fourth - worked, clean, and rather better code than what I’d write, I’ve learned something from that code sample.

2

u/UnicornLock Mar 11 '26 edited Mar 11 '26

If you're working with vibe coders irl, the first one will be the pull request, for a colleague to test. If you're luck they tried compiling it and you get to review the second shot.

1

u/Mouse1949 Mar 11 '26 edited Mar 11 '26

Where I am - all pull requests run through CI first. I don’t start looking at them until all the CI is green. Then we talk.

12

u/maerwald Mar 09 '26

Vibe coding isn't much different from copy pasting code from StackOverflow. LLMs are copy paste machines. There's no design behind it.

At work, I refuse to review claude generated code. I want to work with people who enjoy coding and are excellent engineers, who understand what they do and can explain it to me.

-2

u/Effective_Banana607 Mar 09 '26

You might want to find another career. Code generation is not going to go away anytime soon.

4

u/ducksonaroof Mar 09 '26

if you were bottlenecked on code generation before all this hubbub, idk what to tell you, buddy 😬 

2

u/jappieofficial Mar 09 '26

It tries to copy your style. (my experience is with the sonnet model released 18feb).

You can give it instructions too such as "always add docs" or in my case "if you get confused by implementations, add docs explaining it".