Mo' tries
317 subscribers
308 photos
8 videos
10 files
172 links
Name's Mo'.

And trying is what I do. Watch me try new things, in tech and life in general.
Download Telegram
This thing in the taxi I'm in looks like it's praying for survival 😂
🤣4
Forwarded from The Software Guy
Tmorrow will be the first day of ramadan.
Ramdan Mubarak comrades🌛
HERE WE GO!
3
Ramadan Mubarak peeps.
216🎉2🥰1
A really cool way I found to learn a language practically is to re-write another project using it.
I'm currently translating a TS project into Go, to make it easier to translate and know the language, write tests along with the translation.
That way, you get accustomed to the nuances of the language while you work with it and you are forced to think about the code actively.
🔥4
By write tests I mean follow TDD.
Write a test first then make it fail (by calling a function that you haven't created yet).

Then write the bare minimum to make the test pass.

Then refactor and add features. Since you're translating from a different project, you'll have to read the code and understand the concept you want to translate instead of the code itself. That way, you'll have to figure out how one language differs from the other and not move in blind.
4
Did y'all know this?
👏4
When using AI with opencode and GPT 5.1, I noticed that it tends to generate large files with 2000+ lines of code. This seemed consistent even outside of opencode. I asked Gemini and it turns out AI prefers this, since it can access all variables and functions under a single file and preserve context.

Saying all this to say... AI be writing AI-friendly code.
😁3
If you ever come at a point where you have to compare two floating point numbers. Do not use ==, this is because floating point numbers 'drift off' over time as you perform calculations on them.

Really small values add up at the end of the floating point number and eventually you have a value that isn't accurately representing what you want.

To account for this, perform comparison using the epsilon method.
15
Something I didn't like about Golang personally is the way interface methods are implicit.

For example:

type ReadBlock struct {
Reader(...)
}

Any function that imports this type if it has the name Reader, will implement this function.

There is really no way to know what function you'll implement (unless you read the specific docs for that module) if you name something Reader, in your code... I wish this was more explicit.
Forwarded from Dagmawi Babi
ExamBuddy by Mohammed Ibrahim
youtu.be/eJq01B4xnPM

Mohammed Ibrahim showcases ExamBuddy, an all-in-one AI-powered study assistant that lets you create exams from your documents, generate concise notes, flashcards, audiobooks, and more.

#DagmawiBabisMeetup #YouTube
@Dagmawi_Babi
Good Morning peeps 👀
1
Just learned that docker was written with Go
1
Alright, bois. Am stayin' up to do some Zig. I've decided that this will be the only weekend where I find the time and my mind won't stop badgering me to finish this thing: so trying to get my pet project into a demo-able state (with some visuals) and then I can make the repo public and keep adding to it.
2🔥2
Didn't turn out how I hoped... will continue tomorrow. But I got really close.
3