Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog


Channel Description:

Four in the morning, still writing Free Software

older | 1 | (Page 2)

    0 0

    I recently fought the Android emulator a lot to get my UI tests to run automatically during the build of Rabbit Escape, so I thought I’d better write down what I did before I forget. I already have tests that drive the Android UI (see e.g. SmokeTest.java – it’s not pretty, but it seems reliable, … Continue reading Automated UI tests on Android

    0 0

    For a lightning talk at the ACCU Conference I wrote a little story: A story about magic and how we treat each other It describes one person’s journey towards realising that we need to act to be kind to each other, and not to expect it to happen automatically. In the tech community, a lot … Continue reading A story about magic and how we treat each other

    0 0

    By default, Gradle does not show you what happened when a unit test failed: $ ./gradlew test ... MyTest > Black_is_white FAILED org.junit.ComparisonFailure at MyTest.java:6 ^^^ WHAT ACTUALLY FAILED???? ... This is insane, and can be fixed (thanks to mrhaki) by editing build.gradle to add: // NOTE: this is the non-Android solution - add to … Continue reading Make Android Gradle display unit test failure messages

    0 0

    Series: Iterator, Iterator Wrapper, Non-1-1 Wrapper To make your own iterable range in C++ that you can loop over or make a vector out of (mine is called Numbers): // Prints: // 3,4, for (auto n : Numbers(3, 5)) { std::cout << n << ","; } // Fills vec with 7, 8, 9 Numbers nums(7, … Continue reading C++ iterator example (and an iterable range)

    0 0

    Series: Iterator, Iterator Wrapper, Non-1-1 Wrapper If you want to wrap an iterable range with another that provide iterators that transforms the underlying iterators in some way and allows looping or constructing other objects: for (auto ch : Upper("abcdef")) { // Prints "ABCDEF" std::cout << ch; } Upper up(std::string("fOo")); std::string newfoo(std::begin(up), std::end(up)); assert(newfoo == "FOO"); … Continue reading C++ iterator wrapper/adaptor example

    0 0

    My talk from ACCU Conference 2017 where I describe a tiny programming language I wrote: Slides: How to write a programming language Cell source code: github.com/andybalaam/cell

    0 0

    Series: Iterator, Iterator Wrapper, Non-1-1 Wrapper Sometimes we want to write an iterator that consumes items from some underlying iterator but produces its own items slower than the items it consumes, like this: ColonSep items("aa:foo::x"); // Prints "aa, foo, , x" for(auto s : items) { std::cout

older | 1 | (Page 2)