Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hjwp3
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
hjwp3
8y ago
Maybe in context it's not so bad? > On the Merits of Trivial Tests for Trivial Functions > In the short term it may feel a bit silly to write tests for simple functions and constants. > It’s perfectly possible to imagine
2.
▲
by
hjwp3
8y ago
there's an appendix with a v brief discussion: http://www.obeythetestinggoat.com/book/appendix_bdd.html
3.
▲
by
hjwp3
8y ago
there's some quite in-depth discussion of this in chapters 23 and 25. http://www.obeythetestinggoat.com/book/chapter_purist_unit_t... http://www.obeythetestinggoat.com/book/chapter_hot_lava.
4.
▲
by
hjwp3
11y ago
http://www.obeythetestinggoat.com/ for the curious...
5.
▲
by
hjwp3
12y ago
I recently went through a bit of a comparison exercise myself, after my Sony Vaio Z series packed in. I had a slightly higher budget than OP because I wanted something reasonably high-end, able to run several VMs for example, but nice and
6.
▲
by
hjwp3
13y ago
awesome!
7.
▲
by
hjwp3
13y ago
sure enough -- might have taken me 5 goes (computer isn't that stupid, it knows rock is the best too)... but eventually it cracked. one-nil!
8.
▲
by
hjwp3
13y ago
awesome. Rock, every time.
9.
▲
by
hjwp3
13y ago
it's fun watching curious people snooping around! !cat /etc/passwd would you eh?
10.
▲
by
hjwp3
13y ago
Thanks! We were thinking it would be useful for people posting solutions to stackoverflow questions, and also maybe people doing remote-pair-programming, as a way of sharing code with an interactive terminal to work through ideas... Or per
11.
▲
Interactive browser-based console for any Python Gist
(pythonanywhere.com)
30 points
by
hjwp3
13y ago
|
11 comments
12.
▲
by
hjwp3
14y ago
love it!
13.
▲
by
hjwp3
14y ago
In fact, non-Python developers are welcome too. You can just use the site for hosting your repos, be they full of ruby, node.js, haskell, or whichever Lovecraftian horror of a language you prefer... Just make sure to click on "Bash console"
14.
▲
by
hjwp3
14y ago
not sure I can bear to watch myself! But you can also see my full tutorial at http://www.tdd-django-tutorial.com
15.
▲
by
hjwp3
14y ago
I don't think I accept your critique then - I make a clear distinction between "functional" tests (ie, the selenium ones), and "unit" tests, and I write both types Although you may have a valid point that my "unit" tests aren't unit-ey enou
16.
▲
by
hjwp3
14y ago
I can totally see your objection re the tests not being "unit-ey" enough... But why would you say it's not TDD?
17.
▲
by
hjwp3
14y ago
Hi there, author here, and thanks - that's all very valid feedback. I totally accept the point on the first few "unit" tests being reliant on the database. I took the decision that testing behaviour, and thus introducing the Django ORM ear
18.
▲
by
hjwp3
14y ago
thanks for pointing that out, and for the suggestion re `max-width`, Will get on it...
19.
▲
by
hjwp3
14y ago
Also, I'd tend to agree that testing model attributes is a bit OTT - it's very close to testing a constant... but, it really doesn't take that long, and if it provides a scaffold that makes it easier to write future unit tests on the model
20.
▲
by
hjwp3
14y ago
thanks! re: the first unit test, and the saving & retrieving of records -- i know this feels a bit like "testing django", but the real intention is to test that we've set up our model with the right fields. The alternative would be to t
21.
▲
by
hjwp3
14y ago
have started by fixing a windows fallback font for the text so that it's not Times!
22.
▲
by
hjwp3
14y ago
thanks!
23.
▲
by
hjwp3
14y ago
thanks for the feedback - am not mad good at the old graphic design, but it's all too easy to just say "I can't be bothered with that stuff"... I'll try and make some improvements. I gather it looks particularly ugly on windows, must take a
24.
▲
by
hjwp3
14y ago
thanks for the post! (harry, the author)
25.
▲
by
hjwp3
14y ago
Just to say that HTTPS is now live across the site, and active on all pages...
26.
▲
by
hjwp3
14y ago
We're definitely keen to get it in asap. The hang-up was getting secure websockets working - that was showing up a bunch of socket errors server-side, but the latest dev testing seems to show things are looking better, so we hope to get it
27.
▲
by
hjwp3
14y ago
yep
28.
▲
by
hjwp3
14y ago
hey, will you drop us a note via "send feedback" and we'll see if we can debug this?
29.
▲
by
hjwp3
14y ago
OK that link totally didn't do what I thought it would. Anyways, what I meant to say was: see Tycho's post below - sometimes you're at a PC which doesn't have Python installed. So it doesn't have to be a replacement for your desktop, alt
30.
▲
by
hjwp3
14y ago
You can install modules locally, using pip install --user, and then I gather that the right combination of virtualenv hacks in your WSGI file will let you choose the django version... Will try and get that documented somewhere.
More ›