skysight-inc/HackerNews huggingface dataset:
I am suspicious of names containing "and".

I agree about clarity over everything else, but then why even make a function if all it does is calling 2 functions in sequence, and you can't name it on higher level of abstraction?

In this case wouldn't

[x+1 for x in input_list.reversed()]

be even clearer?

True, functions allow you to change code in one place and affect many places (so they prevent "forgot to update one place" errors), but when function is named from its implementation instead of its purpose - it doesn't make much sense to change implementation anyway. The absolute worst thing is

def reverseListAndAddOneToEachElement(input_list):
#requirements changed
return [x+2 for x in input_list.reversed()]

So either I repeat myself by copy-pasting code, or I repeat myself by saying the same thing in implementation and in the name. It's the hardest problem in naming for me.
I was always too ashamed to admit I use a thesaurus heavily while writing code. Glad I'm not alone.
Joannesun
I am looking for e-commerce site developer and designer.
Please provide your email if you are interested.
Thank you
Joanne
How does this sound?

* A treaty written in absolute secrecy (until leaked) largely written by lobbyists solely representing their employers - multinational corporations.

* The text of that treaty creates new, special, supranational courts that gives these multinational corporations the power to sue governments for enacting laws to protect their citizens.

Conspiratorial? Or not?
This sort of news really scare me. Your brain defines who you are and what capabilities you have, and damaging it can completely change you. The brain is very responsible for a big part of your success and losing it can have a big impact in your life.
The Web Is Not a Post-Racial Utopia
Fund Peer-To-Peer Creation Platform
But which is faster?
It's a very important message. We, humans, are great at aggregating visual patterns. So, most of the time, it makes sense to show raw data (and we can make our own conclusions/observations) rather than aggregate it to much (there is no possibility to go the other way).
Interesting study, but as the authors concede, one can't quite rule out that the causal flow is in the opposite direction to that which they propose - that is, people with lower cognitive ability are more likely to end up with infections, and people with much lower cognitive ability are more likely to end up with severe infections.

I mean, consider people with dementia, sat in their own faeces (at the severely diminished/severe infection end of the scale), or people with lower intellect lower on the socio-economic scale engaging with jobs where they're more likely to end up with infections - construction, handling hazardous waste, etc. etc.
I agree with everything except abbreviations, but to be honest, I think my worst habit it just trying to use words with the same number of characters for different variables so they align well with monospace font.

e.g.

int num = 42;
int acc = 0;

instead of;

int n = 42;
int acc = 0;

and it gets worse when things get complicated;

vector<int> dist; // stands for distances
vector<int> excs; // stands for excesses

Does anyone else have this problem?
>homes worth $200 - 400k, for Chinese who have a $7k GDP

If wages keep growing they could catch up to the house prices somewhat.
Cognitive decline happens whether you like it or not, I'm afraid to say.

I've hit my early 30s and I've started noticing that I'm far more prone to inappropriately replaced words, can't memorise long strings of digits as well as I used to be able to, and so-forth.
Good to see he is back on his feet, but most certainly I am really amazed that he was so irresponsible about his situation. Is this how most Americans operate?
The capitalist status quo is all about "you eat what you kill," true. But in America, a huge majority is ostensibly Christian, especially in politics. And Jesus is all about grace, that you literally cannot earn the living truth, the light, the peace, the spirit, because they are given in grace. I wonder why it's such a radical suggestion to take that premise into material aspects of life.
I am sure this fills a need.
> This is why I always say that the first thing your business should pay for is an accountant.

For my company (which we started up only 5 months ago), we hired an accountant in the first week. He saved us 3x his 1 year cost in the first 5 minutes. How I wish we had hired him before we started the business. He could have saved us about the same again.

If you are ever even thinking of starting a company, follow this advice. The accountant is the very first person I would talk to. It's amazing the pitfalls you can get into even when you are being relatively careful (as we were).
I don't believe a word of it either...
Are they counting the vacant half-built chawls in neighborhoods like Chinchpokli or the dockyards? I'd never seen so many half-completed and abandoned housing projects until I moved to Mumbai.
int n = 42;
int acc = 0;

