426 reputation
410
bio website trost.co
location San Francisco, CA
age 32
visits member for 2 years
seen May 17 at 23:50

Software engineer


May
30
awarded  Yearling
Mar
22
awarded  Notable Question
Nov
9
awarded  Popular Question
Jul
2
awarded  Curious
May
30
awarded  Yearling
Mar
27
asked JavaScript: Bundle a required, but common, polyfill in my library?
Jan
2
awarded  Good Question
Jan
1
awarded  Popular Question
Dec
28
comment Why not embed styles/scripts in HTML instead of linking?
Just to be clear, I did indeed mean to suggest what @delnan has clarified on my behalf in his comment. Sorry if my question's phrasing was ambiguous.
Dec
27
awarded  Nice Question
Dec
27
accepted Why not embed styles/scripts in HTML instead of linking?
Dec
26
asked Why not embed styles/scripts in HTML instead of linking?
Nov
15
comment How do I cleanly design a central render/animation loop?
Great answer, thank you! This totally got me unstuck.
Nov
15
accepted How do I cleanly design a central render/animation loop?
Nov
12
asked How do I cleanly design a central render/animation loop?
Nov
4
comment Should you always pass the bare minimum data needed into a function in cases like this
I agree with this answer, but let me flag two situations where the other approach ("minimum data") might be preferable: (1) You want to cache method results. Better not to use a whole object as the cache key, or have to check an object's properties on every invocation. (2) You want the method/function to execute asynchronously, which might involve serializing the arguments and, say, storing them in a table. Easier and simpler to look up an integer than an object blob when managing pending jobs.
Sep
28
comment Treating a 1D data structure as 2D grid
Thanks for the answer (and the reverses)! Is there a name or category for these general types of formulae (which map 1D -> 2D -> 3D etc.)?
Sep
28
accepted Treating a 1D data structure as 2D grid
Sep
28
asked Treating a 1D data structure as 2D grid
Aug
29
comment Changing a variable through a series of statements … What is this technique called?
This answer actually has a pretty valid point re: my question. Variables by definition can (and in practice do) vary. Still, the style one uses when employing variables is a choice that affects program readability and clarity. I.e., if it's clear my method is just going to mess with the string n, then reusing n might be okay (an easier to type). But in some cases it would help future maintainers if I assigned a new named variable for each and every adjusted version of the original value.