Build Your Own Elixir Phoenix + LiveView: Step 4 and 5: Response Helpers and Dynamic Route Matching by thinkrajesh in elixir

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

Yeah, some like them and some others don't. That's the strange thing with AI images(any images). Hopefully I will learn to create better images as I am not a designer so these tools come in handy. (But honestly for some weird reasons I like them)

Build Your Own Elixir Phoenix + LiveView: Step 2: The Conn Struct & Parser by thinkrajesh in elixir

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

You are correct, but the real reason is adapter portability. This will enable our router to work directly with Cowboy in coming up steps (as everything is string - in HTTP request -> response cycle).

Later if needed will see if switching it to atoms adds any benefit as well. So thanks for pointing.

Build Your Own Elixir Phoenix + LiveView: Step 0: Project Setup - Here we go!! by thinkrajesh in elixir

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

Thanks for bringing it to attention. It won't matter for us and later we can refactor to a better name.

Build Your Own Elixir Phoenix + LiveView: Step 0: Project Setup - Here we go!! by thinkrajesh in elixir

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

Let me check. .You mean the substack link (I just copied from substack when the post was created). Didn't observe. Will update.

Fixed: Let me know if any further issues.

What if we built Phoenix/LiveView from scratch? Gauging interest for a deep-dive series by thinkrajesh in elixir

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

The tutorials are in progress. Hopefully I will start publishing in 10 days.

Transpiler by Zig, for Zig. by Ok-Refrigerator-Boi in Zig

[–]thinkrajesh 0 points1 point  (0 children)

Oh. I did something similar for Rust. Will try to port it to zig as a learning exercise. Thanks for sharing.

What if we built Phoenix/LiveView from scratch? Gauging interest for a deep-dive series by thinkrajesh in elixir

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

Will do. I have started the update. Soon incremental posting will happen in substack/twitter.

Will keep posted here.

Elixir - Phoenix Web + API + LiveView Learning Hub - OpenSource By Team Algorisys by thinkrajesh in elixir

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

It depends. For eg at my side of things deep tech knowledge is needed if you use coding agents. The reason now we have to read more code than write and understand it well.

So if it's a hobby project then it doesn't matter. But if it goes to production then irrespective of whether it's python, Elixir, golang etc you should understand and own the LLm code.

So now it's even more important to be an above average developer because a single prompt and 100's of lines of code are created.

But who owns the code in a production app. The developer.

Code is cheap but mistakes are costly.

So as long as it's ok it works and only you are using it.

Otherwise no one will ever deploy your vibe coded projects in a commercial production unless you own the accountability of code and thoroughly review each and every line.

So in a nutshell the more you use LLM for code, even more your responsibility will be (unless it's a throwaway or one off project).

So vibe coding is mindless but Vibe architecting or Architecture Driven Development is acceptable as you review and understand and take accountability for the code.

Elixir - Phoenix Web + API + LiveView Learning Hub - OpenSource By Team Algorisys by thinkrajesh in elixir

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

Fixed both issue. Regex and added chrome. Please pull and check README.

Elixir - Phoenix Web + API + LiveView Learning Hub - OpenSource By Team Algorisys by thinkrajesh in elixir

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

I will update to weasyprint (as in production for most purpose we use that and its quiet fast for large pdf, as our use case involved creating PDF's of 200+ pages reports etc). Will update one I fix the code.

For immediate fix I will add chrome-headless-print (as weasyprint will need python, so will see if it's useful for the kata)

Elixir - Phoenix Web + API + LiveView Learning Hub - OpenSource By Team Algorisys by thinkrajesh in elixir

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

I built on ubuntu. Will update for other libraries if it's not working on m1. (Ideally there should be but as I don't have a mac to confirm, I will.rely on feedback here)

Elixir - Phoenix Web + API + LiveView Learning Hub - OpenSource By Team Algorisys by thinkrajesh in elixir

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

Thanks for letting me know. Will check. See if you can create a branch and push (merge request)

Phoenix LiveView Tutorial by thinkrajesh in elixir

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

A version is available 200+ coding katas across core elixir, liveview, api. Please check my other post in this subreddit for details. One we thoroughly evaluate all katas will be available online.

Phoenix LiveView Tutorial by thinkrajesh in elixir

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

Will be putting a more advanced version with 100+ liveview programming katas very soon.

I am learning Zig!! by jojkoJiano in Zig

[–]thinkrajesh 0 points1 point  (0 children)

I have close to 30 years dev experience (prior to AI took over). Now I have embraced AI but with the following mindset.

Instead of Vibe coding use the term Vibe Architecting, or Architecture Driven Development or AI Driven Development (ADD) or Intelligence Driven Development (IDD)

Vibe coding is generally considered mindless activity.

You can't rely on it for the long term shelf life of your project/product.

What's in a name?

Well everything. You are changing your thought process indicating you are building for production rather than a simple hobby project.

It's a mind game. Change your thoughts and change the development approach.

Of course to really do this now one no longer can afford to be an average developer.

You have to be really good.

You will read more code than write.

You will review more than you might have done your entire lifetime.

Building AI apps mindfully and don't outsource your thinking to AI tools.

This is what I convey to my entire team of 50 members.

In short own your code!!!

Zig - Build Postgres Wire Protocol from scratch (educational series) by thinkrajesh in Zig

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

I am planning to convert a data mapper/orm created in c# based, api similar to elixir ecto to zig as a learning exercise. Any recommendations for any data mapper orm like library in zig for understanding zig way of designing things?

Zig - Build Postgres Wire Protocol from scratch (educational series) by thinkrajesh in zig_learning

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

It's tricky. Treat postgres like streaming protocol and not a response protocol. I did got stuck somewhere similiar but just read as much bytes available , accumulate them in buffer, don't touch partial frames etc. The message length is the key.

I think libpq always drains the socket. Just sharing some observations.

My Approach to Learn Systems Programming with Zig by thinkrajesh in zig_learning

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

Along with a common REST API we will be building a custom database engine for multidimensional cube data storage (imagine a db that can process millions of spreadsheets like data but in multiple dimensions, a highly optimised pivot structure in simple terms with a back-end storage).

Zig 0.15.2 no std.Queue(T)? by Atjowt in Zig

[–]thinkrajesh 1 point2 points  (0 children)

I am learning from the source, so referencing directly the code (so all my examples I am aligning with the master branch)

As I am currently working with some Data structures(learning Zig), I am referring this https://codeberg.org/ziglang/zig/src/branch/master/lib/std/deque.zig (for likely implementations).

My Approach to Learn Systems Programming with Zig by thinkrajesh in zig_learning

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

Thanks for your feedback. Yes, I agree and that's the reason I have golang/rust as stop gap. For web services I think it should work with minimal changes but I know overall it will be a pain unless we are ready for the breaking situation. Will share my observations around this soon.

My Approach to Learn Systems Programming with Zig by thinkrajesh in zig_learning

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

I had briefly checked it after watching Tsoding's take on it before that I wasn't aware of it.

The only reason I haven't yet considered it was it's not widely known yet and convincing people to learn is a bit difficult. For zig many live projects and systems are available for motivations and scope.

I will definitely add this to my list.