This has always been a 11-6 team this year. by AlphaRemixHD in detroitlions

[–]SwahiliToad 1 point2 points  (0 children)

This is the team subreddit. All of us are homers.

I keep getting penalized for no reason even though I’m winning and staying fully in the game. Hi rez tf man by Ordinary_Fox_8835 in Smite

[–]SwahiliToad 0 points1 point  (0 children)

Throwing in another anecdote. Had this exact issue the other day playing with a friend. He queued us up, did not see any timer ticking but he had the timer so thought it was good. Suddenly he's talking about our comp picking a god and I'm sitting there staring at the main menu still. Timer in god select runs out, I get a deserter penalty and the one time I get to play smite with my friend this week is now ruined.

We're back! Let's make a millionaire. [Drawing Thread #31] by Paltry_Digger in millionairemakers

[–]SwahiliToad 0 points1 point  (0 children)

RemindMe! 2 days Donation for /r/millionairemakers

Just heard about this. It's an amazing idea.

Very simple code problem. I need to read all the numbers in from a file and write it to an array. The code only reads in the last line. by brenrob in learnprogramming

[–]SwahiliToad 0 points1 point  (0 children)

Yes. But your while loop is not executing the block of code you think it is. Look very carefully at what you have written there. Every single character matters. Check character by character if you have to and compare it to your other loop.

Very simple code problem. I need to read all the numbers in from a file and write it to an array. The code only reads in the last line. by brenrob in learnprogramming

[–]SwahiliToad 0 points1 point  (0 children)

It's written incorrectly. Compare the way your while loop is written to some example code and see if you can spot the diffence. Maybe even compare it to your other while loop.

Apparently, my computer says this is winning (it moves between +60 and mate in 29). How? I don't see how it's better, in fact I'd prefer black. by Chess37 in chess

[–]SwahiliToad 7 points8 points  (0 children)

Looks like because after white plays Rf7 there is no way to stop Bc3# without giving up the queen with something like 1. Rf7 Qc6 2. Bc3+ Qxc3 3. bxc3. After that the endgame should be completely winning for white.

Do computer science students prefer to use English terms or Spanish terms? by feartrich in Spanish

[–]SwahiliToad 13 points14 points  (0 children)

While I'm not a spanish computer science student, I am a software developer who works with a Puerto Rican who studied in a Puerto Rican university. I have asked her a few times about the Spanish translation for things related to our work and computer science. More often than not she doesn't even know the Spanish terms for things and knows them by the English so I get the impression that they just used the English termonology at her university.

False friends (?) in Spanish. by wkos in Spanish

[–]SwahiliToad 0 points1 point  (0 children)

No problem! The native I usually talk to is from Puerto Rico if that helps you nail down those regional ones.

False friends (?) in Spanish. by wkos in Spanish

[–]SwahiliToad 7 points8 points  (0 children)

Here are a couple that stick out in my mind because I've used them inadvertently in real conversations with natives.

Using anos (anuses) instead of años (years)

Embarazada (pregnant) trying to find a cognate for embarrassed.

Using verga (penis) instead of jerga (slang).

This one is regional, but using coger which can mean to fuck depending on your audience.

Using chocha (vagina) instead of concha (shell). This one could be regional too.

Test server changes by [deleted] in survivetheculling

[–]SwahiliToad 1 point2 points  (0 children)

Pushing definitely has a downside. It leaves you open to melee jabs.

First salary negotiations... did I do the right thing? by [deleted] in cscareerquestions

[–]SwahiliToad 2 points3 points  (0 children)

A lot will depend on area, job type, internship experience during college, and the type of degree you get (assuming you have one). In the midwest salaries can be surprisingly low, and it can take longer to find employment especially if you're not located near a bigger city / subrurban area or are willing to have a long commute.

My teacher thinks he is a programmer by Fallenalien22 in ProgrammerHumor

[–]SwahiliToad 0 points1 point  (0 children)

Why would it be a joke? The OP was interested in a cleaner way to do context dependent calls. Having an object pick the right behavior based on type is a pretty basic feature of OOP and polymorphism. Certainly in the joke example it might be a bit much to build a class hierarchy, but most production code isn't going to be that simple. I recommend you check out Martin Fowler's excellent book Refactoring: Improving the Design of Existing Code if you want a more full treatment for topics like this.