skysight-inc/HackerNews huggingface dataset:
> So with JavaScript you've got arrow functions, the method shorthand definition syntax, the spread operator, destructuring assignments, all functional Array methods and async functions.

This confuses me quite a bit, there are nuanced differences between these ideas in the two languages but at the surface these are things that very much exist in both languages

arrow functions:

(x,y) => { x + y }

vs.

lambda x,y: x + y

method shorthand definition:

MyObj = {
foo(x,y) { return x + y }
bar(x,y) { return x * y }
}

vs.

class MyObj:
foo(self, x, y): return x + y
bar(self, x, y): return x * y

spread operator:

function add(x,y) {
return x + y
}
add(...[1,2])

vs.

def add(x, y):
x + y
add(*[1,2])

destructuring:

[a, b, ...rest] = [10, 20, 30, 40, 50];

vs.

a, b, *rest = [10, 20, 30, 40, 50]

functional array methods:

forEach(["Wampeter", "Foma", "Granfalloon"], print);

vs.

list(map(print, ["Wampeter", "Foma", "Granfalloon"]))

async methods:

function resolveAfter2Seconds(x) {
return new Promise(resolve => {
setTimeout(() => {
resolve(x);
}, 2000);
});
}

async function add1(x) {
var a = resolveAfter2Seconds(20);
var b = resolveAfter2Seconds(30);
return x + await a + await b;
}

add1(10).then(v => {
console.log(v); // prints 60 after 2 seconds.
});

vs.

async def resolve_after_2_seconds(x):
await asyncio.sleep(2)
return x

async def add1(x):
a = resolve_after_2_seconds(20)
b = resolve_after_2_seconds(30)
return x + await a + await b

loop = asyncio.get_event_loop()
loop.run_until_complete(add1(10))

There's a lot of fun differences between the origins of these features and how they work but the sentence to me doesn't quite to the idea of "Leaving Python for JavaScript" justice
Depends. If it's a new project, choose the oldest thing that's still widely supported. Often times, this will be something like straight Java or PHP. It's not trendy at all, but it will run under 99% of system configs out there. Also, be sure to document your work as much as possible and give that documentation to whomever you're turning your work over to.

If you're taking over another project, make sure the client has docs before you take it on. Otherwise, there's a good chance that you won't be able to deliver what they want. Best to avoid those customers initially (if you can).
How does "FLOP per Joule" compare between such devices and an average desktop PC?
Paper copy of the journal. Authors go absolutely apoplectic if they don't get the paper copy mailed to them.

[Source: Pillow talk]
Wow, what a small world. I went to high school with the daughters in the '90s. Both of them were nice and I'm happy for their family's success.
Not only this, but I'm fairly sure that they send itemized bill to not only where you live, but to former addresses also. (To make sure you get you bill of course)

If you dont live in a place for 5 years, someone can open your bill and find out what you are getting billed for. (HIV tests and all)
I do. Takes some getting used to but GIMP is fantastic for graphics work when your employer doesn't want to pay for Adobe suite or you're on Linux
Ask HN: Feeling like I don't belong to a purely tech role anymore
I read a lot of burnout stories here.

Many people seem to become sick of their life as developers.

I am 34 and thinking about what I should do in my life to find my path and become happier. I am quite tired of having to dig deep into technical details about how things work.

If I can't remember all edge cases of some technology I use, I feel like I am dumb and my colleagues are smarter and more successful than me being able to get all these things from their heads instantly just like from google. But the thing is - I don't give a fuck about all these small things that, as I think, don't actually get me closer to my actual, probably subconscious yet, values.

From the other side, they say, that I clearly express my understanding of things at general, and by sharing my thoughts I give them a better vision of a project or business/life processes.

I am not interested anymore in new versions and capabilities of languages and technologies I have to use for work. Though, I like to program for myself and to test some business ideas. But, I think, I can achieve more by learning new things like communicating with people, business stuff.

I feel like the technology is not as important as communication and relations between people to achieve my and others' goals.

Is it something that is related to my age? I think I have to, like be reborn with a new mind, new goals as I see I am at the end of my current road which looked acceptable and desired before this moment.

Did any of you felt like this, being able to turn into a new self, with new goals, how long didi it take and how did it turn for you in the end?
Is the 6 months grace period (not changing employer) after getting a greencard a real thing?
DreamHost, web host of controversial sites, hit by DDoS attack
I know that we should be funding that stuff but unfortunately trying to go through tradtional grant-based funding routes is going to be much too slow; what you need to do is start private companies on your own and rapidly grow their value and use that as a starting point for global geo-engineering solutions to global warming
Also did this once. I was just interested to help them a little so in exchange I could see a new field and possibly get some experience there. Crazy thing was that at some point they were asking me to work for them on a regular base.

