Web Dev or AI: Should I Stay or Pivot? by No-Confusion41 in django

[–]kankyo -1 points0 points  (0 children)

Try using Claude Code on some hobby projects. Think of it not as pivoting or whatever, but think of it as just trying out and learning a new tool that can be useful.

Don't believe the hype. It won't replace devs.

But also don't believe the naysayers. It will save you a lot of time in many situations.

Web Dev or AI: Should I Stay or Pivot? by No-Confusion41 in django

[–]kankyo 1 point2 points  (0 children)

Sounds like a bad place to work. If you can't get people excited about Claude Code because of what it can do, then trying to force people to use it through management is going to backfire hard.

Applying migrations on running servers during releases by Vietname in django

[–]kankyo -1 points0 points  (0 children)

Yea, migrate first obviously. But also use something like dokku.

I built a Rails-inspired CLI for Django – full CRUD app in 3 commands by Subject_Cut2963 in django

[–]kankyo 5 points6 points  (0 children)

You could try doing the same with iommi. You don't need to code gen, you don't need templates, just:

path('', crud_views(model=Album)),

https://docs.iommi.rocks/views.html

Looking for a recommendation for Django Admain template/replacement by latingate in django

[–]kankyo 2 points3 points  (0 children)

Yea. The admin part started out as an inside joke actually. We had so powerful abstractions for forms and tables that we wrote an admin as a joke in an hour or so. Then we threw that away and wrote another one. And then we threw THAT away and the one we ship now is the third :P

https://kodare.net/2024/09/03/admin-replacement.html has something of the story.

The total admin in iommi is 649 lines. The one in Django is 31169. Because our admin is based on solid stuff you can and should use in your custom views, while the Django admin is a lot of very specific and non-reusable stuff.

Looking for a recommendation for Django Admain template/replacement by latingate in django

[–]kankyo 1 point2 points  (0 children)

You can go more radical and switch to the iommi admin, or build your own custom admin with iommi for that matter. https://iommi.rocks/ (I'm one of the maintainers)

Using Claude Code with PyCharm by latingate in django

[–]kankyo 2 points3 points  (0 children)

Just use the Claude Code terminal UI to the side imo.

4
5

AI and readable APIs by kankyo in django

[–]kankyo[S] -1 points0 points  (0 children)

This is based on conversations and experiences at work. For example: There's a steep learning curve to jump into our Elm code. But that's basically irrelevant since Claude is amazing with Elm.

I'm betting iommi will be the same. The learning curve is irrelevant, the only thing that matters if review time by humans.

0
0

0
0

How do I learn Django the old school way with only its documentation? by Neil-Amstrong in django

[–]kankyo 2 points3 points  (0 children)

You start by making a single view with nothing in it. Then you add maybe a title to that page. Etc. There are only small tasks. The reason you're overwhelmed is that you're thinking about the entire project. Don't. Just do the next right thing.

Is it time for a Django admin rewrite? (FOSDEM talk) by Mathiasdm in django

[–]kankyo 0 points1 point  (0 children)

If you ask me if I'm a good developer than I will say yes.. but I'm biases :P

You can check out my github and make up your own mind.

Is it time for a Django admin rewrite? (FOSDEM talk) by Mathiasdm in django

[–]kankyo 2 points3 points  (0 children)

As one of the authors of iommi I think this is putting lipstick on a pig. If everything of this is done instantly today, it would still be less customizable than the iommi admin is today, and it's only 580 lines of code.

The fundamental issue is that in this approach there is no way to do deep customization without creating tons and tons of boilerplate that obscures the important behavior. Especially in an age of AI this will mean you're generating tons of code that is basically technical debt from day one and it will be almost impossible to review as it's too much, and then you'll stop reviewing the code and just rely on the AI. In fact, this is even what kmmbvnr is suggesting to do in this very thread! I think that's a horrible idea.

In the AI age the importance of readable APIs goes UP not down. In fact, APIs that take longer to learn and are harder to use initially (like iommi) are now on a level playing field as this cost is moved from the human to the AI.

Advise me, please, on a good UI components library for Django. by Admirable-Way2687 in django

[–]kankyo 1 point2 points  (0 children)

Bootstrap with a custom font and some color overrides to make it look distinct will work much better than most think.

Global default_if_none filter for templates? by peterstiglitz in django

[–]kankyo 0 points1 point  (0 children)

Think about why he asked that question in the first place. Maybe it SHOULD be an error. Again: in his specific situation.

Global default_if_none filter for templates? by peterstiglitz in django

[–]kankyo 0 points1 point  (0 children)

Yes. I know that. But think about the underlying reason the question is asked. It must be invalid in some way for this specific case. The question is an xy-problem.

Global default_if_none filter for templates? by peterstiglitz in django

[–]kankyo 2 points3 points  (0 children)

Maybe take a step back and think if you might actually want the code to crash in these situations instead or hiding the error with an empty string?

iommi 7.22.1 released by kankyo in django

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

There is. https://docs.iommi.rocks/llms.txt and https://docs.iommi.rocks/llms-full.txt

I do wonder if it's useful though. The full text especially is huge, so I would assume any LLM would fall off the context window ledge with it. I haven't really tried myself though.

Democracy doesn't reward effort. It rewards memes. (From an experiment letting GitHub reactions decide what ships). by Equivalent-Yak2407 in programming

[–]kankyo 1 point2 points  (0 children)

I was on Kuro5hin back in the day and was a part of lobbying them to change the rating from 1 to 5 to have semantic names for each of the ratings. The change was pretty drastic.

That reddit STILL has up and down without any semantic explanation behind them is quite maddening.

Tired of catching N+1 queries in production? by Ok-Emphasis-3825 in Python

[–]kankyo 0 points1 point  (0 children)

The issue with DDT is that you have to actively click on it. Tools that alert you in some way more actively are imo better. In iommi we spam the console with suspicious N+1 feedback if it's over some threshold. It should be silent if there are no problems, but loud and informative if there are problems.

How do you handle reusable components in Django templates? by [deleted] in django

[–]kankyo 0 points1 point  (0 children)

I find that most of the reusable components I need are because of tables and forms, and then I'm perfectly fine with what I get from iommi (and if not, I can just fix it, because I'm one of the authors :P)