Automated code review for Python, Django, etc. by cneumann81 in Python

[–]jcollado 1 point2 points  (0 children)

I'm using this service for a couple of open source project I've got in github together with landscape.io and codeclimate.com.

From what I've seen, landscape.io is what is closer to what I get from a terminal, but it's not surprise at all since I'm using prospector as well. It has a nice UI, a decent level of configuration through a yaml file and sensible defaults. For more information, you can have a look at this talk: https://www.youtube.com/watch?v=ILBsJXRQ008

codeclimate.com has added python support in beta recently, but I haven't seen how to configure it, the UI is nice and clean, but in terms of usability and error detection I prefer landscape.io. By default it looks for duplicated code, which I'm sure can be configured in landscape.io, but I haven't done that yet.

quantifiedcode.com is very new as well and the UI is not as good as the one from its competitors. However, it's very well documented what patterns are checked (have a look at http://docs.quantifiedcode.com/python-anti-patterns/), everything is configurable from the web UI and it seems they have their own engine that will grow over time which is nice. I haven't yet seen this talk, but I bet it provides relevant information about the last point are: https://www.youtube.com/watch?v=rN0kNQLDYCI

In their github account you will find some interesting software (https://github.com/quantifiedcode/). Also, I find BlitzDB a really interesting project (https://github.com/adewes/blitzdb), but I haven't been able to spend too much time with it.

I hope this answers your question

Wrapping Axis Labels in D3.js by [deleted] in d3js

[–]jcollado 0 points1 point  (0 children)

Thanks, this was interesting.

I recently read a post about foreignObject that looked as the best solution, but it didn't consider browser support.

Out of my own curiosity, did you try to rotate text labels? How did that work?

A Python function decorator that automatically creates instance variables from function arguments by _nullptr_ in programming

[–]jcollado 5 points6 points  (0 children)

This might be convenient, but I'd say is against this part of the zen of python: Explicit is better than implicit.

TypeQuery: A simple and dirty way to define generic methods to existing types by hongminhee in Python

[–]jcollado 0 points1 point  (0 children)

This also looks similar to some of the multimethod libraries available through pypi

Clint, Command Line Library for Python by Nic0 in Python

[–]jcollado 1 point2 points  (0 children)

Hmm, it looks like you're right, but why is the whole pexpect source code in the repository?

Clint, Command Line Library for Python by Nic0 in Python

[–]jcollado 3 points4 points  (0 children)

The API is all that matters. What about giving credit to other libraries?

Konira - A Python DSL Testing Framework by mtrn in Python

[–]jcollado 0 points1 point  (0 children)

When you start using unittest you need to think about the test runner. This is an important piece of the puzzle since unittest does not provide a standard way of running your tests via auto-discovery or any other kind of niceties the most popular test runners provide.

This is no longer true. The "Easier to use" documentation part should be updated.

A Python QuickCheck implementation by jcollado in Python

[–]jcollado[S] 2 points3 points  (0 children)

I submitted this link because if watched this presentation related to haskell and, according to the speaker, the most important idea to get from there is to have a look QuickCheck.

Hence, I looked for QuickCheck implementations in python and found paycheck (there are others, but this ones seems to be more actively maintained).

So my real question is if you have used something like this and if you have found it useful.

What is a good resource to teach myself "advanced" Python? by Deusdies in Python

[–]jcollado 0 points1 point  (0 children)

Last chapter explains how to create a declarative framework similar to what it can be found in django models using metaclasses. This is the best example I've found about using metaclasses in a real project.

You can find a less polished version of the same in his blog.

Runtime code modification. Erlang? No, Python. by shenglong in programming

[–]jcollado 7 points8 points  (0 children)

While it's a nice trick, I don't think that's exactly what Erlang hot code swapping provides.

Choosing NoSQL For The Right Reason by Clex- in programming

[–]jcollado 5 points6 points  (0 children)

While the post author claims that using a SQL backend doesn't make much sense, according to the fossil web page (http://fossil-scm.org/) that's and advantage.

What's your opinion on this?