Fixed

Edit: Install http://wbond.net/sublime_packages/alignment and add this key binding `{ "keys": ["ctrl+shift+a"], "command": "alignment" }`.
That naming and technique are anti patterns. As the whole java land.
Was just looking at a review for a new game, Stormfinch, which uses this engine:

https://www.youtube.com/watch?v=Q2sd2FNPTBs

It's clearly a little clunkier than monochrome or simple colour attribute shooters, but still pretty competent.
The Legal Industry Is About to Get Ubered Hard
Even if a new phone is announced it won’t be out until September so if you need a new phone now just get one of the current ones.
Do you have an ad blocker?
UI design – 10 steps for great user interfaces Pt7-Font families
Spectrum clock rate covers a multitude of ills.
> > foreign

> That's the keyword there.

Ah, but they don't know if it's a foreigner until they look at it. So might as well collect it all and figure out which ones are the foreign ones later. After all, the data's not actually "collected" until an analyst looks at it. It's a sort of Heisenberg-data - only exists when you look at it. While it's sitting in the NSA data centre, it's entirely harmless!
You missed one: Your clock is not monotonically increasing at all times. That one doesn't have to happen often to totally screw you up when it matters. Monotonicity is a super important property of a clock.
The article describes events in Idaho, which is one of only 7 states (Alaska, Idaho, Nevada, New Hampshire, North & South Dakota, and Vermont) that distributes food stamps on the 1st of the month.

In the other 43 states, different people will have different issuance dates depending on last name/SSN/case number.

On the one hand, using the same day for eyeryone gives stores the opportunity to make sure they are fully-stocked before the "surge"; on the other, and from personal experience, having the days spread out usually means you don't have to choose between lining up at midnight, or waiting a few days for the shelves to be restocked.
I try to pick words with different lengths. They're more visually distinguishable.
It looks nice. I suggest that all http requests to redirect to https (also enabling HSTS and preload it into browsers HSTS list), it makes admins easier to suggest the software for their users. On the other hand I wouldn't suggest a closed source software for ssh for my users, but that's just me. However it's hard to suggest putty for Windows users either since it's virtually impossible to download it securely [1]. I think the most secure suggestion is cygwin+openssh also it's the most inconvenient.

[1] https://noncombatant.org/2014/03/03/downloading-software-saf...
yeah - the bottom left of the 'a' and the top left of the 'g' look to bulge a bit for me. I can't decide if it's a bit of an optical illusion though.
I prefer doing online payments with a credit card for the shear possibility of disputing the payment.
Here is where "first write good code" applies, at the design level. This function is begging to be two separate, composable functions that each only do one thing.

reverse(addToEach(input_list, 1))
PDF version: http://delivery.acm.org/10.1145/2670000/2663341/p48-preibusc...
Webix 2.4: Portlet, Range Slider and Other UI Enhancements
yeah, its called system science
> Big loans are scary for us. I understand how important they are for developing an economy, but all around me most people would hardly get a loan to buy a car. Even if the economy is poor, people are much more free because they don't take insane debts.

Great words. I really understand what you say, I've lived for some years in a post-soviet country and I never felt so free. There are other flavours of freedom besides the one offered in America. It's so confusing for me that he didn't have any family/friends that could help him out offering a temporary shelter. Is this normal in America?

If I had to take a lesson from his words it would be: focus in relationships. All the rest is not important.
When a long name only reflects what the code technically does, then I don't think it adds much above just writing

(map inc (reverse input_list))

given that the code is shorter than the name. It would be different if the function would be reusable, but in my experience that is rarely the case with such technical names.

There would be added benefit to abstracting it into a separate method when the method name would explain what the
code does functionally. Why does it need to be reverse and have one added to each element? Is the input somehow 'wrong' and needs to be corrected? Are we adapting the input list so it can be handled by some reusable code? Is there a previous algorithmic step whose output needs to be slightly tweaked before it can be handled by the next step? In each of these cases, I think there are different names or options better than the technical one.
I can see a fairly simple extension assuming a friend-of-a-friend style forwarding. It would be that much slower than one-on-one and participants have to remain online for the chat not to experience splits.

