jitterted, to random
@jitterted@sfba.social avatar

Hey #TDD Game fans!

If you were thinking of ordering your own copy of JitterTed's TDD Game, I recommend ordering soon, as I'm running low on inventory (and won't get more for another month or so).

Get your copy (or multiple copies—saves on shipping) today at https://tdd.cards

danielsiepmann, to programming

Today I could start #programming for a new project. I applied the learnings from @matthiasnoback workshop regarding #software architecture.

And well … It works good so far. And so many more things now make sense and work, e.g. TDD. I thought TDD doesn't make sense, except for some cases. But now with a different point of view to how to create and structure software … it now works. I could develop the current project fully #TDD.

I can highly recommend his workshops :)

nekohayo, to GNOME
@nekohayo@mastodon.social avatar

I hate #daylightsavingstime. I hate it so much. The week where #DST changes occur lets me find the weirdest of higgs-bugson and mandelbugs in #GNOMECalendar while doing #QA.

At least the majority of those issues have already been durably fixed for #GNOME 46 by @danigm's fantastic #TDD (unit-tests-backed) bufixes 😌

Today's new discovery: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1198

GNOME Calendar's week view, showing a bug where dragging and dropping events in the hourly timetable to reschedule them will cause them to be offset by one hour from the intended position, during the week where DST changes occur.

qcoding, to SwiftUI
@qcoding@iosdev.space avatar

I'm taking a small break from live coding, so there will be no stream this Sunday.
But do return on Sunday, March 10. We'll start writing a game using #SwiftUI! What does test-driven development (#TDD) look like in a SwiftUI world?
The chat is lively: you can ask questions and help answer mine. Follow me on Twitch for the go-live notification. https://www.twitch.tv/qcoding

fabian, (edited ) to python
@fabian@floss.social avatar

Phew, the second (maybe third) pretty big stand-alone #Python library (first was a script rather) that I wrote at my job within the last 12 months. (Not that common anymore.)

Each took roughly 1 month until v1. Each 1k+ lines of code. This time very #TDD style (the script not so much, because it was a one-off — well, two-off ;)

  • code: 600 lines
  • tests: 800 lines
  • docs: 150 lines (should be 300+)

😓

#programming #softwareDevelopment

emilybache, to random
@emilybache@sw-development-is.social avatar

Unit tests are supposed to help you to find bugs. In some situations you need a Test Double, or a Mock object in your test. That can make it harder! Take a look at the Guided Learning Hour that I just published. https://youtu.be/OuRtBe07T9A #softwaredevelopment #tdd

jhall, to golang
@jhall@techhub.social avatar

"Wow, I've never seen anyone use TDD on a real project."

An actual quote from a previous veiwer. Sound like you? Come watch me use TDD as I'm adding some new capabilities to an open-source library.

#go #golang #tdd #livestream #livecoding

https://youtube.com/live/z530uVzmNc8

jitterted, to Java
@jitterted@sfba.social avatar

On today's Solo stream, I'll be working on the and WebSocket portion of my Ensemble Rotation Timer.

Join me in about 25 minutes (11:30am PST | 7:30pm UTC) on Twitch: https://jitterted.stream

jitterted,
@jitterted@sfba.social avatar

🚨 Live Now 🚨

Had to restart my machine, all is good now. Join me at https://jitterted.stream

jitterted,
@jitterted@sfba.social avatar

Once again, and meant that when I hooked up the "real" timer broadcaster (using WebSockets), everything just worked.

Only took 35 lines of WebSocket code and 10 lines of configuration code and a few attributes on the HTML page. (Not counting the separate transformer code that generated the HTML.)

schizanon, to programming

"write tests first" is the "eat more vegetables" of programming

anderseknert,
@anderseknert@hachyderm.io avatar

@schizanon it’s the crossfit of programming. impossible to do without telling everyone about it

kevinrutherford, to random
@kevinrutherford@mastodon.me.uk avatar

It's the second week of the month, and that means only one (important) thing: XP Manchester!

This monthly lean coffee discussion of all things eXtreme Programming is online, so you can attend from anywhere!

Thursday 8th February, 0730 for a 0745 start, finishing around 0845. Joining details: https://www.meetup.com/xp-manchester/.

Come along and meet the other 17 people who have already signed up to attend...

#xp #extremeprogramming #agile #tdd #xpman

kevinrutherford,
@kevinrutherford@mastodon.me.uk avatar

@mlevison I recall we used to do the Carnival of Agile blog post thing 😎

mlevison,
@mlevison@agilealliance.social avatar

@kevinrutherford wow good memory

jbrains, to random
@jbrains@mastodon.social avatar

Trying to do something like #TDD with #jq

I'm using Golden Master technique and I've committed the expected output to git.

This is "assert all remains well" while refactoring:

git diff --exit-code --quiet Testing/; if (( $? )) then; echo "FAIL"; else; echo "OK"; fi

jbrains,
@jbrains@mastodon.social avatar

Zero-button/Continuous testing:

find . | entr -s 'echo "\n\n" && date && git diff --exit-code --quiet Testing/; if (( $? )) then; echo 'FAIL'; else; echo 'OK'; fi'

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@jbrains
is this related to https://mastodon.social/@jbrains/111846184994801060 at all?

When you use inter-process testing, how much control over the environment are you looking for?

For me magic environment vars affecting behaviour are something I want to not have when executing a sub-process

Thinking
env -i PATH=$PATH bash -c "${yourcommand}"

I use bash or $SHELL because it adds some minimal expected environment; but not much

davidsabine, to random

Do you have questions about #TDD?

Ask away. I'll try to respond to each Q in a new thread.

sjkilleen, to dotnet
@sjkilleen@mastodon.social avatar

Just had one of those great experiences where I adapted to a changing requirement by incrementally updating/adding tests, watching them fail as expected, changing the code until they passed, and then refactoring to cleanup while all tests stay green. It's such a great feeling to code with that level of confidence. Never gets old. And my production code got simpler & smaller as a result.

davidsabine, to random

The #1 way to learn #TDD:

🟢 Pair with a mentor

Years ago, I paired for just 3 days with a mentor and my TDD practice was transformed. Years later, I paired with another and my TDD practice was transformed again.

anderseknert, to random
@anderseknert@hachyderm.io avatar

I’ve seen a lot of wrong takes on test driven development, or #TDD, lately. Surprising, given that it’s just 3 simple steps to remember:

  1. Write a unit test before writing code
  2. Write the code to be tested
  3. Tell everyone you’re doing TDD. Tell your friends, your family and your colleagues. Most importantly, tell the internet. Everyone must know you’re doing TDD. This is the most important step, and in fact, you can probably skip the first two steps and go straight to this one.
anderseknert,
@anderseknert@hachyderm.io avatar

@danhulton yeah, also forgot — tell everyone not doing TDD that they can’t possibly be productive, must be writing crappy, insecure code which is impossible to maintain, etc

You’ll have so much time to spare for that once you’re doing TDD.

ethanjstark,
@ethanjstark@hachyderm.io avatar

@anderseknert

TDD INTENSIFIES

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines