skysight-inc/HackerNews huggingface dataset:
> One of them is called Padhuka Sahasram, was written in less than a day in response to a challenge and contains 1008 verses in 32 chapters.

If he spent 24 hours non-stop writing those verses, he's have to write 7 verses every 10 minutes on the average. If it is really a "less than a day" 8 hours, he'd have to write nearly 3 verses every minute. In summary, this sounds like something that will need some serious substantiation to believe.
I think this perspective is one of the things that poisons our current system. Social promotion enjoys a nearly untouchable status in U.S. schools and ends up with some chunk of most classes board to tears and some other chunk hopelessly lost (the time of both groups is being wasted).

So I think there is an interesting question to be asked, what sort of activities can provide an appropriate context for social interaction given the organization of our present day cities, without interfering so much with teaching and mastery?
So does that kind of thing ever happen to men (for example a stalker could spread that they are pedophiles or whatever)?
OOP is a bundle of concepts and I find it hard to reconcile them all and explain them to people. Individual principles like information hiding, classes, those are good to teach but the monolithic 'OOP' is tough going for beginners. And non-beginners.
I think beginners should be confronted with OOP very early, but not in the typical way:

- DO teach encapsulation of state.

- DO NEVER ever try to teach about objects as representations of real-world things. And for the love of god, do not give out modelling assignments where "Human inherits mammal" is an answer.

- DO start with collections: Vector, List, Stack etc. are easy to implement and showcase the virtues of encapsulating.

- DO teach polymorphism, but only in terms of interface inheritance. The collections you have taught before are a good starting point: ICollection, IRandomAccessable etc.

- DO NEVER EVER talk about class inheritance. Do not even use the word inheritance. Call it "is a relation" or something like that.

- When the time comes to teach inheritance, emphasize the Liskov substitution principle.
There's always O'haskell. I believe normal Haskell does support structural subtyping, even if not nominal.
tl;dr Emacs is extensible.
" It's the baroque mental twists and turns we have to learn to make on procedural programming that are the problem."

What? For me the "modern OO" is as baroque as it gets.

First of all, and your example reminded me of that, because it hides what's happening. What's a window and a line? How am I supposed to know what's happening, if one has the .add method? Docs, sure, but it's non intuitive. Granted, today there's so much complexity you can't handle it all in your head.

But especially because procedural is how the computer works. Assembly. A list of instructions that are read in sequence. That I can understand. Now, OO makes this flow very convoluted, and the more "OO" someone programs, the shorter the procedures are, rather relying on inheritance, types to make computations, which of course, are good in one sense, but break the train of thought.
You just justified the attacks on her, which was the entire point of the article, saying that no attacks are justified, regardless of the situation.

No. I think she was immature and probably mentally ill. Biological mental illness deserves compassion and treatment, not vitriol from anonymous cowards.

I'm not saying that the attacks on her were justified. I'm saying they were predictable.

I live in Baltimore. I'm in a nice neighborhood. Two miles north of me? Dangerous urban decay. I should be able to walk around at 3:30 am in any part of the city-- any part of the world, really-- without fearing physical harm. But that's not the world we live in, now is it?

no attacks are justified, regardless of the situation.

I can agree with this.
A useful application for readers of HN: Save money on a steadicam and just buy a GoPro + chicken instead.
I read (and upvote interesting stories) on /newest a hell of a lot more than I ever go to page 2 on the main page.
Very cool. Unfortunately, I think the price point is a bit too high (at least for me).
After my brief time in Java, I instinctively agree with the OP...but I wonder if there's a happy middle ground here, such as just using the out-of-the-box parts of OOP?

The easiest example I can think of is: using Ruby without getting into how to define/redefine classes or methods. Just stick to instantiating simple data types and invoking their methods:

my_string = "Hello world"
puts my_string.upcase
# => "HELLO WORLD"
puts my_string
# => "Hello world"

