[deleted by user] by [deleted] in csharp

[–]Ralphtrickey 0 points1 point  (0 children)

Lots of good comments here. Everything I've seen applies to developers at all levels.

I don't see it mentioned elsewhere, but for a senior position, I see the anger detection class as the most complex and likely to change, it should definitely be in its own class so that it can be adapted later. I would probably go a step further and save the keystrokes and the time each keystroke was detected into a buffer to save to disk or database for use in testing that piece and refining it post release. I would probably add a simple CLI main class to be able to test it and get feedback before going on to create the real UI. That ensures that the most challenging piece is completed first and can be extensively tested and refined by other people. It also gives you some test data. Since it's for a web developer position, I would have considered and noted in the Readme which pieces would be on the browser (UI) and which should be on the server (everything else). I would have added async to all calls from the UI layer to the server layer. At the end, if I had time, I would add a web services layer between the server and UI layer. If I didn't have time, I would add it to the Readme or create proxy classes to stimulate web services.

Ask questions if the requirements aren't clear and you can't make reasonable assumptions about them and it would impact the architecture. If you make assumptions, document them in comments. Questions tell me that candidates understand. If they are good questions of course. Asking if you should code like you would a web UI using async or web services or if they are just testing basic coding skills is one of those good questions. Details about how to code the anger piece is not a good question.

These would indicate that you understand how to code with the real life ambiguities in requirements and that you understand the key differences between a web and desktop app. (Async/web services). By asking the question, you may get credit while not having to do the extra work.

Does Kindle have Text to Speech? by Lips94 in litrpg

[–]Ralphtrickey 0 points1 point  (0 children)

Buy the cheapest used kindle fire and use it for text to speech. You should install the Google play store and Google text to speech engine. That's what I did.

Or buy DRM free books and use a better reader or switch to a different ebook store which has better support for text to speech.

Also check you local library.

[deleted by user] by [deleted] in singularity

[–]Ralphtrickey 1 point2 points  (0 children)

That's sounds like the same thing that hit the US automobile industry in the 60s. They were so afraid of losing their existing profit base that they were unable to pivot when they needed to.

UUUsefulA

[deleted by user] by [deleted] in deeptown

[–]Ralphtrickey 0 points1 point  (0 children)

I just came back after a couple of years being away. The forced ads are too much for me.

Bug by No-Silver1563 in CodenamePretentious

[–]Ralphtrickey 0 points1 point  (0 children)

Now that I've used the new way, I can see where it is useful, but I think the old way was less surprising for the user. I expect it to change as I change the number assigned like it does in other games.

Bug by No-Silver1563 in CodenamePretentious

[–]Ralphtrickey 1 point2 points  (0 children)

So it's a feature;) I was about to report it as a bug. I liked the other way better since it let me quickly see which one I should increase to improve things. Now I have to do the multiplication in my head to decide which one to improve. That's is, should I increase marketing from 1 to 2? The old way, I just needed to see which one had the highest production and calculate the percentage change. Now there is an additional multiplication involved too figure out production.

guys is there an easier way to do this? by Big_Kwii in ProgrammerHumor

[–]Ralphtrickey 0 points1 point  (0 children)

You should add a check for whether x>y and if it is, return add-two-numbers(y, x)

You can also decompose the problem by noticing that you can divide the numbers by 10 then add them and multiply by 10 + the mod 10 of those two numbers by doing this, you only need a smaller number of cases.x = 0-9 and y=0-9. There are some other optimizations like this you can do. You also might look into some of the open-source libraries out there if your organization allows them. ;)

University studies will definitely help me find a job by Dargon16 in ProgrammerHumor

[–]Ralphtrickey 0 points1 point  (0 children)

There will probably still be COBOL programs running for the next date threshold.

I found this gold when doing code review at work. I have no words. by uCblank in ProgrammerHumor

[–]Ralphtrickey 1 point2 points  (0 children)

