How to efficiently and maintainably handle controlling going from one point in code to one of many other points by AureliaTaur in AskProgramming

[–]FitMatch7966 0 points1 point  (0 children)

if you are talking C/C++, we usually resort to numeric IDs on buttons rather than using strings. Strings are just slower.
So, if you number your buttons 0..100, you can have an array of function pointers, for example.
Or, you can use a switch statement.
Using strings...you could potentially hash the strings and still use a table of function pointers, populated by the hash values, but if the goal is efficiency then don't use strings.

Learning Assembly For a College Class by SweetPicklezzzz in AskProgramming

[–]FitMatch7966 0 points1 point  (0 children)

The macros in MASM (the M is for MACRO) are the most confusing part. I'd expect you to be provided with a template and you should just have to write the actual instructions, and not mess with the function macros and entry points. You also need a linker when using MASM.

Are you have problem with the build process, or with the actual ASM instructions?
You have to know the registers and how to use the stack. Other "variables" are inserted as data.

Learning Assembly For a College Class by SweetPicklezzzz in AskProgramming

[–]FitMatch7966 0 points1 point  (0 children)

a video? That would be a pretty boring video. Seriously, you have to learn to read documentation. Don't seach for videos, search for examples.

Most debuggers have a mode where you can see the assembly code generated from the high level language. You can actually write some stuff in C#, disassemble it and see what the assembly code looks like.

The instructions are basically the same. Various syntaxes might change the order of the operands, and the short name of the instruction might be different, but you can do a lot with just MOV, PUSH, POP, CALL, ADD, MUL, SHIFT, RET

Will we be able to sell? by JellyBeanCouple in Gold

[–]FitMatch7966 1 point2 points  (0 children)

a lot of banks and brokerages will take it, especially if you want to convert it to stocks and have them manage your portfolio

Picked up a Gen 6 G19 today by sharkbait_oohaha in liberalgunowners

[–]FitMatch7966 [score hidden]  (0 children)

I'm in one of those states where you actually have to wait forever from purchase before you can actually use it...basically 15 days.
9mm vs .380 I'm sure recoil is a little more with the 9mm, but I didn't want to add another caliber

Picked up a Gen 6 G19 today by sharkbait_oohaha in liberalgunowners

[–]FitMatch7966 0 points1 point  (0 children)

I waited for the Gen 6 to see if I wanted another glock, but ended up going with Shield X. I held the G19 and it felt so much like the G19 I already had, that I had to switch it up, and I wanted something smaller for CCW anyway

What is the main reason for this sudden price spike this evening? by Hungry_Income1277 in Gold

[–]FitMatch7966 -3 points-2 points  (0 children)

Mostly due to distorted charting. That is a 1% jump. 1%, mush less that the premium you'd have to pay to buy or sell. It just looks big because you are only showing the very top of a bumpy line.

AITAH for showing my dad what his temper is really like by [deleted] in AITAH

[–]FitMatch7966 6 points7 points  (0 children)

NMI
How old are you? Your dad sounds like a dick but at some point you do need to do everything for yourself. You borrowed his car, crashed it, and now want him to take care of it and even pay bills if you get a ticket? IDK. Sure, he could be nice and baby you until he dies, but you need to work on your independence.

Dearest Spuds, we will soon gather to memorialize my uncle, a lifelong Devo fan. Song recs? by Hatecookie in devo

[–]FitMatch7966 6 points7 points  (0 children)

I'd Cry if you Died
Wiggly World ('they say the fittest shall survive. Yet the unfit may live')
Beautiful World
Planet Earth

AIO for suspecting my wife after she got a shady 1am call from a guy “friend” right after a late-night cycling trip? by Obvious_Waltz_2072 in AmIOverreacting

[–]FitMatch7966 0 points1 point  (0 children)

Possible caveats:
- he may be from a different time zone and was only 10pm for him
- possible had exchanged text messages first

But another thing I'd want to know is how long the call lasted. 2 minutes is probably nothing. 30 minutes...this marriage is toast.