The job was really nice for the first 3-6 months after I got hired but it sucked later on. YMMV but I decided afterwards to find for jobs myself and not let the job find me. Making sure I don't work for needy people because they are prone to behave badly at some point.
Okay but now how will I confirm my bias?!
I have Kaiser too and I stayed an extra day (vs average) after my unplanned C-section because of pain management issues, and nobody bothered me about it despite the floor being full. Only $500 and that included a salmon and steak and apple cider in champagne flutes celebration dinner one night for me and my partner. Their prenatal and postpartum support is top notch too, including free lactation consultant visits and a hospital grade pump rental (would cost me $1k+ at this point in fees otherwise) to support breastfeeding for as long as I want.

Compare to one of my friends with a bog-standard vaginal birth, was pressured to leave as soon as possible, partner kept getting kicked out of the room, and she paid $7k and counting while still getting random claims. LC visits also not covered despite wanting to breastfeed desperately, and she gave up due to issues that could have been resolved.

It's not even just the baby stuff that is like this - my dad has their medicare advantage plan and he LOVES it and I love the integrated care since it's so easy for his specialists to talk to each other without me having to be the messenger.

Kaiser gets a bad rap a lot of times, sometimes for good reason, but in the average case, they must be doing something okay that they don't fight me like Anthem used to do ALL THE TIME (plus remember when maternity coverage cost like $500 extra _per month_ on the individual market?)
Since an MTR can take an indefinite time to get processed, I wonder what's the benefit of going this route vs refiling an O-1?
I would say so. I can do the graphics for my projects without having to requisition a copy of PS
I was just able to download a zip attachment sent to me in 2007. It could have something to do with executables inside the zip file in your case.
I think that's more of a compiler problem then. Also what's missing is the unwrap syntax to easily transform between nullable and non-null references. What you really want is to operate on a non-null version of that reference if it's proven to be non-null, this is really the Achilles heel of this particular implementation. You're still checking for null all over the place, it's just better checked.

// Unholy mix of Swift and C# syntax ahead!
if var unwrappedString = wrappedString && unwrappedString != "" {
unwrappedString.Length();
}

Where the `if var unwrappedString = wrappedString` part would unwrap the var and return a `bool` at the same time which is `true` if it wasn't `nil`.

Swift's nil-checking / unwrapping syntax is really short and with some clever usage of `map` or `flatMap` you can still have one-liners albeit a bit more verbose - but much more secure.

Example of using map:

let myTitle = myObject?.title.map { "Item \($0)" } ?? "No title"

This code can't even theoretically crash anymore and doesn't force unwrapping with `!` as a traditional approach would do:

let myTitle = myObject?.title != nil ? "Item \(myObject!.title!)" : "No title"
These aren't at all the same thing as the current story. The 1906 expedition took three years. The St. Roch took two years.

i.e. these were major expeditions of the "visit the South Pole" sort, not commercial ventures that took a couple weeks.
Another is that a sustainable civilization doesn't evolve to the point of being visible.
I've used SIP, which wasn't too painful. The code you write to do the interfacing looks quite like the C++ definitions. I mostly used it as was an application which used PyQt. It probably is harder to use as it's not the most popular option.
Android has (with the Play Store):

http://www.androidauthority.com/how-to-get-refund-apps-googl...
I've been irked by this issue for quite some time.

My temporary conclusion is that the MVC pattern and defining constraints in a text-based programming language (as opposed to the visual drag-n-drop languages commonly used in software generation systems) is the best abstraction we can come up with without making the framework so rigid it suffers from leaky abstractions and hence comes apart rapidly.

It might seem like mostly clerical work and it isn't exactly accessible to non-programmers but the tools and frameworks commonly used for creating CRUD apps already abstract away a lot of the plumbing code that used to be necessary to do this.

Although on the surface most CRUD apps at least conceptually look exactly the same the devil often is in the details: Legacy databases, weird interfaces and data formats, data has to be imported from Excel, you name it.

Regenerating / modifying an app upon model changes can become particularly arduous depending on how frequently those changes occur.

If your data model conforms to some constraints though creating a run-of-the-mill CRUD app with tools like Spring Boot, Swagger and a generic, declarative UI is both fairly easy and robust.

As soon as the UI has to accommodate more specific use cases or you want to provide a more focused, less one-size-fits-all UX a mostly automatically generated UI however will fall apart rather quickly again.

By the way, at its core Uber is a CRUD app, too, isn't? Perhaps we don't need a generalised CRUD app generator but rather very specific app generators like this one.
Removing LOC as a result of better conceptualization/design and better factoring is completely different than reducing legibility by, say, mashing lines together. In general, other things being equal, my late drafts are usually less verbose than early drafts, and also reflect a deeper understanding of the problem.