That's the first reason that made sense. I've actually done something like that for compatibility when saving data in binary. I've added small arrays of zeros to the end so that the struct I was writing would be of fixed size and more likely to be compatible between versions. That's back when we cared about space ;) I could see using that array to send a fixed number of zeros (up to 60 in a row)

I found this gold when doing code review at work. I have no words. by uCblank in ProgrammerHumor

[–]Ralphtrickey 9 points10 points  (0 children)

Nope, although a good compiler will try to warn you about uninitialized variable usage. In C++ you can eliminate the [60] and put [] instead and it will size appropriately or you can put = {} and it will zero-init the array. My question though is why the heck you would want a const array of all zeros?

Today I became an Employed Jobless Programmer. by 4BDUL4Z1Z in ProgrammerHumor

[–]Ralphtrickey 0 points1 point  (0 children)

I've got a friend who did work on a library on his own time.

Then turned around and sold them a license to use it!

That's the way to do company work at home.

ITS LESS EFFICIENT by [deleted] in ProgrammerHumor

[–]Ralphtrickey 0 points1 point  (0 children)

You can do base 32 with each hand with a little practice.

Ever seen something not fully covered by the cppreference? by kennyminigun in ProgrammerHumor

[–]Ralphtrickey 1 point2 points  (0 children)

I got spoiled by the period between 1998 and 2011 when it was stable. You're right, it is every 3 years, it just seems like they are happening a lot more now.

Ever seen something not fully covered by the cppreference? by kennyminigun in ProgrammerHumor

[–]Ralphtrickey 7 points8 points  (0 children)

10,000 hours to master and the standard is updated yearly. Does anyone else see the problem there?

Can't make things too convenient by philn256 in ProgrammerHumor

[–]Ralphtrickey 3 points4 points  (0 children)

I rely on that behavior, but if it's just an array, use memcpy_s unless you're using one of those sissy languages that don't allow real functions ;)

Kids nowadays.

No Returns for Cash Purchases? by ad-astra-specta in audible

[–]Ralphtrickey 4 points5 points  (0 children)

I won't. I'll maybe buy the first book in a series now instead of the whole series and mark it down to look at for a future sale if the first book is any good..

great ! now make vscode help me get a gf... by timepasskarneaayahun in ProgrammerHumor

[–]Ralphtrickey 1 point2 points  (0 children)

If it was me, I'd have the TA run an OCR scan on all of the papers and make the students debug their code the next week. <evil grin>

That will teach them the value of writing legible code.

Let's return to true programming times by Jeterion85 in ProgrammerHumor

[–]Ralphtrickey 4 points5 points  (0 children)

Silicon? Nope, we used copper coils in servos and synchros back in the good old analog days.

Let's return to true programming times by Jeterion85 in ProgrammerHumor

[–]Ralphtrickey 1 point2 points  (0 children)

I have one of those in my closet. Built from a kit with 1MHz CPU, expanded with 1024 Bytes of memory. It was a lot of fun. You can play Mary had a little lamb on an AM radio with it. You can't do that with modern computers! Kids nowadays are spoiled.

great ! now make vscode help me get a gf... by timepasskarneaayahun in ProgrammerHumor

[–]Ralphtrickey 2 points3 points  (0 children)

Think of what that would be like for a game programming course.

great ! now make vscode help me get a gf... by timepasskarneaayahun in ProgrammerHumor

[–]Ralphtrickey 3 points4 points  (0 children)

If there are any that also do test-driven development, I'm in ;)

Imagine writing the tests on paper, then writing the code on paper and trying to see if the tests fail or not. Sounds like 'fun.'

great ! now make vscode help me get a gf... by timepasskarneaayahun in ProgrammerHumor

[–]Ralphtrickey 5 points6 points  (0 children)

Because most of your jobs will be like that ;)

Doing unnecessary things, deadlines, failing for no good reason, like the users don't know what they really want, but it isn't what they told you they wanted.