As always, feedback is much appreciated! We’re especially looking for:
- Interesting approaches to show
- Things to discuss
As always, feedback is much appreciated! We’re especially looking for:
This week is gonna be so much fun! I’ve already found tons of great solutions using a wide variety of approaches (more suggestions are always welcome).
It is pure envy talking, but featuring Ruby’s (and Gos) handling of unicode characters that have combining marks and accents vs other languages would be fun.
.
Do you have a particular solution that showcases this well? Ruby doesn’t have reverse string I think
For Go –
andrerfcsantos | bobahop | KellenWatt – All use rune slices and strings.Builder
in various ways, but still fail to group ‘valid’ combining marks. But the solutions are clean and worth going through.
Kellydanma doesn’t use strings.Builder
, but also only reverses code points, as the examples above.
FacundoDecena – Adds in a check to make sure that the Unicode marks are valid, and the reversal keeps the marks grouped correctly
Tested these out on the Go playground, against code I took from Rosetta code., so all props to the person who wrote up the Go examples there!
Used the Thai string “ผู้เขียนโปรแกรม”.
Approaches for Reverse String
on PowerShell.
Writing approaches is a lot more work than I expected
I’ve included this (runes vs graphemes) in my list of solutions. Thanks!