skysight-inc/HackerNews huggingface dataset:
Have a look at http://pygments.org/ or https://github.com/alecthomas/chroma where you can pass code into a library and it returns highlighted HTML.

You can use Pygments in Java using Jython but its performance is questionable and can be incredibly slow when highlighting lisp code for example.

Its a very edge case for most people, but seeing as I am working on a searchcode.com upgrade I need a fast highlighter. Currently I am spawning a background Go process using Chroma to take care of this for me, but if there was a decent Java library I would use it. None exist I am aware of that are even slightly up-to date.
Assange is currently being tortured.

You call that a fair trial?
Racket/GUI Saves the Day
Roughly mirrors my experience trying online ordering from Safeway. Figured they haven't yet automated processes in the way Amazon has.
MPC-HC and mpv are much better than VLC.
As a Chinese I think the Chinese police officers are doing a great job.
Thanks for sharing, OP. Just sniped one, it'll make the perfect birthday gift.
500,000,000+ people taken out of extreme poverty is generally considered a slight improvement.
> Once I show them Java 11 with var keyword, lambda's and streams they start appreciating how modern the language has become.

I wrote a lot of Java, but it was a long time ago. Could you share a bit of code representative of the modern Java 11 style you mentioned (var keyword, lambdas, streams, etc.)?
Agreed on all points.

You mentioned Go, so I'd like to add that Project Loom is the OpenJDK initiative to add green threads/coroutines to the JVM which I'd love. The tricky thing with "data classes" are that everyone wants something similar but different between the various terms: records, data classes, value types.

Personally, what I want from this is essentially Lombock-style all-args constructors, equals, hashcode, and toString. Struct-like like embeddability and flat object-headerless arrays are cool but honestly more niche. I don't mind sucking it up and using unsafe.
Are there HN complaints about Amazon quality/counterfeiting in Europe, or is this a US poor consumer law problem?
I'm not a fan of BEM, I think it neuters one of the strongest parts of CSS
> Companies do code testing because they have encountered so many candidates who look good on paper, and may even be able to talk about computers convincingly, but can’t actually write a program when asked. Any program. At all.

Maybe I'm reading too much into this and it's just semantics quibbling but maybe talking about computers is not talking about coding ? I've never met someone able to pass for a programmer when they are not. I've always felt just asking candidates to talk about their last or favorite project help catching a glimpse of how they think about software problems.

Little anectode : my brother is the first software engineer of the family

Father : "Son, what kind of computer should I get ?"

Son : "I don't know much about choosing computers"

Father : "Don't you write software for a living ?"

Son : "Yes, exactly"
Or, you know, stop to re-adjust your course without endangering everyone sharing the road with you.

Your sarcasm looks a lot less smart once you examine the actual options.
I have a CD-R of "alternatively obtained software" from December 1995, which I keep around mostly out of curiosity. It's got some forgettable old games and MIDI sequencing software on it, nothing interesting at all.

But I'm wondering when it'll actually start deteriorating and ultimately fail. So far it seems to still be OK.
Watch out, depending on the country - recording might be legal , but publishing without consent usually isn't.
Continuous Partial Attention
Am I correct in assuming you are connected to the project ? If so I was wondering what the packages are where you employ PGO, Firefox, Chromium and x64 are examples of applications with built in compile-support, are you using PGO on other packages as well ?
More of a concept - lots of local organisations will setup a subscription whereby they send you a box of vegetables every week. Crucially they get to pick the contents, favouring seasonality. So you get cheap and fresh at the expense of choice.
Yeah, I have used Android Auto. It worked fairly well for me. It was very pleasant to have some apps accessible on the screen of my car. But it didn't integrate with all the buttons in my car. Also the connection wasn't always working that well.

I stopped using it after a while. I don't mind listening to the radio. And although Android Car has a nice modern user interface, the default user interface in my car works just as fine. I want to look at it as little as possible.

> not a car company trying to serve me a "branded interface."

