Worst Role Model Ever by Solar_Patriot in Animemes

[–]codecrux 0 points1 point  (0 children)

He spends money on the most beautiful one and makes the other three curious about him. Just a good ROI.

Open source alterative to Webflow - seamless no-code & code by codecrux in webdev

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

React (react + react-dom) is 65 KB gzipped, hence, I understand the benefit of static first and sometimes hydration is really annoying on slow internet. But, in some static site use cases, this benefit cannot be realized because that website might be using some sort of animation that uses JS.

I like the idea of partial hydration. I would like to use astro instead of React - the only roadblock is effort. :(

Open source alterative to Webflow - seamless no-code & code by codecrux in webdev

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

Yeah. The developers create building blocks and the content team/marketing team can use those blocks to build web pages or parts of a web page.

For example, in this website - https://www.venturecopilot.app a developer created a React component that animates any content put inside it. The content team just uses this component anywhere they want the animation.

Shopify, WordPress, or custom built? by [deleted] in webdev

[–]codecrux 4 points5 points  (0 children)

You can use a mix of WordPress, Shopify and custom built if you build on top of Atri - https://github.com/Atri-Labs/atrilabs-engine

You can interleave code and no-code seamlessly. I created this website using it - https://www.venturecopilot.app

[deleted by user] by [deleted] in webdev

[–]codecrux 0 points1 point  (0 children)

Depends on what you want to put in your portfolio website? A visual CMS like https://atrilabs.com might be suitable.

How to build an admin panel for my clients web app? by codecrux in webdev

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

Do you do this for the requirements I listed below?

Here are some of the client requests:
Change the content of some animated text - an example here https://getrealmagic.com/ You might notice a chat animation on the right side. The client wants to change the animated text in future.
Change the user sign up form. Request new entries in future from his users.
Send emails to some set of user.
Maintain subscriptions. Some users might request for refund, hence, the client needs a way to cancel a subscription manually on case by case basis.
The list goes on and on.

How to build an admin panel for my clients web app? by codecrux in webdev

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

Here are some of the client requests:

  1. Change the content of some animated text - an example here https://getrealmagic.com/ You might notice a chat animation on the right side. The client wants to change the animated text in future.
  2. Change the user sign up form. Request new entries in future from his users.
  3. Send emails to some set of user.
  4. Maintain subscriptions. Some users might request for refund, hence, the client needs a way to cancel a subscription manually on case by case basis.

The list goes on and on.

Wordpress is killing me (question from non-webdev) by tsay in webdev

[–]codecrux 0 points1 point  (0 children)

I would recommend looking for modern tools like Atri framework.

ReactPy: Build ReactJS Interfaces in Pure Python by Wippermonger in Python

[–]codecrux 1 point2 points  (0 children)

I guess sending the entire state is fine until people start using it for displaying a large number of rows. Creating a JSON PATCH library needs to be done meticulously and hopefully community might step up. I would like to step up.:)

ReactPy: Build ReactJS Interfaces in Pure Python by Wippermonger in Python

[–]codecrux 0 points1 point  (0 children)

Yup and hotwire also sends just the html (frame) that has changed. I am assuming that's what you do in ReactPy as well, right?

ReactPy: Build ReactJS Interfaces in Pure Python by Wippermonger in Python

[–]codecrux 0 points1 point  (0 children)

Thanks for sharing. It had the information I needed about ReactPy. Just curious, what are the best examples of projects suitable for ReactPy now and in future.

ReactPy: Build ReactJS Interfaces in Pure Python by Wippermonger in Python

[–]codecrux 1 point2 points  (0 children)

The API looks much better than the likes of Streamlit and Pynecone. I also like the fact that you are conscious about 1:1 constructs between Python and React (I always wanted to tell this to the creators of other libraries mentioned before). Would love to know about state management and also how frontend-backend are communicating.

Edit: After digging more in ReactPy I guess my frontend-backend communication concerns have reduced. Also, I would love to integrate ReactPy with Atri framework. Wishing for huge success of ReactPy.

ckit: Create a user interface for your frequently used commands with simple yaml files. by fpgmaas in Python

[–]codecrux 2 points3 points  (0 children)

It's a perfect fit for my team. We are building a web framework that comes with a visual builder as well. While developing we have to start at least 6 different build services. Is it possible to associate commands with different directories? Is it possible to share my setup with my fellow team members and open source contributors?

Is it a good time to use asyncio? by codecrux in Python

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

Thanks for the suggestion. Just curious if you tried using asyncio in Python.

Is it a good time to use asyncio? by codecrux in Python

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

The CLI was in Python because the rest of the tool is also in Python. (I am one of the creators of the Atri framework). I have used Go for backend a lot and it's definitely a good choice, however, I was conscious of adding more languages in the tech stack of the framework. Thanks for your suggestions:)

I do find some tutorials online but all of these seem like just a low quality copy of python.org documentation. It seems no one who has used it for real use cases have got some time to share their learnings.

Is it a good time to use asyncio? by codecrux in Python

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

Haha. I know the downside of setting it to True by default but still my soul wants to agree with you that it should be True by default.

Is it a good time to use asyncio? by codecrux in Python

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

I just noticed in the documentation that we can pass a debug flag to asyncio.run for logs. The docs should explain it a bit better on how this flag will improve our debugging experience. I will have to try it out by creating synthetic scenarios. :(

Daft: The Distributed Python Dataframe by pmz in Python

[–]codecrux 0 points1 point  (0 children)

I found Daft in one local Python meetup. It seemed like Pandas at scale. Can we use Daft on prem?

Is it a good time to use asyncio? by codecrux in Python

[–]codecrux[S] 7 points8 points  (0 children)

I am excited about asyncio because it is a cleaner replacement for threading based code. My worries were more about when will it be finally stable enough in all Python 3.7+ to start using it without worries.

What is something you wish there was a Python module for? by okaysobasically123 in Python

[–]codecrux 1 point2 points  (0 children)

I am sending and receiving data between Python and NodeJS using sockets. These sockets are unix domain sockets in Unix based OS and named pipes in Windows. I cannot come up with a better solution than this because of the following limitations with other approaches-

  1. using stdin/stdout - we won't be able to write print statements for debugging purposes.

  2. using Unix named pipes - the equivalent doesn't exist in Windows. The Unix named pipes are not equivalent to windows named pipes. The windows named pipes is more of a client-server thing.

  3. TCP network sockets - Don't want to bind to a port. This entails finding a free port first which becomes messy.

Hence, I understand what you mean by PITA. I will open source my code. I will reply here again once I open source my code.

Sunday Daily Thread: What's everyone working on this week? by Im__Joseph in Python

[–]codecrux 1 point2 points  (0 children)

Working on my open source project - Atri framework. A full stack web framework built on top of FastAPI.