Better HN
topnewbestaskshowjobs
Log inSign up

throwawayjava

2,805 karma · joined May 1, 2017 (9y ago) · 1,488 submissions

Submissions

comment 8y ago · link · parent

I've had a lot of luck with little languages that have an escape hatch into the implementation language.

My "little languages" always have atomic programs/expressions whose meaning is given by an implementation in the base language.

Sometimes, e.g., when my little language has an optimizing compiler or some fancy semantics, the atomic programs/expressions need a tighter interface than "does something". In those cases, I write down the full semantics of the language and figure out what lemmas I need to prove about atomic programs/expressions in order to prove whatever property I want about the overall language. I then enforce those lemmas at runtime using asserts (or, in the case of termination, wrapper code that enforces a timeout).

This pretty much only goes wrong when "everything" is factored out into the atomic programs/expressions. I avoid these situations by only using "little languages" when I can do something useful and difficult using the semantics of the little language. Most common examples include: automatic optimization, automatic parallelization, and automatic verification/static analysis.

But even when it does go wrong in this way, it's no the end of the world: if everything is implemented in the atomics, then you just refactor the implementations of the atomic programs/expressions into a library, delete the interpreter/compiler, and write some wrapper code.

comment 8y ago · link · parent

More importantly, this forces you to create an explicit interface for any code you'd like to reuse between implementations.

Inheritance is fragile for a lot of reasons (see e.g., fragile base class). But the most common failure modes all have the same thing in common: the error happens because a developer fails to realize that there's an implicit interface between two things in the object heirarchy.

comment 8y ago · link · parent

FOIA headcount and budget info.

Also, pay attention to what the bill/referendum is for. Any competent district will have a website explaining to the public what the funds are going to be used for.

In particular, be careful about voting against bond issues that are placed on the ballot within one or two years of the maturation date for a similarly sized bond. Because those are basically a continuation of the status quo, and voting them down can mean costly deferred maintenance and/or dumb financial trade-offs.

