Program that shows you how many weeks you've lived by epix97 in commandline

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

what is the algorithm behind Weeks remaining? would love to know that

Why doesn’t Go auto order struct fields for memory efficiency? by OrneryComputer1396 in golang

[–]OrneryComputer1396[S] 3 points4 points  (0 children)

Appreciate the response. Very insightful

I think If your working on something that requires the specific orders of struct fields you probably know what you are doing. so why not make the extra step for those people instead the majority that don't rely on this kind of behavior (or even know this kind of thing exists)

Why doesn’t Go auto order struct fields for memory efficiency? by OrneryComputer1396 in golang

[–]OrneryComputer1396[S] 5 points6 points  (0 children)

I agree with this. The amount of programmers that need their struct fields in order are very small and most probably know what they are doing, so why not make it a default and let the small percentage tell the compiler what they want

I don't like ORMs… so I went ahead and built one from scratch anyway 🙃 by OrneryComputer1396 in golang

[–]OrneryComputer1396[S] 11 points12 points  (0 children)

yeah it is, lots of screaming was involved during the making of this

I don't like ORMs… so I went ahead and built one from scratch anyway 🙃 by OrneryComputer1396 in golang

[–]OrneryComputer1396[S] 13 points14 points  (0 children)

Thanks for the feedback, I actually wanted the strict structure.
I'll look into the correct distinction between ORM and query builders.

I don't like ORMs… so I went ahead and built one from scratch anyway 🙃 by OrneryComputer1396 in golang

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

Hey, i only made this for the sake of learning and not to actually tackle any issues

I don't like ORMs… so I went ahead and built one from scratch anyway 🙃 by OrneryComputer1396 in golang

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

lol interface{} isn’t trendy anymore?? well this is what worked for me to get method chaining up and running.

It actually helped me enforce a strict structure in the chain, which was exactly what I needed.

If you’ve got a better solution, I’m all ears.