Branded interface was not the right wording here. I was looking for a word that describes a car company building a good and fitting experience that suits the car you are driving.
How about spacecraft with touchscreens: https://www.spacex.com/crew-dragon ?

Compare to the cockpit of Space Shuttle: https://i.redd.it/9mj5bcbnzsx21.jpg
Try going a day without a mouse plugged in
Would you mind elaborating? What does it have that uBlock Origin doesn't?
Fun fact: the line of the ad was twisted by internet people for meming purposes. The actual line is "You wouldn't steal a car".
The only reason I like Java is that it allows you to sneak in Clojure code.

“I’m going to build a solution that runs on the JVM”
Sometimes. It's about as reliable as the rest of Slack, which is to say not very.
Yes, this.

uBlock Origin seems to have ~15 million active users between Chrome and Firefox (source https://en.wikipedia.org/wiki/UBlock_Origin#uBlock_Origin). If it only spared us 10 seconds a day on average (probably a super conservative estimate), it would save the equivalent of an average human life (~70yrs) every 15 days!
(And given that probably at least 70% of users don't use an ad blocker, it's infuriating to think what's the "human" cost of ads on the web alone...)
I think you should review these recordings, some introspection may help enlighten you as to why you haven't been hired.
Yea I don't understand their viewpoint. No one is forcing you to look at every single slack message as soon as it arrives.
Loom is rather nice, but frankly I don't find the lack of co-routines something I miss. You can spawn hundreds of real threads a second so it is possible to write Go style code in Java if you really want. I may change my mind when I actually use it though.

I don't mind what type of data classes they come up with. I just want to not have to write stupidly long constructors, multiple sets or chain-able objects when I want to populate some fields.
256 kilobytes was called a double mega on MSX systems and was used in very large games mostly. They would be cartridges, mostly from Konami, that had that whopping amount of game on it. Strange to think that most webpages are larger than that now.
Automatically cancel a high risk order marked by Shopify
They should probably be regulated, but treating them as a health issue seems like a far healthier idea than criminalising them. I believe Portugal did exactly that and got very good results.

It does require a lot of education and responsibility on the part of pharmacists and physicians, though. If I understand correctly, opiates are illegal in the US yet can be legally prescribed as part of painkillers, and with corporations pushing them hard, this has resulted in a bigger opiate addiction crisis than ever. That's clearly not the right way to do it.
I agree on the flexibility part. Interesting thought. Although that doesn't necessarily mean it has to be a touch screen. There are many non-functional buttons in my car right now, which might be wired but just don't perform an action. The car manufacturer could make it more easy to reprogram these.

You can see it a bit as a Playstation controller (or whatever platform you like), it has multiple programmable buttons. A car could basically have the same. A touch screen is not required.
> That’s not what is happening here: everyone knows...

I didn't know. The Streisand Effect absolutely applies, at least in my case.
This poll is missing a crucial option, "Don't know".

What I noticed in bigcorps is that they do the same stuff that small startups do with way more people. What a startup does with 3 people, bigcorp needs 60 people for that. But when you look at it from up close, it's incredibly hard to tell which of those 60 people are the ones that are actually needed.
Ok Google directions home.
I think you are kidding yourself if you think the majority of these companies are satisfied with an answer consisting of "This looks like it's beyond my skillset". All things considered, they are going to progress the candidate who can solve the problem because it's an early stage test.

I wouldn't feel pressure if my mom threw me the problem, but I still probably wouldn't be able to come up with a solution (or even approach anything useful in a reasonable amount of time) that would satisfy an interviewer because frankly, I'm terrible at it and haven't spent the time to get good, just like many, many other successful developers.

Stress is only one aspect of these that people dislike.
Java 8 made it an "okay" language for me to use.

It's a lot better nowadays, but historically the biggest problem with Java has been the 3rd party libraries. They tended to be written with extensibility in mind at the expense of usability. Extensibility is great, but it's not the only important thing in a design.

I'm not a huge fan of annotations. It makes the language feel a bit magical and hard to debug in some places. It can be difficult to track down how a given library actually treats an annotation - or even a set of annotations since you can put more than one on a given thing.
It puts the language in a strange place: sometimes both boilerplate-heavy and magical.

> The introduction of annotations in JDK 5 has made enterprise Java development a whole lot simpler by allowing things like dependency injection.

This is a bit weird - you don't need annotations to do dependency injection. And you don't need a DI framework either. One thing I don't quite understand is the infatuation with DI frameworks in Javaland. I prefer to just do it by hand where both necessary and plausible.
Where does VB infer types? If you don't specify types (which is usually enforced with "Option Explicit"), everything ends up with a Variant type, i.e. a union type that can contain a value of (almost) any actual type and will be implicitly converted on use.
> Look at the controls behind the gear shift stick - not much but still similar to what Mazda does with the audio controls.

I don't think I've ever seen a car where these weren't on the center console.

> BTW, I have never used the hazard button while the car is in motion or at least driving very slowly.

'round here it's common to use the hazards when in sight of or at the tail of a highway / freeway traffic jam.
Ask HN: Should I take a job at a start up?
I got an offer from a start up with 1.5m in funding for about 30% less pay but 5% equity, the total valuation of the start up is 6.5m, should I take the job, I think the idea behind the start up is good, I would be joining as cto and I think the work would be interesting. And if it’s successful in 3.5 years I’d probably make a bit of money. What do you guys think?
The whole conflict was about territories. It is not like north would care what happens to slaves in the south.

There was balance - half states slave states, half not. Territories being not slave states would disturb balance. They feared being outvoted. They feared that territories being not slave states would be addmission that slavery is wrong and put pressure on them to stop slavery.

Seceding makes you completely independent. You dont loose power, you gain it.
Tesla is probably only company with proper software engineering team that managed to create smart car platform.

Others trying to imitate its screens are shooting themselves into foot. If you are not able to implement continuous delivery, you should stick to hardware toggles. It's that simple.

The problem of screen being screen still stands in Tesla's cars, but much bigger problem is shipping crappy screens.
When you need to type a full name. Having a keyboard present could give a huge advantage. This is not equal to having a touch screen.

Next to that, my car has a system where you choose 1 letter and only the next possibility pops up. It decreases the need of a full keyboard. It's quite likely you only need to choose the first 3 to 4 letters.
> I do not know why prof chan used the phrase indefinitely. That is not in chinese. In fact the message that this is suspicion only temporary is clear.

“Indefinitely” in this context does not mean “infinitely”, it means “without a predefined end time” if it is merely suspected that the suspension will be lifted at so uncertain future time, “indefinitely” appears correct.
The metre was originally supposed to be based on a division of the Earth's circumference as well.
Apple CarPlay has the same integration but all the data can be kept private on your device
The funniest thing is, I would happily pay Google a reasonable amount each month to have access to their service! Caveat being that they agreed to drop all tracking and adverts, of course. But I love Gmail, Drive, Youtube and, most of all, Maps and Earth!

As things stand, though, if I gave Google any money, I'd be essentially wasting my time, because all I'd get in return would be dubious 'premium' features.
They should put screen tactile screen feedback into seat...
If I recall correctly, he trusted one of his maintainers too much, and that is the reason he no longer contributes to uBlock (his original project), but rather created uBlock origin.

The fact that there is no easy way to make this into a money project probably led to his relying so much on such a maintainer.

Part of the issue seems to be that the devs that actually value an OSS project don't have any way to persuade the company they work for to contribute to the project. If there was some way to be able to create a tier where a company would pay $12/month and be able to "something which benefits the company ?? bugfixes ??" - something support related or somehow, many of these projects (timezone, adblocker, ssh, even things like Matrix) could be funded.
did you ever try Kotlin ? whats your opinion there ?
The world of musical instruments went through this decades ago.

Yamaha DX7, one of the best-selling synths of all time, didn't have any knobs or sliders to edit its sounds. People loved the sounds, but editing them was so hard that few musicians did - that's why you can hear many DX7 stock presets in 80's music.

The 90's were the dark ages of the synth. Even the buttons went away, everything was in a menu now.

The synths thrived as virtual instruments, where adding knobs and sliders was cheap.

Fast forward to 2010's. Arturia, a big virtual synth maker, said: you know what? People love knobs, let's give them knobs. They made Minubrute and Microbute - and it was a smash hit.

Today, there are a plethora of synths out there, and you can program them all with knobs and sliders. For some (like Mini/Microbrute), there is no screen; for others (like Korg Mini/Monologue) it's non-essential, and you do everything with knobs and sliders anyway.

Modern professional gear no only does away with touchscreens, it pretty much does away with screens to a large extent. And where the screens are used, the menu-diving with minimal.

Because when you make things done, you want to interface in your muscle memory. And you don't want to be looking at things - screens in particular - to interact with them.

So if the maker of my $300 can figure this out and put over a dozen knobs on the device to control every single thing it does, I hope that the maker of a $30,000 car can do the same thing as well.
Not sure if we talk about the same chapter, but I don’t think it’s fair to characterize this behavior as being an asshole. He realized that he cannot force himself to work on a big problem. Instead he needed to start small with some seemingly inconsequential problem. This later grew into a major discovery.
Similarly I think it was Shannon.. that was operating differently from others. He wasn't organized and tried a lot of things as he saw fit, as long as it inspired him. He also did not care much about how it looked.
FYI OBS' main developer has a Patreon with $1.4k/month https://www.patreon.com/obsproject and an annual budget (for the entire project) of $90k through OpenCollective https://opencollective.com/obsproject
I like what you're saying, but I think I can improve the message a bit by shortening it:

>you should stick to hardware toggles

There we go, nothing to add now :)
Generics in Go, JavaScript class/private members, both sorting modules/dependencies are things that come to my mind.
While hard drive lasts, the trouble of disk based storage lies in the filesystem. I'd recommend running ZFS for long term storage.
So this isnt a way to actively use a 5.25" floppy for storage... but if you have data on one you want to save this is an option:

http://www.cbmstuff.com/proddetail.php?prod=SCP
That wouldn't be the worst future though. In my head, once the adverts are being hosted on the website domain, there'd be a lot more incentive to a) NOT deliver malware, and b) NOT have those wearisome video/sound/flashing/js-heavy adverts.
Even Jeff Bezos' own newspaper, the Washington Post, recently acknowledged the "scourge of fake goods" on Amazon.

