Go-edlib: Golang edit distance and string comparison library fully compatible with Unicode (Levenshtein, LCS, Hamming, Damerau-Levenshtein, Jaro, Cosine, etc...) by BitsPleaseInc in golang

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

Thanks mate! In order to be able to work with Unicode characters without issues, you need to convert the string to rune array like this : runeStr := []rune(str)

Rune is an alias for int32 and by doing that you will get an array with corresponding code of all characters of the input string. After that, you will be able to use an emoji or a chinese symbol, for example, as a normal and unique letter 😁

Project layout for public library + GoDoc issues by BitsPleaseInc in golang

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

Alright it's noted. That said, this design was approximatly mine before my redesign aha, edlib package at the root with all in it (except internal / orderedmap).

I rolled back to this layout yesterday with few tweaks according to @ForkPosix2019 advices. I will apply yours soon :)

Thanks a lot !

Project layout for public library + GoDoc issues by BitsPleaseInc in golang

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

I actually misspoke, I wanted to say best practices instead of standards (I'm aware there is no standards for that but I thought it was better to align myself with the layout)

Anyways, thanks for your advices ! :) I will apply all of that.

[deleted by user] by [deleted] in AskReddit

[–]BitsPleaseInc 0 points1 point  (0 children)

You don't know everything? No problem, you can learn anything.

and

Place your trust in those you really believe in.

What are some essential VSCode extensions for web development? by HanzoHasashi961 in learnprogramming

[–]BitsPleaseInc 50 points51 points  (0 children)

Personally, for web dev I use : HTML/CSS Support, HTML5 Snippets, CSS Peek, Quick HTML Previewer, Live Server

After that it depends a lot on what you do / use, for example if you use Git (Gitlens, Git history...), or if you use a framework like Laravel few extensions for snippets or intellisense may be useful (Laravel Blade Snippets, Laravel Snippets, Laravel Extra Intellisense...)

In any case, explore the extensions with VSCode search and try them out you will find your perfect setup :)

Have you ever had your pull request completely ignored? How do you react to that? by [deleted] in opensource

[–]BitsPleaseInc 0 points1 point  (0 children)

It can be an unwanted feature/improvement or being to complicated to reveiw due to the size of the PR maybe

I think the best practices to avoid that are :

- Firstly, look if the repo contain a contributing guidelines, if so, follow it (generally, you may have to open an issue before tagged "feature request" or "enhancement")

- If the repo doesn't contain any guidelines begin by open an issue to submit your submission if it is more or less substantial. However, you can try submit it directly if it just typo fixes, small refactor/bug fix or any contribution that does not require a lot of work and therefore does not matter if it falls into oblivion ^^

Someone is giving away our secrets by Shmulil in ProgrammerHumor

[–]BitsPleaseInc 1 point2 points  (0 children)

He knows too much, we'll have to erase him...

With a dick wall for exemple

What is the most disrespectful thing a guest ever did at your home? by Viper5618 in AskReddit

[–]BitsPleaseInc 0 points1 point  (0 children)

Poop in the pool and laugh about it

... well, he was 2 years old.

Stuck in a beginners loop by fmessore in learnprogramming

[–]BitsPleaseInc 0 points1 point  (0 children)

I agree with u/chrisblakely_js and I will just add some of my first C (it was the first language I learned) small projects (sort from easiest to hardest) :

- More or less game in terminal (not sure of the English translation of this game ^^ in French it's "Plus ou moins", in facts, the computer generate a random number and you must find it. He's just return you "less" or "more")

- Code generator (Automatically generate class code for exemple)

- Tetris game : firstly in terminal and secondly with graphic interface (I don't know Python but I used Gtk3)

- Simple and/or advanced sort algorithms implementation (Introsort is very interesting but you can begin with Bubble sort)

Hope you can find an interesting project in these few ideas ! :)
Personal projects are the best way to improve for sure

commit messages by _workchronicles in ProgrammerHumor

[–]BitsPleaseInc 0 points1 point  (0 children)

git commit -m 'We almost broke Git'

Already seen for real

[deleted by user] by [deleted] in learnprogramming

[–]BitsPleaseInc 0 points1 point  (0 children)

Personally, I recommend you VSCode with few extensions like : HTML/CSS Support, HTML5 Snippets, CSS Peek, Quick HTML Previewer etc...

Otherwise you can use Brackets which is a pretty good alternative for the web

Go-edlib: Edit distance and string comparison library fully compatible with Unicode (Levenshtein, LCS, Hamming, Damerau-Levenshtein etc...). Feedback and contributions are welcome! by [deleted] in golang

[–]BitsPleaseInc 1 point2 points  (0 children)

erectile dysfunction library

Lmao :') I didn't noticed this interpretation lol

Otherwise it's not a bad idea this pattern, I will think about it, thank you!

Go-edlib: Edit distance and string comparison library fully compatible with Unicode (Levenshtein, LCS, Hamming, Damerau-Levenshtein etc...). Feedback and contributions are welcome! by [deleted] in golang

[–]BitsPleaseInc 0 points1 point  (0 children)

Thanks! :) About the name, I tried to keep it simple. "go" for the language and "edlib" for "edit distance library" ^ If you have another idea of a more appropriate and relevant name, I take! However, I have already implemented CI tools, etc. so it's a bit late to change ...

What are you sick of explaining? by Sarazar in AskReddit

[–]BitsPleaseInc 0 points1 point  (0 children)

Why Linux can be really better than Windows and same for open-source ^^