Real example: firing a whole bunch of people this year to pay for asbestos removal in cash money (because the bond issue wasn't passed and this NEEDS to be done in order to use the building), and then re-hiring a bunch of people the next year. Because the bond issue failed and the bond issue is literally the only legal way to amortize the cost of the asbestos removal. So, I guess no amortization, we pay upfront and fire a bunch folks for a year in order to afford it. (BTW, we all know from the software industry what happens when you lay off a bunch of people -- you lose your best folks and it becomes difficult to recruit good people).

Think of it like this: school districts in many states literally can't amortize their capital costs without coming to you with a ballot initiative. By voting "no" carte blanc, you're basically saying "I carte blanc disapprove of my local school district using amortization". Which is pretty unreasonable.

comment 8y ago · link · parent

The answer depends on the university.

Most universities only distinguish between "academic" positions and "staff" positions.

At most universities, "Academic" positions are something rather specific: usually only the faculty proper, Ph.D.-holding researchers, and maybe a few other student-facing roles (e.g., librarians).

Here is my quick two-part litmus test that's probably pretty accurate for most universities. Assuming you don't know for certain that you are in the "academic" or "staff" bucket, consider these two questions:

0. Are you a Ph.D. student with some funny title like "research assistant"? You are a student. You are not "staff". You are not "academic". You are a student.

1. Do you hold a Ph.D. AND listed as a co-PI on grants? If yes, you're most likely in an "academic" role. If not, you're most likely in a "staff" role (unless you're working with someone who has a shitload of clout).

What happens often in reporting is that "academic" and "staff" numbers are reported, and we assume "staff = administrative".

See the Stanford numbers, for example. Notice how there's no category for "non-administrative non-academic staff". You're either a member of the "academic" group or you're an "other", and the "other" group is not broken out into "administrative" and "not administrative".

Hopefully, this helps. It's all rather confusing and political and, in many cases, institution-specific :)

comment 8y ago · link · parent

I'm always extremely skeptical of this. Fundraising departments tend to claim responsibility for all but the very largest donations when in reality a lot of that money would've come to the school no matter what.

comment 8y ago · link · parent

FWIW that can be reasonable depending on the size of the district. Ours has ~4k+ non-admin employees and 15+ physical plants. That's:

* a large enough headcount that you need an HR department,

* a large enough overall budget that you need a CFO and accountants,

* a large enough physical plant that you need (sizable) facilities and transportation departments (with storage space),

* a large enough IT plant that you need dedicated staff,

* a large enough student body that you need a legal/compliance group (open records requests, mandatory state/fed data collection and reporting, etc.),

* a large enough teaching staff that you need nodes whose primary function is coordinating significant curriculum changes across grade levels and schools,

* a large enough community that a full-time community relations person is cheaper than bringing in a PR firm whenever necessary (every dollar that schools spend or borrow comes from a democratic process that schools have to engage with seriously in all but the most affluent communities),

* and several other functions.

For a place with 4k people, that's dozens and dozens of admins. There are basically two options: build a wing onto a school, or build a stand-alone building. Most districts go the stand-alone route because 1) districts can often get cheap/free land anyways, and 2) it's a good idea to leave that physical space for schools to grow in case population increases.

FWIW I did the "look up all my past employer's [X type of admin] to engineer/sales/marketing ratios and compare to the school district" thing. I couldn't find anything out a whack. But the resulting raw numbers definitely mean the district needs dedicated space for admin folks.

comment 8y ago · link · parent

> What happened? Undo that.

1. the construction of interstates and airports that routed around old railroad/highway towns.

2. The green revolution. Agriculture became much more efficient, productive, centralized, and automated. See https://en.wikipedia.org/wiki/Agriculture_in_the_United_Stat...

3. Resource extraction running its course.

4. Efficiency improvements in manufacturing and resource extraction.

The amount of rural blight caused by the favority political demon of late (outsourcing of manufacturing) is relatively minor compared to the above items. Especially 1 and 2! (Seriously, if you come across a run-down main street away from any interstate, odds are better than even it used to be a railroad station.)

IF we follow your advice in a way that's meaningful to most rural communities, we'd have to roll back the green revolution, bring back passenger rail, and magically refill coal veins/oil wells.

Other favorite policy quick-fixes as of late (in particular, on-shoring manufacturing) might help a handful of communities but are a teeny, tiny fragment of the story for blighted rural america in general. The ~80% of small towns that never had a factory to begin with can't reasonably blame outsourcing for their woes.

> It should be even easier now, given that a little remote office can be easily connected to the rest of the world.

1. Have you lived in rural America? Especially outside of "technically rural" locations such as university/college towns, good internet connections are sometimes available but usually not. And if not, convincing an ISP to dig is anything but "easy".

2. Most execs have no interest in building a big office in a remote location, both for personal reasons and for legitimate business reasons (proximity to a major airport is important in a lot of businesses).

3. Chicken-and-egg: People very reasonably won't move to most small towns due to lack of quality services (schools, hospitals, and entertainment). But those services can't be established without a critical mass of people moving into town.

comment 8y ago · link · parent

Boston, NYC, and DC are all similarly fucked. Not as bad, but not good...

Part of the problem is that a lot of wage growth is concentrated in areas that are experiencing a housing crunch.

comment 8y ago · link · parent

> With one of the most restrictive IP licensing scheme I've encountered in my professional life. Way to promote innovation indeed.

Different business models are different, and things tend to get ugly when you find a way to print money.

I'll take the "restrictive licensing/patents" model over the Google/Facebook "private sector surveillance" model any day of the week...

> At the risk of sounding sarcastic, I have a very hard time putting SAP and innovation in the same sentence. They're basically the Oracle of Germany.

I think IBM might be a better comparison. Certainly the scale of the past century, both SAP and IBM did plenty of innovation.

comment 8y ago · link · parent

> Mostly we aren't educating young children. Rather, they are the recipients of memes

Guided repetition is a common educational tool.

I guess you can call that a "meme" if you want, but that doesn't make it "not education".

> By contrast, arithmetic is intentionally and exhaustively taught, yet most adults cannot perform it.

In countries where arithmetic is taught, adults are certainly capable of performing basic arithmetic.

I have yet to meet a literate adult who couldn't compute some arbitrary sum or solve a multiplication problem. In fact, the only counter-examples I've discovered are that a lot of people have problems remembering order of operations. But that's more about language/notation than arithmetic -- if you put the parens in, they'll give you the correct answer.

> It has been speculated that if we tried to educate children how to walk and how to talk then they wouldn't succeed at either!

I was taught to talk. Some of the other children in my class were deaf, and even they eventually learned how to talk (albeit not as well as you or me). I assure you, they weren't "meme'ing". There was a lot of rather complex guiding that looks a lot like what I imagine you call "education".

>> But you cannot reset a human being.

> See Tom Scott's face around 3:30

That's... pretty weak evidence. And also a weird definition of "reset". Presumably, he still knows his name is Tom, his mother's phone number, and can write an essay or add numbers together...

comment 8y ago · link · parent

>> usually with a BT keyboard

> is more efficient with a keyboard

...?

comment 8y ago · link · parent

> producer ≠ developer.

I agree; in fact, that was my whole point :)

> Developing on-device will come, in time.

We'll see what Moore and his progenitors think. Until software is the only bottleneck, there will definitely always be lower-tier, cheaper options for the N>50% of the population that doesn't need the compute/batter life/etc. that's necessary for a mobile dev machine. My WAG is that we're still a few generations (as in people generations, not tech generations) from getting there. If we ever get there at all.

comment 8y ago · link · parent

> For whatever it's worth, physicists aren't necessarily up on everything written by the medical community. Take for example, ...

I'm confused. While I definitely believe that you are correct in that assessment, the example you gave doesn't seem relevant.

Mary Tai was an EDD (doctorate of education), not a physicist. and the reply was from the mathematical community, not the medical community.

comment 8y ago · link · parent

1. Skill Building. I.e., the same reason we start teaching them to write letters in kindergarten even though they won't have a practical need for writing until late in elementary school. So that there's a foundation to build on later.

2. Feedback. E.g., there are some good fractions apps that help students understand what it means to "divide" a set of things into a set of groups of things. you can do that on pencil/paper or with other props, but there's no tight feedback loop.

It's unclear whether (2) is strictly a good thing; learning how to validate your own results is also an important skill...

comment 8y ago · link · parent

> It's like you haven't even used it, or actually have no use case to use it for creation.

FWIW iPads and android tablets tend to not work for most software development tasks.The "iPads aren't for producers" mentality might be more of a "iPads aren't for Software producers (and some types of engineers)"

comment 8y ago · link · parent

Conjecture: this is a tech-centric viewpoint.

I have quite a few lawyer and doctor friends who use tablets first (usually with a BT keyboard) and only break out the computer when they need it for some very particular reason.

If you don't need root on a beefy machine and/or Windows-specific software, then a modern tablet with a bluetooth keyboard gives you more than enough compute and all the applications you need to be productive. Often with a better UX.

comment 8y ago · link · parent

I don't think you are contradicting prolikewh0a's point. To rephrase their point in terms of your language, it's difficult to not be (openly) anti-social if you feel like society is anti-you.

Not impossible and not necessarily excusable. Just... difficult.

comment 8y ago · link · parent

And also don't follow up a disclosure with an offer to sell exploits to the highest bidder.

Is selling an exploit to a foreign government even 100% legal? (Serious question; that seems like the sort of thing that could get one in trouble.)

comment 8y ago · link · parent

> does that ostensibly mean the hospital is definitely charging an unreasonable price

Not ostensibly, but actually.

The article goes on to identify some concrete charges that independent auditors felt were ridiculous, including charging $19k for stents that the hospital most likely purchased for about $2K.

> It's just a contractual reason he owes this money?

The hospital just straight up dropped all but $800 of the charges when they got PR heat.

comment 8y ago · link · parent

The article goes on to clarify the problem: the school district has a self-funded insurance plan.

Actionable advice: check if your employer-provided healthcare is a self-funded insurance plan or a fully insured plan. And then look up the relevant consumer protections in your state for that type of plan.

Also, in case you're wondering what the hell all those hospital administrators are dong, the answer is "shaking down your employer and screwing you over":

> In a statement, St. David’s HealthCare defended its handling of Calver’s bill and sought to blame the school district and Aetna for offering such a narrow network.

>“While we did everything right in this particular situation, the structure of the patient’s insurance plan as a narrow network product placed a large portion of the financial responsibility directly on the patient because our hospital was not in-network,” the hospital said.

> WellRithms reviewed Calver’s bill in detail at the request of Kaiser Health News and determined that a reasonable reimbursement would have been $26,985. That’s less than half what Aetna paid.

comment 8y ago · link · parent

> There are tons of people competing for every (faculty) job.

This is not at all the case in Computer Science. Especially permanent positions at CCs and lecturing at universities, there are more roles than people at the moment. Mostly because the worst-case alternative is taking one of the plentifully available 100k-200k industry jobs. Especially in ML.

Generally, "don't get a Ph.D. planning that you'll be a professor" is good advice. CS at the moment is the exception that proves the rule. Especially outside of R1.

comment 8y ago · link · parent

>Still, I remember having to cache initialization state in PHP because it took too long to build it on every request. That's when the model breaks down and you prefer a server with state.

I also had this problem, but fortunately, I could always buy my way out of the problem better hardware and maybe one afternoon of optimization.

I finally shut down the last of my PHP side projects because of pervasive security issues and a dwindling/dead community. I recently reinstalled one of those sites on a DO droplet. Getting the right versions of everything took an entire weekend, but I eventually succeeded. The droplet had way more RAM and a faster CPU than I had access to back in the day.

But holy hell those pages still loaded so slowly. I probably didn't notice at the time because internet connections were so much slower and waiting for an HTTP page with a few images to load was normal. But those load times would be absolutely unacceptable today.

comment 8y ago · link · parent

Global state in general is bad practice well documented across tutorials and books about programming. Article's argument is that PHP avoids global state, but _SESSION hell and "MySQL table as global state" patterns demonstrate that programmers will always find a way to shoot themselves in the foot with global state :)

Also, IME even good PHP programmers suffer from the "MySQL-table-as-global-runtime-state" syndrome. And it's at least as bug-prone as storing global state in an ADT.

comment 8y ago · link · parent

Presumably, this guy's never seen $_SESSION hell: enormous amounts of state stashed in a single super-global associative array that persists between sessions [1].

In addition to $_SESSION hell, lots of custom PHP applications end up with extremely complex and convoluted MySQL tables dedicated to storing what would typically be global application state.

Both of these can lead to difficult-to-debug performance issues, race conditions, and especially security vulnerabilities.

Global state is going to happen, so languages/libraries should provide mechanisms that make it easy to state and enforce strict invariants on reads and writes to global state.

[1] http://php.net/manual/en/reserved.variables.session.php

comment 8y ago · link · parent

I never make any of those assumptions (notice how you have to quote sentence fragmets and even single words to set up your stra man...)

What I assume is that not all humans are perfectly rational individuals whose only goal is profit maximization. And thatwe cannot see peoples souls, so we need laws that err in the side of caution.

I also assume that homo economicus is explicitly disincentivized from reasoning about feedback effects and historical context, which are two things many actual homo sapiens care about (for obvious reasons).

E.g., disregarding feedback loops and the long arc of history, ie in a vaccuum, supporting racialized slavery is perfectly rational for non-enslaved people interested in profit maximization. Cinsider also a completely not raciat loan lender with vested interest in high property values who knows dark skinned people lower property values. Even if the data scientist is perfectly unbiased, bias and hatred in the underlying population can result in data driven, profit motivated decisions that harm marginal groups. The fact that this really actually happened en masse is WHY we have these laws...

Regarding the latter point, you are effectively dismissing all non-consequtialist ethics and associated legal traditions as "gut feelings". I submit that these gut feelings play an important role in human societies made up of irrational people. In fact, they are even important in societies with perfectly rational people who are not super reasoners with perfect forsight.

comment 8y ago · link · parent

This topic has been discussed at length on HN and has been the topic of many flame wars.

If you're genuinely curious for an answer, in the United States it's absolutely the case that you are legally

> obligated to throw out the conclusion

when it comes to many of the things you mentioned (e.g., you can't consider race, or often gender and sexual orientation depending on the state, when you evaluate a loan/employment application).

The reason for those laws is that, historically, overtly and openly racist people used the loan application process to discriminate in housing.

Asking to be able to use any accurate statistical model for any application is an inherently political request, because bad actors in the past have attempted to exclude people based upon skin color. We can't make that discrimination legal whenever someone can dream up a plausible mathematical model justifying an ultimately racial intent.

The real point of my post is that a discussion on this topic devolves into a flame war unless everyone agrees that we can't turn p-hacking into a legally justifiable way of allowing racial discrimination in important social processes like housing loan or employment applications.

comment 8y ago · link · parent

I'm not sure I agree with the article's main warrant for its core argument (i.e., the "but they're wrong" part):

> But there’s an extremely important caveat: Students aren’t fleeing degrees with poor job prospects. They’re fleeing humanities and related fields specifically because they think they have poor job prospects. If the whole story were a market response to student debt and the Great Recession, students would have read the 2011 census report numbering psychology and communications among the fields with the lowest median earnings and fled from them.

IME Psychology and Communications attract students who are looking for an easy degree. Humanities majors are typically more rigorous than the Psych or Comm majors.

Psych/Comm attracts a lot of students who hate reading/writing and math equally.

> Or they would have noticed that biology majors make less than the average college graduate, and favored the physical sciences.

Again, IME, most of those bio majors are planning on med school, nursing, grad school, or teaching.

comment 8y ago · link · parent

> So they have an actual class dedicated to teaching you about this, and that class fails to enumerate all of your options?

Two thoughts: (1) such courses are often opt-in and don't necessarily have tons of free time for off-topic discussions; and (2) many schools with such courses do in fact have robust CC-tracked options that all-honors students are not exposed to.

1. A class like this was offered by my high school (years and years ago...) I didn't take it. However, from what I remember talking with friends, our school's course was explicitly for people who were planning on going to college. So it'd be kind of weird to discuss alternatives. That would be like mentioning in a Biology course that Physics or English are also legitimate fields of study.

You'd think such a course would be wishy-washy and have plenty of time for discussing alternatives, but actually it was quite a serious thing.. Most of the students who took the course thought they were on-track for ivy league applications and then got a dose of reality in the form of a below-average standardized test score. They had a couple months to learn how to pattern-match and flash-card their way into the 90th percentile starting from the 50th percentile. I distinctly remember more than one person dropping AP Calc so they could focus on the college prep course...

(In other news, grade inflation and subjective grading are harmful because they are sparse & deceptive reward signals!)

2. Community college was very much not looked down upon; in fact, we had a robust partnership with the regional CC system and many students would spend junior and senior years splitting their week between HS and CC.

However, if you were honors/AP/college-tracked, then you wouldn't really know that those students even existed unless you socialized with those students. I only knew about these programs because of my friend group.

At a recent reunion, I talked with some guys who I recognized from my AP courses. They were complaining that our high school didn't offer non-college-tracked options. I mentioned the various programs my friends had made use of and they were shocked and swore up and down that those programs didn't exist when we were in school.

I wonder if either of these two things is true for OP. IME it's fairly rare for an entire high school -- let alone an entire school district -- to not have robust options for CC-tracked students. Maybe in super-affluent areas?

> Sounds like my sex-ed class in Georgia which never even discussed birth control.

Yeah... state law. Same for me. I had a teacher who risked her job to give us good info. If that was the case for anyone else reading this, consider looking up that teacher and sending a gift card or something their way. Doing so is a huge personal and professional risk.

comment 8y ago · link · parent

8.5% of private non-profit students default, and 13.5% of public non-profit students default.

Those are both pretty high numbers, and those are just the defaults; i.e., the worst-case scenario. It's not counting the tens of thousands of people who defer housing, defer saving for retirement, defer saving for their own children's education, or end up on a perpetual treadmill of loan payments that will destroy their ability to retire.

We are heading is the worst possible direction wrt regulation of private for-profit institutions; the available data incontrovertibly demonstrates they should be subject to more scrutiny, not less. But that's definitely not the whole story.

1
151617
50