skysight-inc/HackerNews huggingface dataset:
Consider any bad code. What does it do?

Supporting more than ascii in code is a wonderful, wonderful feature for some countries and opens up Python to people for whom the latin alphabet is as familiar as the [pick a non-latin alphabet you don't understand] is to you.

Would I use it? No. Would I work on code that used it? Not in three lifetimes. Do I like that it's there? Hell yes.

As the slides were showing, I can write shutil.rmtree("/"). Does that mean rmtree should prevent me from passing "/"?
Its reason for existence is historical, but it persists because it is useful.

"Normal mode" (the most common mode other than insert mode) uses key bindings that wouldn't be possible in insert mode, rather than using the ctrl/alt/etc. keys for binding. For example, hovering over a word and typing ciw (change-in-word) will delete the word and place you in insert mode. There is a nice grammar and logic to the default key bindings (mostly.)

(IMO) When you are experienced with Vim you will spend most of your time in normal mode. This has a few benefits. For one, undo in Vim is "transactional" as you enter and leave insert mode (its a little more complicated but nevermind.) Everytime I have to use other editors (like VS with the VSVim extension) it drives me batty when I have to undo/redo one-character-at-a-time or with some time based batching that I don't understand. (Plug: the GUndo.vim plugin gives you a usable interface to Vim's undo tree. It's not super common for me to need this, but when I do it is a godsend. (If you've ever done undo, made some edits, and wish you hadn't undone after all, this is for you.)
You might let people download their bank's CSV dumps and parse them with something like reckon-- https://github.com/cantino/reckon
If you join my team and tell me you're a programmer but when you sit down with a terminal you have no idea what to do, then you're off my team and I don't respect you as a programmer.

Sorry if this offends you, but how can you consider your self a programmer when you don't know how to use a terminal?
Lucky you. Our taxis prices are all over the place, some charge a callout fee and others don't, and some hide the meter and charge whatever the hell they want - I'd use a price comparison service for this for sure
> It's because it would reportedly take 1 man year to port Mercurial to Python 3.

Source?

> If an organisation has lots of legacy Python code, it'll cost them a lot of effort to re-write it for Python 3, and for what?

No need to port code that doesn't get a lot of attention. But if you want new features of Python, then you just have to bite the bullet. Organisations upgrade hardware all the time. They upgrade their OS somewhat regularly (on the order of years, but still). You get to make a choice - stay current and supported, or don't.

As for me, I will be (and have been) writing new applications with python 3. But I still maintain and support a number of 2.7 apps which will probably never be upgraded.
>but the vast majority of developers manage to get by without learning how to use a terminal.

But not the good ones. Would you take a college class on programming from a professor who doesn't know how to use a terminal? I wouldn't.
This web application tracks the Python 3 compatibility status of Python's most popular libraries.

https://python3wos.appspot.com/

It's mostly green. If there is a red one you really need, it's probably not hard to port it.
:x

(It's the same as :wq, but one character shorter.)
For those of us outside California Quora seems little more than a silicon valley circle jerk.A better branded version of the old experts exchange,though its not hard to brand yourself better than the company with the second worst url in internet history(I wonder how mole station nursery is doing these days?). The very the people who have benefited from the internet revolution move to limit access to publicly provided information,information they themselves did not even create.Nice job kicking out the ladders from under you.
If I ever get hit on the head and want to live life as some someone else's virtual pet ill be sure to check out foursquare as well(oh you went to the pub,who's a good boy?Have a virtual cookie).
Stack Overflow does a lot wrong,half of my favourite answers are marked as closed for some arbitrary reason but at least it can provide open and accurate answers to questions in specific problem domains.
In the land of the blind the one eyed man is truly king.
>q to record a macro; @ to execute it again

Is using macros' really common? I haven't yet figured out in when and where to use macros during my workflow.
Why would I sit down with a terminal when I don't need a terminal to do the type of programming that I do?

Furthermore, anyone who knows how to type and read knows how to use a terminal - it's really not that special of a skill mate :)
The Man Making Silicon Valley Go Crazy for Hardware
Interesting coincidence, I was pasting a production certificate into Vim the other day and it contained "kj", which escaped the editor and ate a few letters until it reached an "i" and continued pasting.

It took production down for 30 minutes until I noticed it. Remember, kids! ":set paste".
Operation shame TEN: The Enthusiast Network on every social network we can find?

Might work.
That's the plan, but I want to have some more subscribers in the cute plan to feel validated to do this pen japan thing at all. Each plan adds 1-2 days of work to my months.
So it makes me wonder, could we place floating solar panels on lake Meade?
Python Naive Language Detector
I use a text editor because using a text editor that you've mastered is pleasant. (I'm an Emacs user fwiw.)