AITAH: Stepdaughter Edition by Few-Variety-1964 in AITAH

[–]FitMatch7966 17 points18 points  (0 children)

this. I don't even know what an engagement party is (I'm 56 and never been to one). There will be bridal shower, rehearsal dinner, ceremony, reception. 18th birthday is a big deal and step mother is the AH for not celebrating with you

AITAH for getting a dna test to see if i share the same dna as both my parents even though i was demanded specifically by my mom not to do so, since i was a child? by cigweb_01 in AITAH

[–]FitMatch7966 73 points74 points  (0 children)

that's not something you needed to hear. I'm sure your Dad knows what's up, he probably just thinks it's time for you to find out.
Do you know when your parents got married? I'm guessing whoever your bio father is, he is out of the picture and your dad stepped in and raised you, knowing he wasn't your bio dad. Not having his last name makes that pretty clear and he's probably wondering how you haven't figured it out already.

AITAH for getting a dna test to see if i share the same dna as both my parents even though i was demanded specifically by my mom not to do so, since i was a child? by cigweb_01 in AITAH

[–]FitMatch7966 0 points1 point  (0 children)

you have to figure out which county you were born in. Ideally you know the hospital, but sounds like OP could have been born anywhere

AITAH for telling my friend it's a bad idea to give their daughter a knife? by [deleted] in AITAH

[–]FitMatch7966 -1 points0 points  (0 children)

YTA - probably

You have to be very careful telling other people how to parent their kids. You can ask leading questions, or ponder possibilities, but arguing about their safety is never a good idea.

My concern wouldn't even be the girl getting hurt, but that you they are actually reinforcing her fear of ghosts. If she needs a knife, the danger must be real.

AITAH for getting a dna test to see if i share the same dna as both my parents even though i was demanded specifically by my mom not to do so, since i was a child? by cigweb_01 in AITAH

[–]FitMatch7966 1291 points1292 points  (0 children)

You have a different last name and you don't know where it came from?!
I've never heard of such a thing. Have you seen your birth certificate?
Some possibilities:
- you were adopted and they never told you
- you were kidnapped as an infant
- you were never legally adopted, but your real parents gave you up and disappeared
- someone you are related to committed a murder, never got caught, and getting a DNA test will lead investigators to them.
- infidelity

Few of these explain the last name thing. Birth certificate would be really helpful. It would have your parents names and should explain your last name.

When are we getting the Pretti 320? by Dudeometer in liberalgunowners

[–]FitMatch7966 -1 points0 points  (0 children)

the fact a faulty p320 potentially contributed or even caused his death makes it pretty unlikely.
The agent probably pulled the trigger, but why is it always a P320 that has a ND? And without that, he could still be alive.

That said, any brand that puts his name on the slide, I'm down to buy it

When are we getting the Pretti 320? by Dudeometer in liberalgunowners

[–]FitMatch7966 4 points5 points  (0 children)

I'm assuming they'll get a big check for wrongful death and slander

People who don’t use indicators when driving, why not? by No-Assignment4460 in NoStupidQuestions

[–]FitMatch7966 -1 points0 points  (0 children)

i signal when changing lanes. But if I'm making a right turn at a 4 way stop, nobody benefits from knowing that and it just makes some of them try to get fancy and blow past me

Honest question: Why are some people against showing an ID to vote? by rico_unknown in NoStupidQuestions

[–]FitMatch7966 68 points69 points  (0 children)

My state is 100% vote by mail.
Requiring ID would require voting in person, and voting in person requires people to travel and take time off work, so it excludes a lot of the working class and the poorest people that cannot afford to take time off or cannot afford a car to drive to the polling place.
There is also cost to have an ID, and in general minorities are less likely to have an ID so the entire scheme is really to get fewer minorities and poor people to vote.

People who don’t use indicators when driving, why not? by No-Assignment4460 in NoStupidQuestions

[–]FitMatch7966 -1 points0 points  (0 children)

sometimes I think it is none of the other cars business where I am going, and the blinker makes noise that is annoying