u/duannguyen - 14 Archived Voat Posts in v/programming
u/duannguyen
  • home
  • search

u/duannguyen

1 post · 13 comments · 14 total

Active in: v/programming (14)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: A Simple Game Engine From Scratch : Sharing My Programming Videos That I Did Awhile Back

04.01.2016: Added EP #8: Optimize Mouse Events And The Generic Button.

0 01 Apr 2016 23:31 u/duannguyen in v/programming
Comment on: A Simple Game Engine From Scratch : Sharing My Programming Videos That I Did Awhile Back

02.21.2016: Added EP #7: Capturing Mouse Events.

0 22 Feb 2016 03:54 u/duannguyen in v/programming
Comment on: Hate GitHub being taken over by gender politics? Don't worry, you're not alone.

My favorite from C+= repo

#define fatpride double // no more weightism and fat shaming

lmfao.

4 21 Feb 2016 07:00 u/duannguyen in v/programming
Comment on: Programmer quits work on project after getting triggered by a variable name (The comments, however . . .)

Sounds like a "DevsOp" person to me. :D

0 08 Feb 2016 07:58 u/duannguyen in v/programming
A Simple Game Engine From Scratch : Sharing My Programming Videos That I Did Awhile Back
25 2 comments 01 Feb 2016 04:39 u/duannguyen (self.programming) in v/programming
Comment on: Using Operators in C#

It was getting more common when I left college in 2005.

0 30 Jan 2016 03:10 u/duannguyen in v/programming
Comment on: How Can i Become a Good Programmer ?

I hear they will be making $15/hr soon. So might be too bad. /s

1 24 Oct 2015 07:06 u/duannguyen in v/programming
Comment on: Marketing for freelancers: the basics

How is this programming related?

0 09 Oct 2015 06:11 u/duannguyen in v/programming
Comment on: Nothing is more indicative of a bullshit job than the interview

Newer programmers these days sound more like children than people who you can trust to do their job proficiently (maybe it's a side effect from all the cutting and pasting they did..or still doing.. while somehow managing to get their degree). I've worked with programmers from all walks of life from your newly minted college grad to your nuclear safety system veterans, what I can tell you is you can always get a bad programmer up to speed so they can meaningfully contribute to the project. However, you mostly likely will not reform a whiney || entitled programmer (like the author of the article) -- he would likely quit/get axed before you get a chance to make any head way. Chalk it up to people making "Apps" compared to people making software -- I guess.


On the topic of the interview (been on both sides numerous times, more the technical gauge these days). The questions are there to see how you think and how you act under pressure, because in the real world we have scheduling requirements to meet and that directly translates to someone's college fund, their mortgage, etc. So you can't blame the team for wanting someone who is a good fit for their project that they might have been working on for the past several years or more.

We have moved away from asking your general run of the mill questions in our interviews -- but always ask at least one data structure question (you can see a sample problem here from my post history #1). The link list question is a decent question and here's why:

  • It involves a pointer. (Can you tell me why we need pointers in the first place?)
  • It involves some type of data (can be template).
  • It involves some mechanism to transverse the elements.

If you solved it recursively, can you do it without recursion?

If you solved it iteratively, can you do it with recursion?

And really the LL can be taken as the basic building block of other data strutures like a stacks, queues, maps, trees, etc. So when the author says somethign like this:

I have only ever used linked lists for two things: a) computer science exams, and b) interviews by people who passed the former.

I know I can't take person very seriously. Really, what can you possiblely being doing that you can avoid such basic structures as those? Wonder if Apps makers every asked how their ListView control actually works under the hood? Or better yet how a x86 processor works? Because you know, there's a thing call a SP register(s).. that makes everything possible.

0 04 Oct 2015 04:50 u/duannguyen in v/programming
Comment on: You Don't Have to Be Good at Math to Learn to Code

Hahah, looking at this post seems everyone gets -1 by default. :P

2 03 Sep 2015 13:12 u/duannguyen in v/programming
Comment on: You Don't Have to Be Good at Math to Learn to Code

Confusing design with algorithms is pretty common for new coders. Someone has already done the work should never be an excuse for you not to look into it deeper and understand it yourself. Heck, you might even find a better and faster way of doing it by examining it.


Design: Change the text color (like the author said)

<p><font color="red">designing in a markup language</font></p>


Algorithms: Write your own DrawText function or extended it.

Requirement: DT_VCENTER must work regardless if DT_SINGLELINE is use or not.

This requires you to calculate the height of the container along with the height of the overall text paragraph and position it such that the Y value of Text is vertically center base on the destination rectangle.


One you can do by using the IDE designer or GUI (or you can be fancy and edit the code-behind). The other, requires you to critically think on how to solve the problem as well as use cases like: What should I do if the user resizes the container ........

I've programmed professionally for the past ~20 years (that means they paid me decent amount of money) and math has always been the backbone for everything I do.


Edit: Typed this on mobile. On desktop now, clarify what I meant.

13 03 Sep 2015 11:16 u/duannguyen in v/programming
Comment on: Developers Who Can Build Things from Scratch

Just 2-cents:

Building from scratch is the norm for us who work on real time system, where everything is measure on the real time clock positive edge or negative edge. Speaking of my own work, we build system that needs to be operational 40+ years from now so using a 3rd party library that we don't have the source code is usually a bad idea.


We even tailor our interview programming question on building from scratch. For example, given a ATMEL (a microcontroller for all of you that are unfamiliar), write a program that does XYZ (usually transfer data from another component to a SoC) in a certain time requirement. The program will always take too much time if the person were to use built in libraries (vectors) or in extremely high speed environment even the overhead using looping mechanism will break the time requirement. So it is up to the person, to read all documentation and timing cycles for said ATMEL and figure out a way to send the data in the delta time provided.

No one in the past 7 years of interviews has ever gotten this correct. We don't expect them to, it's extremely difficult to go from your regular programming job to a real time system that requires a truck loads of reading before you even start up a single function. We use this programing problem to gauge how well the applicant communicates back with us and to gauge their ability to read documentation and timing diagrams.


If they're not a hardware guy (just your regular run of the mill programmer). Write a simple plotter. Given a Vector of Points, plot each point in a line segment style. Requirements: Number of Columns, Rows, Delta X In-between Columns, Delta Y In-between Rows all needs to be changeable on the fly, this way the Graph will be truly interactive. Bonus: plotter will resize if it's parent container is resize.

We give them a primitive drawing library or if they're comfortable with WIN32, they can use the GDI set. You will be amaze on how many people fail to build this.

5 17 Aug 2015 03:17 u/duannguyen in v/programming
Comment on: the big list of programming and computing subverses

Thanks for the link. I been watching the development channels on Twich but this seems a bit more goal oriented and mature. Twitch chat is not very desirable.

1 01 Aug 2015 07:48 u/duannguyen in v/programming
Comment on: the big list of programming and computing subverses

Please add /v/WatchPeopleCode. It's a small subverse, but I really think a lot of people can benefit from it.

1 01 Aug 2015 04:54 u/duannguyen in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.