I think we should stop trying to rationalize this choice.

Or rather, we should realize that we like text editors because we went through a long training and acquired complex skills which are fun to put in practice. Being a power user of Emacs or Vim is is satisfying, the same way mastering a video game is satisfying.
I think asyncio + "yield from" is the killer feature for Python 3.x right now. (It's covered briefly in these slides.)

Beazley gives it a very detailed treatment in this amazing YouTube video, which covers not only asyncio's internal implementation, but also explains what coroutines are and when you'd actually benefit from using them in async programming:

https://www.youtube.com/watch?v=5-qadlG7tWo
I'm finding that when I ask people "why are you cancelling?" I don't get any actionable suggestions, mostly just people running out of money or that they've already had enough candy.
I get pretty excited about languages, but I admit that I'd only ever heard of Lojban via XKCD[1]. You might want to provide a link to the Lojban homepage[2].

[1] http://xkcd.com/191/
[2] http://www.lojban.org/tiki/Lojban
I'd hope they'd also first think of:

(reduce #'+ list-of-numbers)

Then using a library like lparallel [1], you can convert it to the parallel version easily:

(preduce '+ list-of-numbers)

[1] http://lparallel.org/preduce/
How to Really Complete a project?
Hi,
I work over projects which are helpful for disabled people.

Completed a project named "Bol" which is an Android application for Autistic kids [1] . Link to download app from play store is at [2].

Which I have donated to The Autistic Society of India, With the collaboration of SAP labs they launched it over Play Store.

I was working over one more project named "Drishti: Feel The View" [3].
Which was loved by Blind people when I show my prototype to them.Which I have to stop because of funds constraint.

And presently I was working over 1 more project for the blind, which I felt like they really needed it and faced the same problem FUNDS.

I am well paid employee in a good company So I don't need money for doing all this awesome work, But these projects do need so I spent all my savings on these projects with which I never thought about making money out of them.

But now I feel like I should save some money for myself, but I am not sure if I am not going to pay for these projects then how can I bring these things to the end.

All these projects are just to make me feel good and worthwhile, which have nothing to do with my current profession or company.

What my approach should be according to you guys, so that I can complete these projects and provide prototypes for free ?

[1]: http://techautismandme.wordpress.com/2014/05/10/bol-v1-1/
[2]: https://play.google.com/store/apps/details?id=com.bol.app
[3]: http://techautismandme.wordpress.com/2014/02/24/drishti-feel-the-view/
I think you will find all of them up on youtube.
What programming do you do? css?
Fascinating post, and so glad that things are going well.

Very tempted by Pen Japan, although trying to sign up by Paypal looks like it's going to subscribe you to Candy Japan instead.

Will give it another try later on. Congratulations again!
We have taken nowhere near as much dilution as you are suggesting.

I want to clarify this, because I don't want anyone else to think they should take 60% dilution before they take their real first equity round. Without revealing our entire cap table and terms (I'm transparent as I can be, but I think this would upset some of my investors) I can tell you the rule of thumb is to give up no more than 25% dilution on convertible notes before an equity round.

Generally you will sell 20% of the company in the Series A (read as: first equity round), 15% in the 2nd (Series B), another 15% in the 3rd (Series C). Our dilution position from these early rounds is still slightly TBD depending on the valuation we get in our next round, but we are sticking pretty close to this rule. Additionally, we maybe we able to hit the milestones required to sell less than 20%... so that optionality is there.
I can name a worse API: DirectX
Unreal Tournament 2004 had a software renderer with good performance, on the single core CPUs of the era. See http://www.drdobbs.com/architecture-and-design/optimizing-pi...

The people working on that, Abrash and Sartain, went on to Intel to do Larrabee - something akin to "software renderer on GPU". If that had worked out, maybe we wouldn't be in the current dark ages, where GPUs are a nightmare to program and everybody suffers from the buggy, closed proprietary software stacks that hide the hardware behind many layers of obfuscation.
" by a prosecutor who seemingly had zero sense of right/wrong, even in the face of the supposed victim (JSTOR) indicating they had no desire to pursue this any further.'

Aaron didn't know the difference between right and wrong either. He snuck into a closet and copied proprietary data.

If I was working for a startup, copied all of their customer data, and released it to the public (because I thought it should be free)..should I be prosecuted?
I do C# in Visual Studio all day long. Rarely (if ever) need to touch the terminal. Hundreds of thousands of people use my apps. But nope - I guess I'm not a real programmer because "I don't prefer the terminal". Give us a break mate. Nobody agrees with you.
Originally published here: https://www.informit.com/articles/article.aspx?p=2213858
Samsung safe driving s-drive program.
Hi, how come the mailing address for Pen Japan is in Finland? Is it for tax reasons? and how do you actually get the mail?
Thanks and good luck with the new venture!
Not really. Databases are very common in gamedev but, most of the time, they are not relational and are ad-hoc (i.e the database program is coded in-house). All of this for performance.
A VC may win by maximising profit but a VC employee has to protect his reputation."We made a mistake but so did everyone else" is an unfortunately successful defence.

“Worldly wisdom teaches that it is better for reputation to fail conventionally than to succeed unconventionally.”
Keynes
I love this idea and subscribed after only a minimal amount of waffling, so thanks for doing it. :)

I would like to ask however if there was any specific reason for posting this directly after a batch of packages just went out. Looking at it naively it would seem that it means anyone who learns about your project this way has the maximum wait time ahead of them, on the other hand it's possible that this allows you to include the maximum amount of new customers in the next shipment. Or was it just coincidence? :)
SQL: Introduction to SELECT statment, analogy for beginners
Can you cite me 10 awesome and useful libraries that haven't been ported to Python 3 and don't have reasonably equal alternatives?

I know there are some critical libraries to some niches who don't particularly care about recent versions. I know there's a fair amount of libraries that don't work on Python 3 purely because the author used print instead of print(). I know there are apps that can't port to Python 3 because they were designed with some core Python 2 functionality a decade ago (usually unicode/bytes related).

None of these matter to real world devs. User-facing apps don't matter, easy-to-port libs don't matter (fork & fix), niche libs don't matter (if your niche doesn't care about Python 3, you're either here to troll or you're not actually here).