So, I think better design is the goal, and fewer LOC is a natural side effect. I personally find that essential for evolving a large project. Some managers are ok with ever-increasing tech debt, which I associate with increasing job dissatisfaction.
We're really torturing the metaphor with app updates as coffee refills, buuuuuut....

Many of us are in the software business. So we know how hard the stuff can be. But the customer doesn't, and shouldn't care. I think it's reasonable for the customer to expect updates forever. Particularly because so often, we put out a product that has bugs and problems in it. The customer is sometimes already being fairly accepting being willing to pay for a product that has problems that are yet to be fixed.

The app author also has the ability to release a new app if the features warrant. So no one is forcing the publisher to give new features for free.
There's a big difference in obtaining someone's hair vs people paying to give you their dna.
From what I've read about this elsewhere, sites offering mainly or predominantly (what some may take as) pornographic content are much more likely to have credit card charges disputed and refunded. Husband buys porn, wife notices the charge, husbands denies it was him and demands refund. Minor buys porn with parent's account, gets caught, denies he did it, parent disputes charge. The payment processor ends up eating the disputed charges, to the point where it is no longer profitable to do business with the sites.

People are much less likely to deny that they opened a Netflix subscription.
Reimplementation of Racket to run on top of Chez Scheme
Why not hook up thunderbird via IMAP and see if you can get it that way.
I don't believe that government is seriously hindered by free speech, but rather by it's lack of profit-incentive and by the perverse incentives of our current implementation of democracy. We should expand the free speech rights, and other basic human rights, to cover all people in all situations.

Actually, that profit incentive thing is debatable, I take that back. A for-profit government could be quite horrifying.
> And then it would be my opinion that an account shouldn't get terminated except due to actual (excessive?) fraud.

Except VISA won't tolerant a fraud rate that requires 300% fees to cover costs.
Yeah, I bet this is source #1
When you say in goid faith, you mean obtained for purpose of living in usa right? Contrary to obtaining it for some sort of terrorist/troublemaking reasons? Is that what good faith means?
Hi Peter,

I'll finish my PhD in ECE around May 2018 and look for employment in the Bay Area. Do you think I should apply for NIW (I have over 300 citations and 10+ peer reviewed publications) or go through the process with H1B?

My wife and our son are on F2 visa right now. My wife is a computer engineer and was not allowed to work on F2 visa during my PhD. Can she work as an H1B dependent? Do you think it is worth to spend $10K to obtain NIW?
Now try a multi-line one in Python.
http://theoatmeal.com/blog/apps
Thanks, zdnet, for the clickbait headline /s

It's not like "controversial" sites aren't hosted elsewhere .. or that DreamHost is the dominant host of said "controversial" sites
The stated motivation (which you are free to believe or not) is that the site was used to organize a violent protest, and that they are not interested in the users who were merely exercising their right to free speech or assembly.
This is the first I've heard of Affinity Photo. The feature list looks very complete, for what I use on a regular basis. Are you a long-time Photoshop user? How does it compare?
If that's true, then my understanding is that 4 degrees of warming is inevitable, and 5 degrees is likely. 6 degrees probably isn't ruled out.
Get yourself a Nintendo 3DS and you'll be a lot happier. I quit "gaming" on the iPhone years ago because of all this microtransaction garbage.
Guide to choosing the right IoT button
Hey- that's a great point, and I'm glad you brought it up. Our previous company actually sold water data to governments so we've been working quite closely with city municipal corporations. The problem is that urbanization is happening much faster than cities can keep up. Stats put it at 200M people added to cities in the next 10 years. What city municipalities are doing is actually hiring private companies to service the extra demand. It's still part of "the government" but India is trending towards more public-private partnerships. We actually WANT the government to start to sell water on this marketplace. We would have already laid down the IoT data collection infrastructure to help them keep their loss rates low and ensure the right people get good quality water (which is one of the biggest problems they have today). We see this as the next eventual step for governments not just in India, but in many emerging markets.
FB et al are a threat to democracy at this stage. A huge data source for Govts Exploitation. (incl our own) They have too much power.

Avoid.
Why Agile project management is harmful
Congratulation, and best wishes :)

When things settle down, I would love to read an article from you about what it's like to launch a new programming language by the end of the 2010s.

I'm under the impression that adoption is going way faster than in previous decade, when php, java and C/C++ were kings hard to revoke. But there's still a gap of few years between initial announcement of a language and it being used in the wild - which is quite understandable, because people want to be sure the language will stick around before writing production code with it.

I would love to know what you do during those years, how you grow your language, how you simply manage to use it at work, or for your own projects. If you could write such article, that would be awesome :)
Bank of baroda m passbook download details
I'm sorry, of course he didn't use those words exactly you're correct. There's no need to be so pedantic though, clearly that's the concept the people he is responding to are talking about.

A says that this should be considered "free speech" (not in words but in intention)
B says that Paypal isn't a government entity.
C says that shouldn't matter.

