40 karma · joined Jul 24, 2008 (18y ago) · 20 submissions
comment 10y ago · link · parent
Some tools are fundamental. A tool to solve the problem of executing dependant tasks is one of them.
Solutions to these fundamental problems tend to be implemented early on. Some of those early solutions were poor, and have fallen out of use. Some of them were good, and have been refined in the intervening years, and hence are still with us.
A good tool to solve a fundamental problem is still useful, no matter how old it is.
comment 14y ago · link · parent
comment 14y ago · link · parent
You could imagine writing an 'is image almost equal' comparison, but I'm informed by those who have tried (pyglet developers) that this is substantially harder than it sounds - the differences between images are not what you would expect.
The alternative, if you want anyone else to be able to run your tests, is to tie yourself to a particular OS/hardware/driver combo. Not appealing for many projects.
Even if this could be done, this sort of 'compare snapshot' test is brittle, because, of course, we're talking about high level functional tests here, so you'd be snapshotting your whole game/application, not just limited aspects of it in a limited environment. Hence the screenshots would change all the time. Every time you added or modified any functionality you'd get a failing test and have to manually compare the images and assert that the differences were OK and then commit the new screenshot. This is ripe for overlooking small regressions, and makes subsequent bisection very difficult.
Of course, we haven't even got into the aspect that, as an end-to-end test, your test code would actually have to interpret the images and send mouse/key inputs to successfully play your game. Through to completion, of course - how else would you know your game-completion conditions were all wired up correctly?
comment 14y ago · link · parent
comment 14y ago · link · parent
I always find starting functional tests, especially in a new area of your program, to be a tremendous exercise. Maybe I'm doing it wrong. For example, last week we moved on to writing code that hits an sftp server - so our functional test spins up an sftp server locally & overrides the product code settings so that it connects to that. Getting this set up and working took me a couple of days, and this is such a tiny aspect of the code under test that I'm afraid I'm exhausting my teammates patience for "test first functional tests".
In other areas e.g. hobbyist opengl code, I think this initial barrier to getting started is so high (you'd have to write a sort of machine vision thing to analyse the actual output, rather than just what opengl calls were made) that truly end-to-end tests are a complete nonstarter. You have to give in and settle for integration tests instead.
I suspect many people are in that same place with regard to functional testing of web apps. Yes there are tools like selenium, but there are issues of test data & making sure product code connects to test databases. There are solveable, but people don't see that the value is greater than the costs of wrestling with that.
comment 15y ago · link · parent
>> HTML5 charting or Google Visualisation
This would be great. Maybe we could have a canvas element off on some discreet pane somewhere, direct these rendering libraries at it, and reveal the pane when the canvas gets written to.
>> public datasets readily available to hack on.
Genius. Great idea.
comment 15y ago · link · parent
We hadn't thought about chart drawing, but it seems to make good sense. Thanks!
We're constantly brainstorming about the best ways to import and export source and data. We're currently thinking about Dropbox or Github integration, or maybe a very lightweight client-end component which simply allows you to sync the current directory to your PythonAnywhere server-side storage.
14.
Rate our pivot : PythonAnywhere
13 points · by tartley · 15y ago · 13 comments
comment 15y ago · link · parent
That's why something like Lanyrd is great, for helping you find those small events which are full of smart passionate people doing cool things.
comment 16y ago · link · parent
Best regards,
Jonathan
comment 17y ago · link · parent
At higher doses, this would be overshadowed by the negative effects (leaping too far around the problem space, into nonsensical ideas, deleterous effects on memory and motivation.)
I presume an experienced user could differentiate, judge their own reactions and moderate accordingly. I don't believe I could.
comment 18y ago · link · parent
I'm English, but lived in the US for five years, and have returned to England for five years now, in London for the first time.
Another beautiful essay though, thanks for that.