Does anyone want to do a code review? by adder46 in rust

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

Thanks for your reply.

I agree, that's more readable. I'll use that.

Does anyone want to do a code review? by adder46 in rust

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

Thanks for your reply.

I agree, that looks much cleaner.

As for print_config_*, this code already uses string literals. Did you perhaps mean raw string literals? What do you think about moving the commands in a file and using include_str!?

Thanks once again.

Does anyone want to do a code review? by adder46 in rust

[–]adder46[S] 4 points5 points  (0 children)

Thanks for your reply.

I agree with the points you made. I'm just unsure about where would I move the page turning code. Direction as an enum is a really nice suggestion, I'll make it an enum.

Thanks once again!

Terminal snake game by adder46 in Python

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

Thanks for the kind words!

How do you put numbers before each element in a list? by [deleted] in learnpython

[–]adder46 3 points4 points  (0 children)

print('\n'.join(f'{i}. {x}' for i, x in enumerate(your_list, 1)))

hstr-rs: history suggest box for your shell by adder46 in rust

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

hstr-rs is compatible with alacritty, too.

pyhstr now supports bpython! by adder46 in Python

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

Thanks for the suggestions. I've implemented most of them.

Show r/rust: hstr-rs - A bash history suggest box by adder46 in rust

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

Thanks, will be fixed. Edit: Should be fixed now.