As soon as the thing needs to work with participants joining/leaving at will you'd need some kind of supernode or hidden server and that's a vulnerability.
In this case it's a symptom of poor cohesion and separation of concerns. If you find you're having to give very long names for things, it's worth looking for a way to decompose it into separate things that each do one simple thing. Then more than likely writing the code that composes the separate objects with the right operations will be the perfect substitute for the long name, and it will also be easier to maintain, since you won't have to update both the variable name and the logic that uses it; rewriting the actual expression or logic where it is used will take care of both tasks in one. This is what I usually take from the principle of letting the code itself be your documentation, where reasonable.
After Senate vote NSA prepares to pretend to shut down phone tracking program
It's based on GNU GPL software and MobaXTerm is under GPL v3. I found the license link on the bottom (http://mobaxterm.mobatek.net/license.html) and the source files (http://download.mobatek.net/sources/?C=M;O=D). "To compile the program, you will need Borland Delphi 7 Professional Edition with the Jedi VCL library, AlphaControls components, SecureBlackbox components and Overbyte ICS components." (from the readme in mobaxterm-7.7-src.tar.bz2)
How is this useful discussion?
Dream Walker: Alter Ego 2 as well
https://www.youtube.com/watch?v=VYufMwAxOl4
Both wars are on abstract ideas, and are pretty unwinnable wars.
Show HN: Pure css carousel
It was my understanding that Smart Cities were a new and exciting concept. But yeah, systems science is going to play an important role.
Which, when you add a third variable "stuff", will require you to go back and add a space for both n and acc, pollutting both the diffs themselves (making reviews harder) and the git-blame (making pinpointing bugs harder).
Nice write-up. But there's not a single slide about usability and how it affects naming.

If your library exposes 'getCurrentRuntimeContext' which is going to be used in every other line of user's code, name it 'ctx'.

It's ambiguous, but it saves the user 3 seconds per 2 lines of code.

As for the readability, when the reader encounteres 'ctx' for the third time (at line 6 of the source file) they will already know what it is supposed to mean by heart.
In the absence of other "cool" new "paradigm disrupting" technologies, docker takes the stage.

Never forget, technology is merely a tool, it is always culture, marketing and sociology which has the upper hand in defnining what works and doesnt. Whats in and whats out.
Communicating XML concisely using Swift
EU dropped plans for safer pesticides because of TTIP and pressure from US
That's actually right against the style guideline of many projects which tell you explicitly not to do this but to simply put the = sign and value right after the variable name and be done with it. Lining them up serves no purpose and does not in fact make the code easier to read.
We need to expend effort to keep names short, while it is easy to let them become long. 'Keep it short' is shorthand for 'do not forget to expend effort towards keeping names from becoming long'. It's easy to unthinkingly come up with 'company_people'. It takes effort to reduce it to 'employees'.

It's actually not just 'short', but 'short and simple'.
I think you tend to develop naming habits after the environment you work with. C programmers follow Unix conventions, Java programmers create AbstractObjectFactoryFactory classes, and so on. It just feels natural.
And try to pick words that are lexicographically distant from each other to minimize the chance of single letter typos changing the meaning of the code.
PMs at Microsoft by definition do not build anything. Nor do they really "design" anything. You can't design a piece of software unless you're an engineer. At best, they will give you some user scenarios to handle, and half of those will be complete bullshit that customers don't actually need and never actually asked for (this, my friends, is how you got Metro UX in Windows; for the record, I like it _as a phone UI_).

If you want to build and design stuff, you need to be an engineer, not a bureaucrat. That's what engineers do.