https://www.washingtonpost.com/business/2019/02/28/amazon-mo...
I may work with java soon, so I was reading about Spring and it was yet again a dive into insane amount of verbose over engineering that I ran away from years ago.

It's true that post 8 Java becomes palatable. And someone on reddit just showed me this piece of stats:

https://www.jetbrains.com/lp/devecosystem-2019/java/

83% on java 8, java 11 nicely going up

I pity those forced to work with old techniques
This is so liberating to realize this in our own lives. This applies to personal as well as business growth.
The questionability of national pride aside, if Confederate flag brandishing Southerners truly only cared about national pride they'd do what Germans do: not fly the damn flag.

It's okay to have a problematic history. You don't have to be proud of everything your ancestors or their peers did. The Confederacy was a lose coalition of states that were defending their right to own slaves. If you were born in the South that doesn't mean you have to make up excuses for this or be sorry about it -- those things happened before you were born. But if you celebrate it, you celebrate slavery.

There are a lot of nuances you could argue about (e.g. how much slave owners should have been subsidised to cushion the economic impact of abolishment or whether the US should have allowed states to secede peacefully) but abolishment was the right thing to do and the states that took up arms to stop it were on the wrong side of history.

You don't see Germans find it socially acceptable to celebrate the accomplishments of 1930s Germany much. It shouldn't be socially acceptable to celebrate the Confederacy either. Especially if they have ancestors who fought for Germany in WW2.