I know it's very "in" to say that Python 3 is dead-on-arrival and all that but it's simply untrue. Anyone who uses a Python 3-based Linux distribution will understand that. Most new devs use Python 2 because they are too lazy to install Python 3 and assume their code won't work; and as soon as they hit a SyntaxError in print they complain that "Python 3 is hard".

Here are the facts:
https://python3wos.appspot.com/

You see all these libraries in red? Most of them depend on each other (Twisted is a big one as well as another I forget about) and have excellent alternatives available. Good luck finding 10 that match my criteria; I can't even find one.
Note the parent comment said "healthy". Last I checked, healthy != dying.
Check this out:

http://www.sqlite.org/appfileformat.html
Just because something is being used widely does not make it right, nor should it be held up as a fine example of design.

Language hacks like the one we're discussing are fine IF:

- You work with people who avoid bad features.

- You can avoid using code that uses bad features (less of a problem, until you have to debug things and then you're in a world of hurt).

- The features are not short-sighted hacks that prevent the language from moving forward (e.g., eliminate the opportunity to make things faster through dynamic compilation or whatever).

Scheme is a great language that is not useful in the real world, while PHP is a terrible language that happens to be in wide use. Neither of these positions are unique, and honestly I'd much rather use a bad language with good tooling than a great language with poor support. But I will continue to point out PHP's flaws, which are many and just howling bad, and work towards improving the alternatives.
> they've already had enough candy.

Did you ask them if they'd be interested in smaller packages?
It's not used much? That's my understanding of the phrase.
Does RPGMaker have an onerous cost associated with using it? Or has it fallen stale and become unmaintained? I've never fooled around with it, so I can't personally say.

I'm all for writing open-source tools, but the real contribution of RPGMaker is surely not its source, but the easy design interface that its creators invented to make RPGs.

Hopefully the EasyRPG folks have some real innovation to pull EasyRPG away from RPGMaker in some nice way, and all that they clone is the file format used.
What are some of the best tools for creating such slides? I see that this one uses remark.js. What else are people using?
So Windows programmers, according to you aren't programmers?
> Supporting more than ascii in code is a wonderful, wonderful feature for some countries and opens up Python to people for whom the latin alphabet is as familiar as the [pick a non-latin alphabet you don't understand] is to you.

No it doesn't, because reserved words and all the identifiers in the standard library are still in Latin. It is simply not possibly to write Python code without knowing the Latin alphabet.
Knowing how to use a terminal != using a terminal for everything.
Vim user of 18yrs here. I never use macros.

Everyone uses a slightly different subset of vim, in slightly different ways.

Don't worry about dogmas. Try everything out once, and keep what works for you!
Exactly. It's why I wrote the article. For me, using Vim brings with it a whole general feeling of comfort, which probably includes those early days hacking away on the Xenix box with family close by and Mario dinging in up the hallway.

Weird, I know. But whenever I come back to Vim after straying for any amount of time, I just feel happy. Probably because I can do everything I want to do in the text without having to think about it.
I completely agree about the interconnectedness of different branches of mathematics and think it is difficult to visualize and intuit because we don't yet have the language.

My guess: Eventually, as we begin to understand mathematics better, we will elucidate the underlying properties of theorems and there will be better "tagging"; the underlying language must also change. This will not happen for a minimum of 30+ years as new advances must be made and institutional faculty will object lest their life be rendered irrelevant.
Thanks for quantifying it for me. I never dug in deep enough to figure it out. It always just felt "wonky" when I used. (That's an opinion, of course.)
The most exciting part for me: you can subscribe to getting digital copies of 2600 via Amazon: http://www.amazon.com/2600-Magazine-The-Hacker-Quarterly/dp/...
>> It's because it would reportedly take 1 man year to port Mercurial to Python 3.

> Source?

Python 3.x has proven notoriously difficult to support, due to our pervasive dependence on a byte-based encoding strategy and string manipulation. We have invested a substantial amount of time into porting at this point and we estimate at least a person-year of core developer time to make a full 3.x-compatible version.

-- http://mercurial.selenic.com/wiki/SupportedPythonVersions
Sorry, I mean after relocating to a new area, that's a nice thing that helped make some small money FAST... I just moved, and was waiting for a payment from my biggest consulting client, but me & wife really needed some money. That's what I did.
Somebody please port MySQLdb and make it asyncio-compatible.
Yes, and having the compiler tell me these things would be welcome. I'm not saying I don't WANT those optimizations, I just want to be aware when they happen.
Some ideas to test separately.

\) Can you try switching them to "Pen Japan" 1.1 months before the usual cancellation point? This could be done with an opt-in.

\) Incrementally iterating on Mithaldu's idea, can you try giving them a price break (and announcing it with an email!) 1.1 months before the usual cancellation point?

\) Can you add a "But wait! If you stay around, you can get a 10% discount on your subscription cost" last-minute notice to your cancellation page, that is only presented if the user has been around for (the mean cancellation time - 1.1months)?
Just coincidence. I was already writing this post since a few days ago and just found some people to read it through and give feedback and completed writing it just now
Actually I am a sole proprietorship registered in Finland, even though I'm living in Japan now.
What happens if an agreement can not be reached or if the other side does not want to negotiate?
I was taught that one by the brother-in-law. He also tried to teach me 1234l (the letter 'l') to go to the end of a line. I figured out a better way pretty quickly on that one.

