53 karma · joined June 1, 2017
What problem does the following pseudocode have?
def some_worker
if disabled_via_feature_flag
logger.info("skipping some_worker")
some_potentially_hazardous_method_call()
And receive this response: The problem with this pseudocode is that there is no "end" keyword to close off the "if" statement. This means that the code after " some_potentially_hazardous_method_call()" will always be executed, even if the "disabled_via_feature_flag" condition is true.
And that's with a GPT3 without any special fine tuning. Of course, the name `some_potentially_hazardous_method_call` is pretty leading in itself. I rewrote the prompt slightly more realistically, as: What problem does the following code have?
def optionally_do_work():
if disabling_flag:
logger.info("skipping the work due to flag")
do_work()
and received: The problem is that the code will still try to do the work, even if the flag is set.
This does seem like a pretty trivial easier-than-fizzbuzz question to be asking, though, since it's so encapsulated.In fact, more applications-focused researchers (those who combine real data with established models, for instance) tend to write higher-level scripts stringing more-engineered tools. In this case, open sourcing the scripts would be both easier and more pointless, since they will be almost the same as what is stated in English, tables, and plots in the paper. Epidemiology is usually this way, in my experience, though the linked repository seems to have some of both flavors.
The underlying misunderstand in that issue thread seems to me to be a disagreement on what the main valuable byproducts of scientific programming are. Professionally programmers will naturally think it's the code, but, traditionally, the code has been seen in academia as only a temporary vehicle for the model and it's parameters, which is the real product. (Also, the "program" might really need to include the lab, its papers, and its institutional knowledge, which is harder to package and open-source.)
Right or wrong, the assumption is that any competent grad student could reproduce the result in a week or so of (admittedly unnecessary) greenfield coding. But this is clearly not ideal, and newer work does strive for more professionalism in coding, open-source-by-default, and therefore faster replication. The project in question clearly predates this trend.
(Of course, a third reason academics don't open source is that some secrecy is required before publication in competitive fields. On a months-long project, you might not want to be committing publicly before publication. But this isn't much of an excuse.)
I get that a "dark mode", done properly, requires more than just inverting colors, but this consistency is really nice.
Combating anti-intellectualism as a trend is probably more complicated than just trying to get the existing educated to have more children then the existing uneducated.
More importantly, English is defined by common usage, and the usage of irony in describing an unexpected combination of real events has been common for hundreds of years. I believe this probably comes from people's common belief in fate, or that their lives are part of some broader story. Under this mindset, it makes perfect sense to use terms from literature to describe phenomena of life. And your insistence that irony is a property of communication is satisfied.
Words have multiple senses, and the ones from common usage are just as valid as the ones from academic usage, though they may be harder to pin down.
Of course, I don't really see why there needs to be an attempt to pass as human at all. It would be fine with me if they just reinvented the phone tree with a better ux. Especially since it's billed as a business-facing call.
[1] https://www.vox.com/2016/5/9/11502464/gilens-page-oligarchy-... [2] https://scholar.princeton.edu/sites/default/files/mgilens/fi...
OTOH, the intent of the PBA card is aligned with the putative ethical wrong: you show the card deliberately to avoid paying a fine to the govt and to avoid the deterrent effect of the punishment.
[1]: http://info.legalzoom.com/legal-fees-preparing-tax-deductibl...
[2]: http://www.weeklystandard.com/house-to-consider-tax-on-new-f...
This is the part that's unimaginable in the US.