Here's what a typical PM does at Microsoft: https://www.youtube.com/watch?v=nV7u1VBhWCE
I can definitely relate to this comment. The synaptic composition of your brain is essentially your identity, your merits and demerits. I'm definitely a hypochondriac when it comes to brain health, given how high the stakes are. It's crazy that even a minor concussion can cause lasting brain damage: http://www.npr.org/2013/03/15/174409382/can-just-one-concuss...
Of course, if the meaning makes no sense it shouldn't be long.

But if the longer name provide meaning, shouldn't we use it if it's a complex thing and the words bring value?
Not all debit cards in India can be used for things like setting up a Verified PayPal account, or an iOS developer membership or a recurring payment with a hosting provider. Maybe it's possible now, but it wasn't for me when I tried it.
Time and time correction in Erlang
An important rule is missing here: variables should be named with their scope in mind. So if a variable is longer lived and has larger scope its name should be that much more descriptive because when you're looking at it the only thing that will tie the value of the variable to the context within which it can be used is its name.

So 'i' is fine for a loop control variable with a scope of five lines but totally inadequate for something expressing a larger and longer lived concept.

Ditto for function names and parameters to functions, if the function and the parameters are named properly understanding the function is trivial.

So if you write a chunk of code that exports one or more functions that is where your effort should go, that's the public interface. The reduced scope of the rest of the code should make any naming issues much more limited.

This is also why it is good to assign one person on a team to defining the interfaces between the code. That way you get consistency in naming which is a great thing to have in a codebase.

Anecdote time:

I once worked for a game programming company. One of the programmers there would name all his functions and variables for fruit and vegetables. It was his way of ensuring job security. Guess who got saddled with untangling the salad when he left the company.

cucumber(cherry, strawberry, orange);

Good luck with that...
I'm not so sure that is good advice, and I come from C programming so we love to do that.

With autocompletion in most code editors saving the user typing time is not a valid argument anymore, and I would rather prefer comprehensible if slightly more verbose code than accronyms everywhere.

What is obviously ctx -> getCurrentRuntimeContext for you is completely foreign to the next guy. And sometimes you don't spend a large amount of time in a specific part of a code base, such as when debugging and then figuring out what ctx means is a real PITA.
I am sure this fills a need. Sent from my smartphone.
I always ask myself when does a startup stop being called like that and become a company or enteprise. Some of the "startups" on this list are clearly pretty grown up and calling them like that seems a bit odd to me.

This, or they keep calling themselves startups because it's cool and you can pay your employees a lot less.
There is a plugin in sublime text that I just select the lines and hit ctrl+shift+a and alignes everything in one hit.
Deep Learning Godfather says machines learn like toddlers
To be honest it actually makes code cleaner and therefore easier to read. It's like design have you heard about grid? this is the same thing. Your eyes have to flow the lines. If not everything seems a mess.
How expensive would it be to add a very accurate hardware clock to a CPU instead of relying on the OS to keep time based on interrupts?
Write is said to launch its own cloud and a dark theme
Imagine Ritchie & Thompson would have taken the above advice and named ++ operator "increment(x)".

That would suck in a big way.
首页动画效果，第一次写，大家多多关照，有需要的可以下载看看，记得给一颗星星鼓励一下，https://github.com/baishiyun/BSYFancybox
Show HN: Spanish election results – D3 newsapp
A liberal democratic Western society has law. That is what is missing from you and your friends out at the bar. Just by being born into society, you have to agree to be governed by that explicit system of law. This, now, includes income taxes, policing, etc.