Among the first roadblocks beginners seem to have is grokking that `my_string` isn't modified...but isn't that an early point of confusion for functional programming too, to some degree?
Yes, vigilante justice is a great way to solve problems.
Crowdfunded documentary exploring the startup scene in Dhaka, Bangladesh
Dispelling NSException Myths in iOS: Can We Use try…catch, finally?
Is today 'purposely misread/ignore the point of posts and make a flippant content-less one-line reply' day or something? I'm a strong supporter of affirmative action programs, I go out of my way to get women and girls interested in programming, and I consider myself to be a feminist. I'm interested in getting results, and making practical and smart decisions for the day-by-day happenings.

As for you - please stop being this way, stop with the snippy replies, stop polarizing the crowds, what you're doing is unproductive. Step away from the keyboard and think about what you're doing here.
I thought that the issue is the const-ness of the variables, and nothing to do with casting void* ->sometype*

Essentially, they are making use of const pointers to ensure that the code doesn't change the data. (gcc would throw a warning if you did). BUT: the problem comes when you want to free() the data. A strict interpretation of C would be that you can't free() something that's const, because it clearly is altering the data. However, you have to free the data sometime or other...

A possible workaround is to write a freeconst() macro that does the cast to void* and calls free(), and wrap this macro in the 'temporarily disable this warning #pragma'. This way, you only need to turn off the warning in one place in your code.
> some godawful real world analogy.

Yes, I think this is a real distraction. This Cat/Dog/Animal trope leads to the view that you should use classes to model your domain objects. In some cases, you should. But this can cause as many problems as it solves, and should not (IMO) be the default approach.

In getting away from this view, I've found it helpful to think of most programming as designing DSL's. To that end, you can use OO to build the infrastructure necessary to support this. But I worked in OO languages for many years before grokking that.
Why Cocoa programmers can’t have nice things
Gerald Sussman had explained this in one of his SICP classes. He called it wishful thinking.

One of the best ways I ever came across to break down a problem.
What five things can make sure you never stop growing and learning?
It is rarely discussed, but a major factor contributing to the Airbus crash was that the software did not derive airspeed from engine parameters and use it to verify the pitot tubes. The common mode failure of the pitot tubes could have been anticipated and protected against.
But brick did get upvoted: https://news.ycombinator.com/item?id=6282989
I hate those GTK runtime errors. When I run a gtk app from a shell & find pages of warnings, I lose all faith in the app.
There's also "OpenConnect", an open source replacement for Cisco's VPN client. On the infrastructure side, you'll have a Cisco router or firewall providing remote access VPN services.
It seems your "foil a terrorist plot" is some sort of preemptive policing. Why are we doing that, again? And who are these "terrorists"?
I am aware. I use it as an example because plenty of good API designs for it that could've made it in did not because of "OOP shouldn't be used by beginners". The PHP community is unreasonably scared of OOP.
Some people will always prefer assembly code because they eschew all abstraction, but most of us need abstraction to deal with complexity. Picky your poison: do you like your abstractions to be objects or functions? Once he FP programmer starts flinging around higher order functions, FP can just as convoluted as OOP.
It was so easy to try out, I thought I might as well. I had a quick conversation with a friendly chap from South Africa, rated it five stars and was on my way.

Although it was an enjoyable experience, I'm not sure whether I will come back.
Sounds like a good idea. I don't have much stuff. I've only Craislisted three things in the last 7 years, the rest I just donate to charities because effort to sell > monetary value. Like avichal mentioned though, do some due-diligence.
>I know tons of people, myself included, that have coded something of similar, if not bigger scope than Minecraft.

Pics or it didn't happen. Merely writing something with an equal or larger amount of LOC doesn't count.
"Given that feminism is the advocation of social and political equality twixt genders"

sigh - that's not really what feminism is... But no point to argue on HN. Just, maybe, keep your mind open next time you read feminist texts, and look for the real message.
> "But that's not the world we live in, now is it?"

