article thumbnail

An example of LLM prompting for programming

Martin Fowler

He showed an example of how he uses ChatGPT to help him code in a self-testing style. A couple of weeks ago I watched a fascinating Zoom call hosted by Xu Hao , Thoughtworks's Head of Technology in China. His initial prompt primes the LLM with an implementation strategy (chain of thought prompting).

article thumbnail

The Real Reasons for Doing Test-Driven Development ??

Xebia

Here’s a secret: it’s not for the tests. Learn about the actual goal and values hidden under the surface of Test-Driven Development. Test-Driven Development (TDD) is a controversial topic amongst developers. Let’s get the biggest misconception out of the way first: TDD is not about testing.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Effective Software Testing – A Developer’s Guide

Henrik Warne

I recently finished Effective Software Testing – A Developer’s Guide by Maurício Aniche , and I really liked it. I have been coding for a long time and I think I have been writing pretty good tests for the features I have implemented. The book apparently grew out of lecture notes from a course on software testing.

article thumbnail

Recruiting Software Developers – Coding Tests

Henrik Warne

In all cases, one or more coding tests were included. I have also been on the interviewing side, evaluating a coding test. Are coding tests needed? When I started out as a software developer, nobody did coding tests as far as I know. These days though, many companies (but by no means all) require you to do a coding test.

article thumbnail

6 Small Unit Testing Tips

Henrik Warne

Choosing test values when writing unit tests is mostly guided by the need to cover all cases of the program logic. Here are a few tips on how to pick values that make mistakes easy to spot and the tests easy to read. Plus a bonus tip on a quick way to double check your tests. . Test what shouldn’t happen.

Testing 296
article thumbnail

Stateful Testing in Scala

Xebia

One of the most used testing libraries in the Scala ecosystem is Scalacheck. The functional programming team at Xebia has always advocated for this mature tool. We’ve published content about this topic previously and are currently offering a relevant Property-Based Testing in Scala course in the Xebia Functional Academy.

Testing 130
article thumbnail

Temporal Testing with Karat + Turbine

Xebia

The functional team at Xebia is always eager to test new techniques and methods to improve our code’s confidence. One of our latest avenues is building upon property-based testing but targeting entire execution traces instead of unitary function calls, using the stateful testing abilities already available in libraries like ScalaCheck.

Testing 130