To your example, specifically, if you and your friends had an explicit system of law governing your night on the town, then yes, they could agree that you should pay the bill and collect the money by force.
How's Java 8 adoption going? (Vote)
I like it. It just looks "right" somehow, and it's more optically dense, so it'll look good on all kinds of screens as well. Picking Helvetica Neue was a bit of a brain fart on Jony's part.
BannerScrollview，自动轮播，大家多多关照，有需要的可以下载看看，记得给一颗星星鼓励一下https://github.com/baishiyun/BSYBannerScrollview
(I agree with most of this article, the author should take care not to fall into the same trap as the "culinary Luddites" he describes, stating something they merely believe to be the case, that isn't actually based in fact)

> prompting him to wonder whether they would really like things the way they naturally used to be. Natural was unreliable. Fresh fish began to stink. Fresh milk soured, eggs went rotten.

Eggs don't work that way. They don't go rotten unless they're damaged. An egg is like a really big cell, and it's sterile on the inside.

US eggs are washed clean, to protect against Salmonella--which lives in intestines and spreads through faecal matter, therefore occurs strictly on the outside of an egg shell, and washing it probably works well against that. Except it also removes/damages a protective layer (cuticle) in the shell, allowing the rotting process to enter the inside.

In Europe the eggs aren't washed (I guess we take our chances with the Salmonella?), and can therefore be stored unrefrigerated up to (at least) 21 days. https://en.wikipedia.org/wiki/Egg_%28food%29#Storage

I have heard (but never tested! so take this with a grain of salt) that with an unwashed egg, in the end it is the yolk that sinks down, touches the shell, making the membrane more permeable, that allows for the rotting to start. I've been told (but again, never tested, own risk, etc) that if you turn those eggs weekly, keeping the yolk floating in the middle, you can even keep them for 1-2 years. I suppose it might lose some of its flavour though :-P

If I were to look purely at the health-factors of rotting vs Salmonella, I'd have to prefer washing. At least if your egg is rotten, you'll immediately know it's rotten as soon as you open it (the smell is either there or it isn't), while with Salmonella, you won't know until half a day after eating. But I do like being able to keep my eggs at room-temperature in the kitchen cupboard, though :)
A friend who cares enough to tell you when you suck is worth their weight in gold.
Centrifugo – real-time messaging server in Go, supports WebSockets and SockJS
Gamifying your Productivity
>I've hit my early 30s and I've started noticing that I'm far more prone...

That's a really young age to have any sort of marked age-related cognitive decline. It might be explained by something else--even something as "simple" as insufficient quality sleep or stress, both of which can wreak havoc on cognitive ability.
Here is a link to Centrifugo – real-time messaging server in Go. This is a central part of Centrifugal stack (http://fzambia.gitbooks.io/centrifugal/content/). It supports Websocket and SockJS client connections. Originally server was written in Python (https://github.com/centrifugal/centrifuge), but recently the entire code base moved to Go language. This is a server that works as a service – can be used with web sites written in any language. Feedback is highly appreciated.
This could be because you're not getting enough sleep (or aren't sleeping well due to e.g. apnea or something). Set up a simple experiment: go to bed 1-1.5 hours earlier than you usually do for a couple of weeks and see if your "cognitive decline" disappears. As you age you might find you need more sleep.
Clue are doing really great work in grass roots women's health. ResearchGate often also often flies under the radar but is really changing the way science gets done. Wooga has a pretty great culture with a lot of ownership and independence.

Berlin is a great place to live, so if you've thought about making the move I'd seriously consider applying at any of these companies.
git diff -w
Lacking changes? Then try this rewarding app
Thanks for the thorough write-up Peter! This pack of slides addresses "naming things" to depth that it could have been a little book...

I miss a few things though.

1. Short functions can use abbrevs; because I can keep track of them.

2. "text_correction_by_editor" might convey a lot more info then "edit"; especially in code where "edit" (and derivative) are heavily overloaded. For instance I can imagine "text_correction_by_user" also exists, or "text_reload_by_editor".

3. Then the Java'isms. E.g. AbstractWhateverSomethingManager. This is more part of the language, paradigm (OO w/ big love for design patterns) and type of money used to pay for development (enterprise money). Its verbose, deterministic and very "correct". Once you are used to the jargon you quickly know what they do, as they explicitly encode one of more patterns in their name.
What did he mean by "never use passive when you can use the active (respect grammatical rules for identifiers)", on the slide 15?
really never considered linkedin or facebook as lower tier undesirable jobs. if somebody works there, they can pretty much work most places bar, google nasa etc.

it's not my backlash, i don't own it - therefore i won't be directing anything.

just because somebody got into debt to get education that isn't necessarily required to do a job - doesn't absolve them - or warrant any sympathy.