Neither is it the world we aspire to. Taking an attitude of 'Well, what did you expect?' Is never going to improve anything.
It's the difference between showing that a candidate proof is correct, and coming up with a correct proof in the first place. Once you have a proof, showing it is correct is (easily) computable. But coming up with a correct proof in the first place is not computable in general. (More generally, deciding whether a given proposition is true -- i.e. whether a proof exists or not -- is not computable. That is the "entsheidungsproblem".)
All kinds of feminists exist. Valerie Solanas and Luce Irigaray should have thought you that.
Simple but always useful : a wireless presenter.
This is quite stupid.
Saying emacs is better but showing that emacs do actually the same sublime text mistake....
Emacs is extensible; ST too.
Anyone unfamiliar with the most basic of workflows would find this needlessly complex. Just a couple of months ago, I would have.

Now that I have familiarity with local branching, remote branches, how the 3-way merge works (conceptually) and rebasing, this article comes off as a guide on how to do things that you wouldn't have to do to often anyways.
Blown Away by "Windy Day"
But they don't. In practice, the difference is between:

$x = new Object;
$x->bar($foo);

vs.

$x = object_create();
object_bar($x, $foo):

See, for example, the "procedural" version of MySQLi.
Let's see if this triggers the flame war filter.
If you were to say, don't walk through the ghetto flashing your Rolex or you might be mugged, no one would consider that a controversial statement, not a justification for mugging.

It's only when sex is involved that people get a little weird.
Serious question: Did anyone ever chose an editor because of some "Why X is better than Y" article?
LOL, Amazing!
The sad part is a lot of contemporary feminists on the web think in very similar terms as this crackpot. They're histrionic and have discarded all forms of critical thinking in favor of their emotions. This type of thinking, which is not motivated by facts and reason, leads to statements like those of Irigaray.
Create an Android Webbrowser in Delphi
I was being purely biologically functional rather than asking the question in terms of the broader gender groupings and social terminology because it provides the stronger point.

When you get into gender, the argument can still be forced into a binary perspective by not getting much further than agreeing that some boys can be like girls and some girls like boys.

If you are forced to take into account the full spectrum of physical biology however, it becomes obvious that the issue is far more fundamental than the social labelling. Biology is messy and doesn't care much for people's ideas on exclusive differences.
Yeah, that may be a little too detailed for customer reporting. It works for me for personal logging though.
Amazon changes its prices more than 2.5 million times/day.
YA BURNT
Seriously HN - is this site incapable of ever updating its beliefs in even the slightest way based off of genuine evidence? Ignore the fact that this article is written on an obviously politcally motivated source - in fact ignore the whole article. You don't need it, since they're providing you with the actual studies backing up their beliefs. If you don't like this view, then your critiques had better be of the articles they cite, not of this sumamry article!

I can agree that seeing a grade improvement is not, by itself, enough to get me say we should separate classes by gender here in the US. But if this article didn't make you at least consider that option a bit more than it did before, then you're doing this incorrectly. These are large differences - 0.8 standard deviations increase in scores! They are verified over a large body of students and it was actually randomly assigned. This is great! There are so many questions that I'd pay to have an actual study of that caliber done to answer.

Again, it's not the whole answer. Not everywhere is Seoul and not all students are the same. (In fact, the given article agrees: "Our only concern with the article is with its underlying premise: namely, that either single-gender or coed must be "best." We believe that premise is fundamentally mistaken. The single-gender format is better for some students, and coed is better for others,"). I'm not saying you should be completely convinced by every article that gets posted here that happens to have a scholarly citation. But if this site continues to automatically and consistently dismiss these things just as a matter of course, then how can we ever hope to learn new things and change our views? There's something here. "Grades aren't everything" doesn't mean that "grades aren't important," which doesn't mean "this study is pointless."
This is standard in almost every American environment where people 15-25 hang out.
I think I get why some people rage against inheritance, but I don't understand one of your remarks here.

