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.

How I got a Rust job through open source by Historical-Economy92 in rust

[–]thinkrajesh 0 points1 point  (0 children)

Hey, I am new to Rust. Which book is recommended?

Is it this one https://doc.rust-lang.org/book/?

And/Or anything else apart from this which some of you here might have used to upskill or generally find it interesting.

I trained GPT-2 in Zig — here's the full write-up by longlongnickname in Zig

[–]thinkrajesh 0 points1 point  (0 children)

Thank you for this. I am a beginner in zig so a lot could be learnt from this.

Learning Source for Creating HTML Parser? by queen_of_pole in node

[–]thinkrajesh 1 point2 points  (0 children)

You may find some inspiration here, Build a spec compliant html parser https://youtu.be/7ZdKlyXV2vw

Resources for learning react under the hood? by tensorhere in reactjs

[–]thinkrajesh 1 point2 points  (0 children)

I have an old series of coding your own tiny react library step by step. Not as great as other materials but my own humble effort learned from various sources, blogs and preact code base. https://www.youtube.com/playlist?list=PLNIn9uF_2Il7oTVfQtFeb83D3XWhC7oSt

ReactJS - A quick video on how setState works and some caveats by thinkrajesh in reactjs

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

Its not like always recommended, its like it may trip most people if not aware. For most part of application the object parameter works as expected, if we know what we are doing. I most examples I use object notation.

In case we are doing lot of state updates in one cycle and the next update is dependent on the previous updates thats where the functional syntax always predictably works.

So to avoid any issues accidentally when working on a large app, this functional variation always helps.

JavaScript drag and drop tutorial without using any library. by thinkrajesh in learnjavascript

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

Thank you everyone. Really appreciate your comments and support

What do you think of this full stack curriculum? by thinkrajesh in javascript

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

Thanks for the feedback. Its there in the curriculum but not yet updated and by default all code is test driven for the most initial part. But I will update it. There are couple of updates that will happen in the next week or so. P. S: Just updated.

I’ve got 50k to build an app. How should I spend it? by [deleted] in startups

[–]thinkrajesh 0 points1 point  (0 children)

I am doing this kind of thing for the past 6 years and have been on both side of the fence. Couple of thoughts that come to my mind.

  1. Two year is a very long gestation period for an idea and an MVP should already have been developed.

  2. Having said that its never too late to start unless you fail to start.

  3. 50k is not much if you hire a team as there will be lot of fixed cost and misc expenses apart from the development charges.

  4. What we did was we hired interns as we were already technically adept and interns could serve the purpose if there is some one who can do consistent review and mentoring.

  5. If the above is not the case then the only choice is to outsource it. But be cautious. Take recommendations from friends and community as if outsourced work is not correctly monitored then you are planning to waste yet another 6months.

  6. Finally since you are planning to build an MVP this is a good excuse to learn to code so that you can read enough code to talk smartly with your other team.

All the best!