3,263 reputation
21030
bio website
location Chicago, IL
age 26
visits member for 3 years, 5 months
seen 33 mins ago

1d
comment Is using MultiMaps code smell? If so what alternative data structures fit my needs?
@SebastianRedl Looks like a little bit of both; YAML seems to allow deserialization into arbitrary object instances, and requires extra work to prevent code execution in dynamic languages
1d
comment How do I review code changes that are the result of syncing?
What do you use for version control? git, svn, hg, etc..?
Nov
6
comment Why do we use non-descriptive internal codenames?
@back2dos The examples the OP gives seem to be describing the equivalent of print_left_aligned_to_CRT_monitor()
Nov
6
comment Why do we use non-descriptive internal codenames?
This seems to be proposing something along the lines of Systems Hungarian for these codenames; I see this getting out of hand extremely quickly... W8U140432b_Downloader (using only the proposed metadata in the question)
Oct
16
comment Why do so many websites prefer “git rebase” over “git merge”?
@JohnDaniel And D uses it wrong why are you ever making commits you haven't tested? That seems like the source of the confusion in your example...
Oct
16
comment Why do so many websites prefer “git rebase” over “git merge”?
@JohnDaniel Assuming commits B, C, and D were made in order, then B and C do contain an issue - they're no longer compatible with the pushed code. D won't be the source of that problem unless you intentionally changed the order of your 3 commits. And, as I describe at the beginning of my answer, your commit message for B should contain enough information for you to fix it in a new commit (and if necessary, rebase -i and squash it into B so that the commit passes again)
Oct
8
comment Why is reading from memory not a side-effect but reading from a file is?
@orionll Reading from a file can cause a change to its access time, if enabled for that filesystem. That's a (small) side-effect, and as hinted above, it's not something that the compiler is capable of knowing about beforehand
Oct
2
comment What is the benefit of a function without parameters which only calls another function
window.alert is also often used as a placeholder during development until a nice modal/popup can be designed/implemented, so, same as the language issue, it can be switched out much more easily. Or if you already have one, a design update a few years down the line might require similar changes.
Oct
1
comment Is it better to have separate functions or add more arguments to a function?
@immibis That may be so for an electrician, but the programmers working on this might not have that particular detail at the top of their mind, if they even know about it
Sep
30
awarded  Explainer
Sep
27
comment Are long compiles a thing of the past?
The standard for Python compiles to bytecode and runs in a virtual machine; this is conceptually the same as Java. Other Python implementations might do something different, though
Sep
25
comment Why don't developers make installation wizards on linux?
"Take for example, setting up a LAMP stack. Those are all open-source software in the default repositories, but can you set-up everything in one go without a script?" - On Ubuntu specifically (I don't know if it's in other distros' repositories), yes: sudo apt-get install lamp-server^ (the caret is important) (I also don't know if it shows up in the GUI software center)
Sep
19
revised IOC Containers break OOP Principles
Indent "a." and "b." to be children of "4." as the last sentence in "4." seems to indicate
Sep
13
comment Test-Driven Design is not Unit Testing
@MichaelT He wrote one of the go-to books on specific practices in extreme programming. This isn't just the opinion of a random blog author.
Sep
9
comment How do you track what you and your team are working on day-to-day?
We (tried to) use idonethis for about 2 months, it didn't work out - because you had to actually take a moment to go somewhere else, and only to update your status, most of us forgot it existed
Sep
9
comment What is a “lifted representation”?
@Frank As I understand it, F[A] and F[B] are the same constructed type, just with different values. That's why 3 types and not 4 types
Sep
4
comment Is using Git Stash as a workflow an antipattern?
@MichaelDurrant Hell, what I do is a simple git reset HEAD~1 and that most recent "wip" commit is turned back into uncommitted/unstaged changes. Way more flexible than stash and less likely to break with conflicts (if you use rebases locally).
Sep
1
comment What's wrong with comments that explain complex code?
@TonyEnnis Not really, but I think they could be put in simpler terms. For example, from the question: "comments should explain 'why', but not 'how'" - this is an argument for what Prog is questioning, not against as the question seems to indicate. Explaining a complex algorithm is explaining why you do a bitshift here or a comparison there, rather than something like foo << 2; // bitshift 2.
Aug
29
comment Why doesn't Python have a “flatten” function for lists?
@BryanOakley See prior comment as well (though not for multi-level lists, flattening in general is common)
Aug
29
comment Why doesn't Python have a “flatten” function for lists?
@detly I guess you haven't been around StackOverflow much?