Oh and the most absurd part of that excuse is that the flag in question was only in use for a very short time and specifically in the context of the war. This is like saying the flag of the Nazi Germany Kriegsmarine isn't about anything the Nazis did.
Sure, all you have to do is install some extra software and then it's almost passable as a decent Linux.

It's not a great selling point. Not everyone thinks it's productive to switch operating systems once in a while.
Indian farmers are using the sun to help water their crops
GCC should warn about 2^16 and 2^32 and 2^64
I've gotten the impression that some places force you to be online on Slack all day and therefore receive notifications. Maybe the Slack admin can see if you disabled notifications even, which could mean you get reprimanded. But I'm not sure.
The additions and improvements are great but I think we're developing a kind of shared 'Modern X' fallacy. Modern Perl, Modern C++, Modern PHP, Modern Java, etc. The 'modern' facilities and the styles and efficiencies they enable are invariably terrific but you can't comfortably and effectively make use of them without having to know the bulk all the non-modern stuff. Which ends up limiting the appeal to the sorts of people who were prepared to put up with pre-modern to begin with.
Touch screen is almost essential for navigation functionality. It makes life easier in car while not driving as well. I think what manufacturers should focus on is to implement touch screen functions on the driver side as physical controls. This way driver does not need to reach for the screen.
started reading some of the ideas and got put-off almost immediately. 'margin-top'? the owl-selector? Really? Why do we keep making our life more difficult than it should be? CSS is such a beautiful and interesting tool, yet we still decide to misuse it in trying to be too smart.

