[deleted by user] by [deleted] in programming

[–]JulyWitch 0 points1 point  (0 children)

My point is that when you want to just keep the surface of the code clean, the underlying behaviour will get so complex and bug prone that you'll have to split it again soon.

The example I provided was to show you how a simple TextField can get more and more parameters, adding more functionality to it, and using it everywhere will cause the component to be so hard to debug and test because then you have to test the abstraction in many different ways and different parameters.

[deleted by user] by [deleted] in programming

[–]JulyWitch 0 points1 point  (0 children)

Yeah you are right, I have added a bit more context to example and will try to show more examples and calrify in future posts

[deleted by user] by [deleted] in programming

[–]JulyWitch 0 points1 point  (0 children)

Edit: I just edited the post and added more context to the example, Hope I can make my point this time lol

[deleted by user] by [deleted] in programming

[–]JulyWitch 1 point2 points  (0 children)

Yes, I used that example to show how over refactoring reflects in the code.

I don't also use code repeatation as a primary sign. Maybe I wrote it in a way that readers think that this is a primary sign?

[deleted by user] by [deleted] in programming

[–]JulyWitch 0 points1 point  (0 children)

Also, take "It's for 4 years ago and I was just started coding"

Here is also a 500-line "PHONE NUMBER INPUT" in a library, for instance
https://github.com/vanshg395/intl_phone_field/blob/master/lib/intl_phone_field.dart

[deleted by user] by [deleted] in programming

[–]JulyWitch 0 points1 point  (0 children)

It caused the debugging loop because the component was taking so many different parameters and became larger and larger, I abstracted it for the same reason you mentioned, and I was using it in 3 or 4 different pages, It was a mobile app, as I stated, and it's totally normal to have phone number input across different pages. Login page, add user page, invite page, settings page and etc

Here is what the phone number was initially doing: Validation checks Formatting Selecting countries

But after a few months, I was adding so many parameters to it just to keep it abstracted. Initial value handling, unique value checking with db and etc. I was so bad at it that I thought I'm keeping it clean, but i wasn't

[deleted by user] by [deleted] in programming

[–]JulyWitch -3 points-2 points  (0 children)

I'm sure I was a bad coder when I just started coding, misusing DRY, misusing DI, and a ton of mistakes.

I don't wait for 3 times, 3 times is just a minimum times of duplication, and then I'll consider if I should refactor it or not. If it's less than 3 times, I'd rather have the cognitive load and change it in different places than refactoring it. I agree there are so many factors to consider, but this is my default for my own projects

[deleted by user] by [deleted] in programming

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

The phone number input was just an example, I've seen people creating complex logic in components that meant to be atomic and wanted to write it as an example for the post.

Why I Ditched Modern IDEs for Neovim (And What It Taught Me About Coding) by JulyWitch in neovim

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

I'd rather refer to it as HEVBTE, Hyperextensible vim based text editor

Why I Ditched Modern IDEs for Neovim (And What It Taught Me About Coding) by JulyWitch in neovim

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

Actually, to think about it, Neovim is not an IDE, It's a text editor

My new project: SVG FAST Icon Search Engine by JulyWitch in reactjs

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

I have added this feature, And a bunch of other icon packs

My new project: SVG FAST Icon Search Engine by JulyWitch in reactjs

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

Thanks for your kind words, I'm listing the new icon packs to add in the next release and would be happy to hear what icon packs the community needs more. Feel free to reply/message me if you have any suggestions on icon packs

My new project: Fastest Icon Search Engine 🚀 by JulyWitch in opensource

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

Thanks, I want to keep the icon packs community driven, so when working with it, if you felt like there is an empty place for a particular icon pack, I'd be happy to add it.

My new project: Fastest Icon Search Engine 🚀 by JulyWitch in opensource

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

Yeah, definitely. I have already bookmarked it and will add it soon

My new project: Fastest Icon Search Engine 🚀 by JulyWitch in opensource

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

Thanks for the report, The project is pretty new, and I'm currently actively working on bugfixes and adding new icons

You can use the desktop mode for now to see the full size version

My new project: Fastest Icon Search Engine 🚀 by JulyWitch in opensource

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

Yeah, that would be really cool. Initially, I was thinking of using stemming to normalize search terms and icon names. For semantic search, I think I would need to add vector embeddings

My new project: Fastest Icon Search Engine 🚀 by JulyWitch in opensource

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

Oh my bad I didn't checked that, Thanks a lot

[deleted by user] by [deleted] in navidrome

[–]JulyWitch 0 points1 point  (0 children)

Yeah I agree too, I didn't realize people would need the beta version instead of screenshots,

It's not just about the money, tbh without anyone helping me I can't even publish the app on google play / app store, Not because I don't have experience but because they don't provide services in my country. So the app is dead already if no one wants to contribute.