I'm responding to C, so I say "When you say Free Speech" as a rhetorical technique to recenter our argument on the thing actually being discussed. I apologize if there was confusion or it seemed I was being clever or something.
Are you serious?

There have been threats (or "wish-deaths") made against our president's life. By members of the media, congress, and plenty more. Even that most extreme act, in my view, has received only a tepid response. Many are vocal in their support of it. And shows still go on with the president's likeness being shot, riots still continue against the president and all of his supporters, and go to nearly any major media outlet and you'll find the usual slant of derision, with all of the behavior that follows. Commentators even stoop so low as to use the latest narrative propped up by major media players to patronize the president's own daughter and tell her to "sit shiva" for her father.

All of this continues today, and it will still continue. From everything that I've seen of the president's behavior and heard first-hand from his speeches, he will do very little about the words that the media uses to describe him and how they frame him. He will take those punches, and it's obvious he's been willing to take even more.

This article is only meant to stoke the flames of the "never-Trumpers" once more. To inject more fear into the population and convince them that they're the victims, that they're being attacked. A strategy that is played time and time again and one that is destroying our cohesion ("You attack one of "us", you attack all of "us"." Where "us" is usually decided by some superficial property.)

Look at the language of the lawyers, as highlighted by the Washington Post: “This action will cause Web users to worry that the government will be monitoring every site they visit.” “This is a case about a website that is engaged in political speech.”

Please. "Speech", or planning riots? This is a court case seeking some justice for riots that "left six police officers injured and caused tens of thousands of dollars in damage when downtown D.C. businesses were vandalized just blocks from where President Trump and his family paraded following the swearing-in ceremony." This is not an attack on innocent Americans who had nothing to do with those peaceful riots.

Don't fall for the trap.
The notes OP linked to indicate that there are more fixes included in this version. It is likely what importing a .doc in open office was 10 years ago. It proably works 99% of the time but that 1% will be right before an important deadline or something.
In particular, I already have a job. Finding and applying for a job is a bunch of effort that I don't have to do. Is my current job bad enough that I'm ready to move? Would a new job be enough better to be worth the effort?
You're thinking of real crimes, but he is talking about actions which are perfectly legal for a citizen but illegal for an illegal immigrant, like working, using fake papers, driving without a permit, depositing money in someone else's name, etc.

If you're already doing all these things, what's illegal voting added to it.
You are stereotyping, too, even though you are supposed to be morally superior. Doesn't add up at all. You do the exact things you are complaining about, only towards different groups of people, and that's why I can't take the left seriously. Too many hypocrites.
Co-author of now-retracted paper on shooter video games may have PhD revoked
I have used GIMP and only GIMP for all my raster work for the last 12 years. Including photos for several cases of book publication. Nothing all that fancy. Cleaning, color corrections, repair, etc. I have yet to encounter a job it isn't up to.
Since I'm one of those people, let me defend this position.

Cloudflare didn't kick Daily Stormer off until DS started publicly claiming that the reason CF was continuing to serve them was that CF secretly agreed with DS's politics [0]. That was a lie and might even be cause for a libel suit.

The analogy would be if the gay couple secured the agreement of the baker to bake them a wedding cake, then started announcing publicly that the reason the baker was doing that was because the baker was secretly gay. I don't think anyone would have a problem, at that point, with the baker telling them to take their business elsewhere.

Being a member of an unpopular group doesn't give you carte blanche to abuse the goodwill of the private businesses that would otherwise be required to serve you.

The actions of GoDaddy and Google in this case are less defensible, and indeed, I don't defend them. (If I understand correctly, GoDaddy kicked DS off their DNS service, so they went to Google, who not only refused to serve their domain but put it on hold, so they can't even use it elsewhere. I'm not aware that DS provoked either company they way they did Cloudflare.)

[0] https://blog.cloudflare.com/why-we-terminated-daily-stormer/
You can't expect a non-proprietary tool to handle a proprietary file format 100% correctly. People who have no need for file formats that only work with Adobe software can use GIMP just fine.
That's right, in the H-1B context, there needs to be an employer-employee relationship between the petitioning company and the sponsored worker and this (in the eyes of USCIS) ultimately means the ability of the petitioning company to fire the sponsored worker and otherwise control his or her employment.
> U.S. universities take about half of research grants as fixed overhead, sapping up funding before it reaches a scientist's hands. In China, overhead is closer to 10%, allowing more staff hiring and equipment purchases, Li said

US university administrators are fat. Start cutting.
What amount of options should I expect when joining a startup?
What amount of options should I expect to receive in a offer from a startup company as a junior / mid / senior level software developer?

I assume this is a topic that is dependent on each individual company and their current situation, but is there a general range or expectation for these different career levels?
humans have already caused a mass extinction. so it would be like....double secret mass extinction.
Did ... how could ... I think I need to lie down.