I didn't find the magical 'g' until much later, and 1G was already burned into my synapses. I'm trying to change. It's a little awkward :)
> Legacy support ends in 5 years.

Really? Support for Python 2.7 was going to end in 2015, but they recently extended it to 2020.

What's the betting that in 2019 they won't extend it to 2025, followed shortly after by quietly dropping python 3 (or someone forking 2.7 to produce a compatible 2.8).

> Shouldn't new apps be written in 3 when possible?

There are no compelling reasons (for me at least) to change to what is in fact a different language which happens to use the same name.

When the Python 3 people eat their own dogfood by using a Python 3 toolchain, I might reconsider.
There is a difference between learning the 33 keywords and learning and dealing with an entire foreign alphabet.

And you would be surprised what "development translators" can come up with. You can write wrapper libraries for, heck, the entire stdlib. Yes, it's stupid; but if you are looking for devs in a country where English is less spoken than French on Saturn, it's actually useful.
Ahoy! for Piratebay :) im working on Popcorn time for Piratebay, still needs work what do you think ?
https://chrome.google.com/webstore/detail/ahoy/afllgcmlodpcc...
My fathers specialty was alfalfa, and he made a good thing out of not growing any. The government paid him well for every bushel of alfalfa he did not grow. The more alfalfa he did not grow, the more money the government gave him, and he spent every penny he didn't earn on new land to increase the amount of alfalfa he did not produce.