(
margin-top: you start dealing with parents inheriting the margin - which is an old quirk of CSS - it's a side-effect you need to control, so the usage of margin-top should always be avoided and margin-bottom should be the preferred solution
owl selector: performance implications - it's fairly bad from a performance POV to use it. Also, we live in a world where we have control over how the layout is generated, we should avoid using generic selectors
Source: I've been doing frontend and focused on CSS for over 10 years
)
Awesome website!

I have two remarks about the speed units displayed on the dashboard:

• Why is the Mach number showed while out of the atmosphere? It depends on the local speed of sound which is not really definable there

• Why is the speed not shown International System units? As a Kerbal enthusiast, I would love to see metres per second
It was a long time ago I had reason to start Windows specific software, but even back then wine did a really good job. It even had functionality for things like running IE versions in parallel, good for the frontenders in the team. And development hasn't slowed down since then.
Thank God for this, anytime I've had to use a touch screen while driving I've felt it's stolen so much of my visual attention that it's amazing I don't hit something. In contrast a physical knob can be used purely by touch without ever having to take my eyes off the road.
> Java got things like Lambdas and other modern stuff in recent years is great, but they are obviously incredibly late to the game. Which makes you wonder how long until the other good things will take.

I see it all the time and I always found this sentiment incredibly bizarre. It seemed to presuppose that there is language ranking that is just a matter of feature check boxes, or that the introduction of a feature is some sort of admission that it should have been there all along. I hear it leveled at Go in particular but Java as well.

I can't speak for C++, but at least in terms of the Java-the-language most of us would rather see a language feature absent rather than done poorly.

It's not just a matter of borrowing from other languages. Each language's features have particular interactions with one another.

There are a thousand ways that Java's lambdas or var could have been introduced poorly. Go has shown that there's definitely an audience for more austerity in language design.
Aren't all variables in Python already somewhat like a pointer? They're a reference to an object, not a memory address containing a value.
Genius discovered Google was scraping their lyrics
Not if they read Henry George and realize there's no reason to assign you the land value.
Sure but Twitch is here suing people in a real court. It's not about whether Twitch is forced to host your speech or whatever. Here the government is getting involved.
Yeah, because companies never abandon popular software (that might be Google's motto) and there are no "single humans" who work in projects for years.