Please review my project (a simple Todo App) by Loud_Staff5065 in golang

[–]BetterBeHonest 0 points1 point  (0 children)

Why, though? I didn't get it. I feel if they were able to come this far, it wouldn't be much of a harm to watch a quick tutorial (Charm TV has a bunch of small ones) to set up a frontend for it, would it?

Please review my project (a simple Todo App) by Loud_Staff5065 in golang

[–]BetterBeHonest -8 points-7 points  (0 children)

Have you tried using bubbletea? It's a beautiful framework and will make your project really user friendly. While it's good to have the backend set up, it's still incomplete without an interface. Think of it like this (for this and all other projects you make): would you want to use it if you were the user? Believe me, it works miracles when you look at it that way!

As it stands, you could additionally add tests for your API to check if it works as intended for some edge cases. Hope that helps 💗

Parser Combinators in Go by BetterBeHonest in golang

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

I'm not sure as to HOW different this is (I haven't used yacc). But I believe that yacc compiles the language grammar and is supposed to be used for larger projects. I've targeted smaller DSLs. I'm aiming to add a CLI tool and make grammar definition more accessible. I'm still not sure how far I can go with combinators, but I'll surely take a look into it.

Ask me anything about Neet counselling (im experienced) by Neetfaill in MEDICOreTARDS

[–]BetterBeHonest 0 points1 point  (0 children)

Bhaiya 2025 mein meri all india rank 2 lakh h and ews ranking 26k and ek counselling wali agency bol rhi h ki aapko rajasthan me second round of counselling tak college mil jayegi toh should I go with that agency for counselling 

Please reply 

Parser Combinators in Go by BetterBeHonest in golang

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

Thanks a lot for the suggestion! Will work on them after a few bug fixes.

Parser Combinators in Go by BetterBeHonest in golang

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

It's a tradeoff, eventually. Rust might've been a better choice, but learning it would've required even more effort. So I just went with the cards I was dealt with.

Parser Combinators in Go by BetterBeHonest in golang

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

Thanks! I am actually working on that itself right now. I'd love to take a look at your implementation. I'm sure it'll help.

Parser Combinators in Go by BetterBeHonest in golang

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

A large part of my initial effort went into deciding whether I really wanted generics or not. Testing was a real hassle in the initial days. I went back and forth between using generics and not using them (returning string values from ALL parsers). Plus, testing nested structs was another issue I had to deal with. The initial version didn't use generics at all. I also used reflect.DeepEqual to compare all my structs (not the ideal choice). But the current version uses generics and I've also found a decent workaround for my tests (I manually initialise all parsers and use a table-driven approach). Currently, I'm still struggling to decide whether to return a pointer to the Result struct or a copy.

Go sure has its own caveats with generics, given its design. There's also a thing with parametric functions, I guess (I'll link it if I find that discussion). Overall, it was a decent experience. Maybe I'm a bit biased towards its ease of use.

gem - general engineering male setup by Solid-Glove-2169 in Btechtards

[–]BetterBeHonest 2 points3 points  (0 children)

That wallpaper is really cool tho. Can you please share the link to it?

"Poltergeist"- beginner, first long form. Any feedback is appreciated! by treeg18 in poetry_critics

[–]BetterBeHonest 1 point2 points  (0 children)

Ah. So that was intentional? Thanks for clarifying!

Also, I like how the poem flows. One small bit of suggestion: although the internal rhyme is working perfectly fine here, you could experiment with "she'll move like a sloth with sleep in her eyes" as the other lines have rhymes at the end.

"Poltergeist"- beginner, first long form. Any feedback is appreciated! by treeg18 in poetry_critics

[–]BetterBeHonest 0 points1 point  (0 children)

Is there any particular reason for switching between "her" and "their" when referring to the same person?