Couldn't resist. Not often alfalfa comes up in conversation.
Let's say that unless you are mega-provider, which trying to pack as many as possible those cheap low-resources (10 pages, 3 forms, 5 tables, 10 requests per day Rails or whatever is current buzzword) site into one piece of leased hardware the visualization is a wrong question.

Just apache's virtual hosts isn't good enough anymore, customers want Rails, Nodejs, Java for their $20/mo.

Virtualization for real-world production is nonsense, especially those idiotic setups like Java under Linux under VMWare under Windows (you wouldn't believe how many "professionals" are cock-sure that this kind of setup is "robust" and most stable.)

Jokes aside, Docker is eating VMWare's lunch being a fresh new meme promising miracles (yeah, problem of cache trashing and context switching for I/O in a host OS will surely be solved by someone else.
"git grep" is easy enough? Of course it defeats the point of having a git repo website... That said, even if they add it, these are the folks responsible for JIRA's search -- don't expect it to be intuitive. At all. ;-)
I'll keep voting any story about 2600 up. Unfortunately it looks like the magazine & distribution companies legally were completely separate and they just kept similar names for branding. Other companies in their bankruptcy filing are owed millions to tens of millions.
Thanks, that link was going to the wrong place. Fixed.
This is what tree rings sound like when played like a record
We just put it up 3 days ago. We will add that. Thanks
I do a lot of work on multiple rows/sections/blocks of similar data. My workflow usually goes like this...

1. Do the same thing 3 times, realize that I'll be done faster if I automate it.
2. qz to record a macro into buffer z.
3. Do the work, taking care to leave myself in a state where the next invocation of the macro will pick up right where I want it to.
4. q to finish recording.
5. :map <M-f12> @z to execute buffer z
6. Hit Alt-f12 over and over until I'm done.

Seems like a lot of steps, but it has saved me tons of time.

Of course, as the other commenter said, some folks don't use the feature. That's ok. There's room for all kinds :)
Is this your full time job now?