livingcoder

joined 2 years ago
[–] livingcoder@programming.dev 26 points 1 year ago (9 children)

I love how the solution didn't involve changing the prefix to "mcaffee_". Now users don't know who to blame. Great. That's so nice of them.

[–] livingcoder@programming.dev 4 points 1 year ago

Yesterday doing a search using vim for a class that shared a lot of characters at the front with many other classes: /Bas.*Some I could have done a more precise search with better regex, but this was quick, easy, and worked.

[–] livingcoder@programming.dev 0 points 1 year ago

I personally think that unwrap and the question mark operator were a mistake.

[–] livingcoder@programming.dev 1 points 1 year ago* (last edited 1 year ago)

I'm very curious how giving money to Trump supporters would hurt Trump? Some people are giving their last dollar to Trump and depend in charity at this point. Wouldn't throwing money at local charities just further enable them?

[–] livingcoder@programming.dev 7 points 2 years ago

This was a good, short read. Worth the time.

[–] livingcoder@programming.dev 6 points 2 years ago

It's time that we admit to deaf people that music isn't real. The joke has gone too far.

[–] livingcoder@programming.dev 36 points 2 years ago (3 children)

Your team needs to have a coding standards meeting where you can describe the pros and cons of each approach. You guys shouldn't be wasting time during PR reviews on the same argument. When that happens to me, it just feels like such a waste of time.

[–] livingcoder@programming.dev 1 points 2 years ago

I'd love to include my wave function collapse library, but examples of its usage in games is lacking atm. I've thought of a couple games that could be made that utilize the concept, but I haven't prioritized them.

For those that are interested: https://github.com/AustinHellerRepo/WaveFunctionCollapse

[–] livingcoder@programming.dev 12 points 2 years ago

How does it handle multiple potential outcomes? Example: unformat!("a {} b {} c", "a x b b y c") Would it return Some(("x b", "y")) or Some(("x", "b y"))?

[–] livingcoder@programming.dev 2 points 2 years ago

It's still useful when it's wrong because it can give you the jist of what should be done. If it uses a library or function that doesn't exist, you'll still be informed as to what it was intending for the process at that point. I've often gone and just replaced the made-up code with custom code that does the same thing.

[–] livingcoder@programming.dev 19 points 2 years ago (5 children)

It's surprising how useful ChatGpt is in these situations. Honestly, it's a great general purpose search engine.

[–] livingcoder@programming.dev 1 points 2 years ago

Thanks for the suggestions. I appreciate it.

view more: ‹ prev next ›