Human isa mammal (let's say). Human is a Liskov substitute in any context requiring a mammal. What's the problem here? Is it just the fact that Mammal brings to mind a classification system which happens to be hierarchical, and you're afraid people will become too accustomed to hierarchies?
I keep my eye on which programming languages and techniques are recommended for kids (plus kids-of-all-ages such as hobbyists, scientists, etc.).

Then I use those languages myself. ;-)
Starting an Ecommerce Store Mastermind for entrepreneurs.
"Why X is better than Y" would be too clean-cut for my case, but it's not far off.

I wanted to start learning lisp and was told emacs was the best choice for it. I read that Richard Stallman made it and Linus Torvalds uses it. That was enough to get me started and it's now my editor of choice.

But that's not to say that I don't know how to edit, save, search and (force) quit vi. :)
>She ran a blog called Sex and the Ivy. I'm sorry, but if you write a blog whose title says, "I'm in the most privileged 2% of the population, I have lots of sex", you're putting a target on yourself. Maybe the world shouldn't be that way, but it is.

If you replace "she" with "he" then there's no issues there. No target.

Please don't engage in this "she shouldn't have done that" bullshit. Its cause of assholes like you that when women get sexually assaulted they don't come forward. They don't want to be told they deserved it. That's what you just did, if you know it or not. They don't want to be the ones on trial for falling out of line of social ideals of female, because thats what happens.
tangent: isn't the tricky part of a spellchecker the edit/Levenshtein distance? i.e. to still recognize a word even when misspelled - else you can only look up words that are already spelled correctly.

(I checked the comments on the last three times sunmissions of his spellchecker article, but no one seemed to raise this point...)
Do you keep your door locked? Yes? Why should you? After all, it's not you who needs to guard your property, it's the thieves who should be told to stop stealing!

This is the exact same logic a lot of contemporary postmodern feminists use in arguments concerning rape. It's not about bondage and discipline, it's about risk management.
thanks. after reading your explanation it's clear that the verification is verification of the proof, whereas i was interpreting it as verification of the statement to be proved, hence my confusion.
> Lena Chen didn't deserve what happened to her, but she courted the attention in a way that a mature and psychologically sound woman wouldn't. She ran a blog called Sex and the Ivy. I'm sorry, but if you write a blog whose title says, "I'm in the most privileged 2% of the population, I have lots of sex", you're putting a target on yourself.

Please don't be an asshole to people on HN.
I would rather see a system based on digital signatures, with keys tied to identities. If you are checking someone's reputation you should be able to check the identity of people who are making claims about them -- are they former employers, jilted lovers, or did they choose to remain anonymous? I want to know what former employers and coworkers have to say; I do not want to know what an ex-boyfriend masquerading as a former coworker says. If we could establish a mentality of checking for a signature from a verifiable key before assuming that a statement is true it would go a long way toward solving this problem.

Of course, this comes with problems as well. How do you verify public keys? Web of trust systems do not seem to work in practice; people do not have the time. A CA model would allow a central authority to silence people who say the wrong things by denying them verification. The system cannot be like SSH, because you need a way to verify keys from people you have not yet contacted.

