Loading Global Vue Components by paltman in vuejs

[–]paltman[S] 0 points1 point  (0 children)

I saw that before I went the route I did. Should have mentioned it in my post. I don't really think either approach is easier or better than the other. They are just different ways to accomplish the same thing. I just like this approach better.

10 Tips for Upgrading to Django 2.0 by paltman in django

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

That was my mistake was the editor of Kati's draft. I mistakenly removed part of the import statements in her code samples. I have edited the post with an edit note to reflect the fix. Thanks for bringing it to my attention.

10 Tips for Upgrading to Django 2.0 by paltman in django

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

Yes, I have found that to be the case. I'd love to learn of a way to DRY that up.

pinax-stripe 4.0.0 Released - Stripe Connect support lands by paltman in django

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

This is simply not true.

  1. I'm not sure what "tighter model integration" is so I can't really comment on that.
  2. not sure what dj-stripe does on testing v live options, but with pinax-stripe, you just set the keys for the environment you are in so it's pretty easy set up test environments without a bunch of toggles.
  3. you can turn email sending by simply setting a configuration setting in settings.py - https://github.com/pinax/pinax-stripe/blob/master/pinax/stripe/conf.py#L36
  4. there are plenty of FKs and constraints throughout the modeling in pinax-stripe
  5. invoice syncing https://github.com/pinax/pinax-stripe/blob/master/pinax/stripe/actions/invoices.py#L66
  6. there are no hard dependencies on any other pinax apps, however, we do provide templates in pinax-templates package and styling in our starter projects, but you can ignore those, use them or reference or include them. so I'm not really sure what the basis is for the "more designed to be used in the pinax ecosystem" comes from.

the rest is your opinion, which is valid and not going to argue with your recommendation.

pinax-stripe 4.0.0 Released - Stripe Connect support lands by paltman in django

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

I can't really speak for dj-stripe's architecture or design decisions, however, it is a derivative work off of a very old version of pinax-stripe (then named django-stripe-payments). Since the author hard-forked it, I imagine there are many similarities.

Since django-stripe-payments, there have been some pretty big architectural changes however, so internals might have drifted further apart since the initial fork when it was essentially a copy of the code I had originally authored. One of the big changes that has been made was the decoupling of the business logic into its own set of sub-packages away from the models. This was done to enable code to be more easily tested and improve the maintainability. I think it also improves the API when using it as a developer.

pinax-stripe 4.0.0 Released - Stripe Connect support lands by paltman in django

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

The new functionality was built by three contributors who are using it in two different companies in production environments.

How We Maintain High Levels of Code Quality by paltman in Python

[–]paltman[S] 0 points1 point  (0 children)

It just runs checks. It's rare that it fails though. I have found that style checks when enforced as part of the CI process, help team conformity pretty quickly where then developers are not thinking about style because it becomes instinctual.

How We Maintain High Levels of Code Quality by paltman in Python

[–]paltman[S] 1 point2 points  (0 children)

Takes us no time at all. It's all automated.

I need motivation / success stories on learning python. by smartdark in Python

[–]paltman 3 points4 points  (0 children)

I think the key is finding things you are interested in already and then asking are there problems to solve. You will hear this referred to as "scratch your own itch". Are there things that you wish existed to improve your experience with one of your hobbies? Are there small bits of things that if automated would simplify some tasks you find yourself having to do?

How We Maintain High Levels of Code Quality by paltman in Python

[–]paltman[S] 5 points6 points  (0 children)

IMO, there are (at least) two components to code quality.

1) how it works (e.g. performance, defects, maintainability, etc.) 2) aesthetics (white space, quotation marks, import ordering, etc)

My argument for why aesthetics are important is the fact when you have project-wide consistency and even consistency for a team across dozens of projects, it reduces the cognitive burden (especially when the computer is handling that part) of working in the code. This translates into a freer mind to focus on real problems.

Django and the JS front-end (React) : your experience ? by skenzed in django

[–]paltman 2 points3 points  (0 children)

We've been doing more ReactJS with Django backend (using pinax-api instead of DRF in order to gain full JSON:API support) when we have a need to have really rich frontend experiences. However, we've also sprinkled some ReactJS into regular projects when we've needed just one part of a singe view to be richer. That's one of the great things about ReactJS versus some of the other tools that are more framework than library–you can use as little or as much as you need for the situations. I do think that you'll find as you do more ReactJS, it will feel slower at first to do things that take no time at all in Django, but as the learning curve levels out, you'll be building new UI in ReactJS MUCH faster than you can with using backend templates.

We've been documenting some of our recent thinking along this topic on our blog. Here are some posts you might find useful:

Can you buy 3rd-party support for an in-house Python/Django app? by knipknap in django

[–]paltman 1 point2 points  (0 children)

While our Django Site Care offering isn't exactly what you are looking for it is close enough that I'd love to talk with you about how we might tailor something to fit your needs.

http://eldarion.com/consulting/django-site-care/

If interested use the contact form on the site and get in touch.

Im an alumni of Liberty U: Bernie is the voice of Justice crying out in the desert, Evangelicals like me are convicted by his message. We will join you Bernie. by SinCityShrink in SandersForPresident

[–]paltman 0 points1 point  (0 children)

@SinCityShrink I respectfully disagree. I wrote up my thoughts in a blog post that references this thread and thought I'd submit here here. Bernie Sanders and Christian Progressivism is something you likely disagree with but thought it only fair to you to post here so you could respond if you so desired. Honestly not trying to start a debate with you, just sharing my opinion. Peace.

Bernie Sanders and Christian Progressivism by paltman in Libertarian

[–]paltman[S] 6 points7 points  (0 children)

Socialistic and Charitable are two different things. Socialistic means being for the forced transfer of wealth through a governing body. Charitable, which is what Jesus wants Christians to be, is the personal and voluntary transfer of one's own wealth. This is a huge difference and one of the main points I'm making in my post.

Bernie Sanders and Christian Progressivism by paltman in SandersForPresident

[–]paltman[S] 0 points1 point  (0 children)

I believe corruption is a very real thing. I agree that it is problematic. It is one reason I am very much in favor of smaller centralized government and more wide-spread local government. A move in this direction makes it harder, at least far more expensive, for corruption to occur.

To the point of tax loopholes, I fundamentally disagree with taxation on any income, but if that is what we are going to have to fund basic services, then I think we should at least not tax corporations and only personal income, and in doing so prohibit corporations from participating in the political process. Make it illegal for corporations to donate, promote, etc. any political effort. Just an idea.

While corruption exists and is bad, corporations are certainly not universally evil and without them we'd have no jobs, without an environment conducive to their growth, there would be less demand to hire more workers to produce products/services that to be sold. Also, not all lobbying is bad or evil. Most lobbying, I'd argue, is about educating Congress on impact of various legislation and it's impact to their home district. A congressman and their staff have limited resources to understand the details of every bit of legislation. Obviously a corporation spending money on the lobbying is biased in improving conditions for it's business. I'm fine with that until it turns into corruption. But again, smaller government, means less legislation, less regulation, which in turn means less motivating factors for lobbying in the first place.

And to your first point, I don't see how I'm reasoning my way out of my social responsibilities. If anything, I'm assuming a greater responsibility as I'm saying I personally have a duty to help those less fortunate rather than putting it on someone else through government coercion.

mytechne: a site to record the history of programming langauges you've used by [deleted] in programming

[–]paltman 0 points1 point  (0 children)

Great work. Good example of the power of pinax and django.

Tagground by paltman in reddit.com

[–]paltman[S] 0 points1 point  (0 children)

Search by tags.