2
votes
Truncating/abbreviating strings in the middle with an ellipsis (…) (or other) separators with a fixed character limit
Thanks to Peter Csala for providing you an example on how to convert your code into using Span<T>, and I think his answer covered that.
I just want to add ...
2
votes
Accepted
Truncating/abbreviating strings in the middle with an ellipsis (…) (or other) separators with a fixed character limit
Let me present you an alternative version of your TruncateInMiddle which utilizes ReadOnlySpans. The core logic can be rewritten ...
1
vote
Accepted
How to manage array of states effectively?
You can refactor that component into a main component, and each list will have its own component. Then you can reuse the list component multiple times:
...
1
vote
What command line options style is the best for command similar to `scp`?
Maybe a different - ^ @ = separator than : is better?
I take - dash to be the most innocuous of those.
Remember that double or triple dash could be used,
but also ...
1
vote
Virtual scroller Vue component
General review points
The code is quite readable as indentation is consistent and long lines are broken up. Most of it uses functional techniques to iterate through arrays, and it makes good use of ...
1
vote
Accepted
Virtual scroller Vue component
Found the problem - the filter: blur() rule was causing the issue, when I added it to the cards in the virtual list.
And the Webkit doesn't use hardware ...
1
vote
Accepted
Clock time validation app, cognitive exercise, minimal viable product
Thank you for the obvious effort put into readability.
isort
Your imports are nice enough as is.
But you're working too hard.
Run "$ isort *.py"
and be done with it, don't give it a second ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
user-interface × 144javascript × 40
python × 24
java × 18
html × 16
css × 16
jquery × 13
c# × 12
swift × 11
ios × 11
swing × 9
console × 8
react.js × 8
tkinter × 8
gui × 8
vba × 7
c++ × 6
python-3.x × 6
game × 6
event-handling × 6
performance × 5
object-oriented × 5
excel × 5
io × 5
layout × 5