I agree that search engines should be working toward a solution, but in this case that would not have been enough. This stalker went as far as sending messages to the victims' employers.
The point is that js2-mode interprets javascript which enables it to offer much more exact syntax highlighting and navigation than purely regexp based approaches. FWIW, js2-mode is an exception and most of emacs highlighting comes from regexps via font-lock mode. The author could have made the same point about Visual Studio vs other editors as the former parses syntax which most others don't.
I'm wondering why Airbus adopts this design? Seems very stupid from a cognition point of view. IIRC Air France Flight 447 stalled due to the same issue.
Thank you for feedback. I wish the users will come back of course.
I always wondered why so many FOSS projects always generate warnings. I always assumed that the large mature projects like the X server did this because they were performing some crazy optimization that the compiler was too naive to know about. I never had to do this myself, so I thought that the pro's used their arcane knowledge to eek out an extra 0.1% performance out of something for the benefit of everyone. Turns out that the truth is so much less interesting.
Not too sure. Considering the limited timeframe and wanting to get ready for employment, I think it's the correct decision to stick to one and get good enough in it rather than learning more technologies and not being able to work with any proficiently. Compare it to the bootcamps which usually also only stick to one language. (I will teach her HTML CSS and jQuery, but this is not included in the 4-5 months of learning a programming language.)
This isn't the first bug to be found because of it!
AFAIK, ST2 doesn't have a plugin for a Javascript interpreter (though I haven't used ST2 for over a year now). You could extend the javascript.sublime-language file, but that only supports regexes so you won't have the same context as with the AST.

Your main point stands though: all major editors have the ability to add plugins to achieve this same functionality.
I'm sorry, but she is partly at fault. What she essentially did was maintain a diary with all the raw details of her private life, only she did everything in public view. That's naive. She did not warrant what actually happened to her, but it was doubtlessly naive.
We'll php didn't start out as an OO language. Many of the OO "features" we're added later. Just saying (not really disagreeing).
Also, it's really annoying how every new service out there thinks that everybody has google account. You want me to pay for your service and don't even let me register there? Well, I don't have google account. And I never will.
Although that may be true, I didn't really read the article as saying that OOP is bad, just that it brings a lot of extra baggage that newcomers to programming needn't worry about. Certainly as they begin to write more advanced programs, more advanced paradigms become relevant.
Ok, on that I can agree.

Here's the issue. Kathy Sierra was attacked without provocation. Lena Chen used her sexuality in the public to gain attention (and, to a degree, social power).

My levels of sympathy are different. Kathy Sierra was the lawful driver hit by a drunk. Lena Chen was the 120-mph speeder who ended up in a crash. Everyone speeds, and no one "deserves" to be in a crash for driving 120mph, but the laws of physics are not so kind.

If we have to choose between enforcing DUI laws and redoing all our roads to make 120mph safe (which may not even be possible given the limits of most cars) then I'm going to take the former.

The "Game" culture of casual sex-- and it's important to note that it's the culture and not the sex that is so revolting; sex that isn't in other peoples' face is none of anyone else's business-- has damaged respect between the genders and proven itself to be generally toxic. The prudent thing for a young woman to do is distance herself from it entirely, date respectable men, and have a private sex life existing in the context of monogamous relationships. If you're offended by the prior sentence, then switch the genders (or extend it to gays) and note that it's equally valid. I would advise a son not to have casual sex (false rape accusations, emotional problems that can afflict both men and women, reputation risks) just as fervently as a daughter. It's just a horrible culture that is best avoided outright.
CSS Variables in Firefox Nightly
Study: Neurotic Women Most Likely to Be Phishing Victims
An editor with a plugin with code I modified makes this the best editor...

Because anything you put time into to makes it automatically better for your use case is actually better.
Reading serialized data and then casting it into a structure type is ill-defined, very bad practice, and there's nothing in C that tells you it's a good or safe thing to be doing. So, please don't do that.

The exact layout of a structure in memory is up to the compiler, and can easily change with compiler options, even if the compiler itself and the target architecture and platform remain the same.

An externally-visible serialization format should of course be stable, and not depend on the compiler used to build the code, or the hardware platform which might have ideas of how various fields should be aligned (or even how to order the bytes in integers larger than 8 bits).

Serializing data is something you do, just blindly copying the run-time representation that you have to an external medium is not serialization. You should do it field by field, with a well-defined format chosen for each field.
I use an HP-41CX app for my iPhone. I don't use 90% of its capabilities and it doesn't have the keyboard feel (obviously) of the original but it's pretty good for my purposes. I've used RPN since the late seventies when I got an HP-55 my sophomore year in college so I'm pretty wedded to it.