[-] vrek@programming.dev 13 points 1 month ago

I love these posts and don't mean to complain but atleast for me it seems every image except the initial one is broken. It's only able to load the first image.

[-] vrek@programming.dev 12 points 2 months ago

Yeah that's fucked up. From two perspectives 1. Who ever wrote that library needs money to survive. 2. From the company point of view they wasted WAY more money on the development then the license. Hell if 1 developer spent a day to do it, they paid more than they would for the license

[-] vrek@programming.dev 13 points 2 months ago

I agree but I would say if there are variable token costs depending on report it would be nice if client sent request to server, server calculates x tokens to be used, sends x to client, client confirms that's acceptable, server does work.

Like if I expected a report to be 2 tokens but because of some quirk or a typo or something it cost 200 tokens I would like a chance to cancel it if it's not worth it.

[-] vrek@programming.dev 12 points 2 months ago

The worst programmer I ever seen was myself six months ago...Hopefully will be true in another 6 months too

[-] vrek@programming.dev 13 points 2 months ago

But it would be funny to watch them trying to use a pencil sharpener

[-] vrek@programming.dev 12 points 2 months ago

All the other tips are great. I would also recommend checking out a switch statement, for example https://www.geeksforgeeks.org/c/c-switch-statement/

This will clean up alot of the else if statements. Also I would work on code to organization. For example you test if the choice is greater than or equal to 6 or less than 1, then if it is equal to 5 then check again if it's less than 5 and greater than 0. You already did that third check.

If you want to go slightly more advanced I would put the steps to ask for and save the input numbers into a function then just call that function on each of the following choices. Would add a functional call but would remove another if statement. If you name it well it would also help on code readability.

Also if you want to take this farther like taking more than 2 numbers or more than 1 operation (for example 2 + 3 * 4) look into reverse polish notation. Basically it's how to store the equation to make executing them correctly easier. That might be a little advanced for you at this stage though.

[-] vrek@programming.dev 12 points 2 years ago

Not to mention the amount of analog clocks that are just wrong. I work at a fortune 500 company, most clocks are digital and synced to a time server. Every analog clock is wrong. Just yesterday I walked through the cafeteria and glanced at the clock and it read 5:20... For a second I panicked and was like it can't be that late. I checked my phone, it was 3:06. The clock was just not set properly.

[-] vrek@programming.dev 12 points 2 years ago

The earth is flat...

Do you agree the earth is about 2/3 lakes, rivers, oceans etc?

Are they carbonated?

No, the world is flat ... Give me money....

[-] vrek@programming.dev 12 points 2 years ago

Oh... Cool... Hold on I need to get my spork!

[-] vrek@programming.dev 12 points 2 years ago

Ok... Really they removed that part or are you being sarcastic? I can't tell.

[-] vrek@programming.dev 12 points 2 years ago

I treat my body like a temple. (a pagan temple during the crusades of Richard the lionheart) .

[-] vrek@programming.dev 13 points 2 years ago

Did you know diarrhea is hereditary? It runs in your jeans!

view more: ‹ prev next ›

vrek

0 post score
0 comment score
joined 2 years ago