Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
k_bx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
58 ms
·
691.
▲
Python double-call hack for mocking date/time
(redhotchilipython.com)
1 points
by
k_bx
14y ago
|
0 comments
692.
▲
by
k_bx
14y ago
if only virtualenvwrapper would also somehow got there :)
693.
▲
by
k_bx
14y ago
> print [] == [] True ok, I love this thing already! wow, it also knows about bound-methods https://gist.github.com/2947907 , no need to hack with _.bindAll().
694.
▲
Mockstar – Mocking Like a Rockstar (python, unit-testing)
(mockstar.readthedocs.org)
3 points
by
k_bx
14y ago
|
0 comments
695.
▲
by
k_bx
14y ago
I wonder if postgres will adopt BSON instead of JSON and implement all the querying -- that would be so much better. p.s.: guys who disagree -- why would you do that? I mean, BSON lets you quickly skip (embedded) documents you're not intere
696.
▲
800px-width bookmarklet (may be useful even for HN)
(redhotchilipython.com)
2 points
by
k_bx
14y ago
|
0 comments
697.
▲
by
k_bx
14y ago
> My main problem with most NoSQL solutions is that I have to tweak the problems I have to fit the solution, instead of the other way around. Technologies that can be tweaked simply rock. Well, I would disagree. While it's great that sq
698.
▲
by
k_bx
14y ago
Because TDD is about test-driven design. And functional tests don't do any impact on design. TDD is about creating code in a way, suitable for unit-testing and creating code step-by-step, keeping each step small and all branches tested. TDD
699.
▲
by
k_bx
14y ago
facepalm.jpg
700.
▲
by
k_bx
14y ago
So, I am just about writing something that would describe my REST API (possibly generate handlers from description) and integrate very nicely with Sphinx for docs, and I can see (on slides) you already have something like that. Am I right?
701.
▲
by
k_bx
14y ago
It's a fantastic tutorial and I hope everyone will start testing their code at least with selenium. But.. it's still not unit-testing (and not TDD) at all. And in things like this, when you break something at the bottom, tons and tons of te
702.
▲
by
k_bx
14y ago
+1, but with HTC Desire. It's small amount of memory, stupid non-fixed bugs in HTC apps that cannot be removed -- I hate those small things. Really.
703.
▲
by
k_bx
14y ago
> I couldn't agree more. Email is essentially the skeleton key to all your other accounts thanks to email reset That's why I decided to get my own domain and use google apps 4 domain. I mean, who knows what happens in 10 years, maybe tw
704.
▲
by
k_bx
14y ago
> When you are done with the ‘quick-fix’ branch, you can just remove it, and nobody has to know it existed Well, I actually want to know about branches. If someone finishes work on some branch, he'll just close it after merge. Also, "hg
705.
▲
by
k_bx
14y ago
> For example the number of folk who treat TDD as a synonym for unit testing is scary. I think the problem is in 2 parts: in TDD term (Test-Driven Design/Development, it's just not that obvious), and in lack of unit-testing at most proj
706.
▲
by
k_bx
14y ago
copy of my comment: I am python developer. I also ask myself these questions, and on current project I use TDD heavily (but still far from 100%). One thing it totally gives me is ability to let other devs in team without need of tons of col
707.
▲
by
k_bx
14y ago
Yeah. And I use ipython's %ed command for that kind of long scripts (emacsclient as editor). Also really great feature.
708.
▲
by
k_bx
14y ago
Wow, thanks a lot! I wonder why it's not in default somewhere.
709.
▲
by
k_bx
14y ago
maybe the problem was that you need to do pip install -U ipython ?
710.
▲
by
k_bx
14y ago
Offtopic: with all these ipython/bpython's only thing that bugs me is need to do pip install -U ipython bpython (which downloads significant portion of bytes) in every virtualenv. I wonder if there's something like "pip install -U ipython -
711.
▲
by
k_bx
14y ago
As a python guy, I don't want python support. That would be one more reason for lazy me to go there and learn/play with some Clojure :)
712.
▲
by
k_bx
14y ago
> a non standard waste of resources I don't know what resources you are talking about, but it's definitely not wasting my screen resources as others do. My vertical spaced is saved my menu-on-panel integration, on fullscreen title goes
713.
▲
by
k_bx
14y ago
Hmm, I think I am seeing this not for the first time.. (hint: "Year %s, the year of desktop linux?")
714.
▲
by
k_bx
14y ago
Yeah. Maybe btrfs (and it's snapshots) is a good option for system-upgrades which end into non-booting situations, but generally I think it is possible with growth of community and QA infrastructure to minimize situations like these (also,
715.
▲
by
k_bx
15y ago
ConnectToDatabaseCheckUserNameAndCountPosts() should be 3 functions, not one.
716.
▲
by
k_bx
15y ago
Since this is a notebook-thread, I would be interested in 15" thin and beauty notebooks for linux. They are not ultrabooks because of 15" screen, but I really can't stand <15". Thank you.
717.
▲
by
k_bx
15y ago
(maybe the examples I provided are not ugly enough to show difference, so I'll try to do that here) On non-rest API you can get in trouble mixing actions and resources, so you can get things like {'action': 'list_users'}, {'action': 'rename
718.
▲
by
k_bx
15y ago
Yes, ok, you will use WebSockets for your API. But what will it look like to book a ticket on your API? "{'action': 'book', 'from': 'Chicago', 'to': 'Moscow'}"? It's still junk without REST style. The point of REST is operating with resourc
719.
▲
by
k_bx
15y ago
Data structure is "a particular way of storing and organizing data", so I think there's not so big distinction between two. More of that, when we think of data structures, we think of insertion/deletion/searching complexity, also we think a
720.
▲
by
k_bx
15y ago
I disagree at some point. If person doesn't at least knows difference between hash-table and B+tree -- then he cannot build large scale systems. The same for other algorithms. Everything is based on algorithms, and without their understandi
More ›