skysight-inc/HackerNews huggingface dataset:
Ask HN: How many web developers *don’t* use a JavaScript framework?
I run a small site where I publish daily content. I use Express.js for the server-side logic, which works fine, but on the client side, I (until now) used jQuery with a set of (more or less unorganized) JS modules (bundled with Browserify).

I’m now moving to the Preact framework (very similar to React but only 3 KB), and my mind is blown by how much this new system improves code organization. Whereas before the source code of a page component (the HTML, CSS, JS parts) would be scattered around in different parts of my project’s directory structure and I would have trouble keeping track of which files exactly “belong together”, now it’s all neatly organized (e.g. each component in its own directory; logic + JSX template in one file, styles in another file).

Now, I’m not a “professional” web developer (my job is publishing content), but I can’t help but wonder, how many practicing web developers don’t use JS frameworks, and how do they keep their code organized? My old system didn’t work and I’m interested in hearing what I should have been doing.
I was about to google C!, literally. By the way, if C# is pronounced C-sharp, I wonder how C! would be pronounced ...
We've banned this account for trolling. National slurs are not allowed on Hacker News.

If you don't want to be banned, you're welcome to email hn@ycombinator.com with an indication that you'll only post civilly and substantively in the future.

https://news.ycombinator.com/newsguidelines.html

https://news.ycombinator.com/newswelcome.html
exactly. they could have locked-down library-only e-readers that only show the books you checked out.
I don't know if comparing "bugs" from AV software and OSs is apples to apples. Also, goto followed by erroneous goto looks like an error (I know) but

"keys are generated, they're inserted using the first 32 bits of MD5(serialNumber||issuer) as the key. If a match is found for a key, they just pull the previously generated certificate and key out of the binary tree"

doesn't
Australian here, so things are probably a little different, but I have direct experience using Ticketmaster to put on a large show at the State Theatre here in Melbourne.

Here's how the charges work here:

- You decide how much your ticket should cost. Let's call it $100.

- Ticketmaster takes an "inside charge" off that for the privilege of selling your tickets. From memory, it's around $8. So you get $92.

- Ticketmaster adds an "outside charge", which is the processing fee that the punter sees. So your ticket actually costs $108, plus any additional credit card, postage, etc. It's likely to end up costing ~$112.

So, that's a rort. What do they do for their $20/ticket? Very, very little. The main thing is that they have access to enormous EDMs that, especially as a small indie producer, you really want. They'll send a message or two out to that list for you.

Otherwise, their actual database software is hideous. Putting on a stage show involves complicated ticketing - what seats are reserved for the house, which rows are A reserve, which are B reserve, all of which can be different for each instance of your show, blah blah. I ended up writing my own database in FileMaker Pro to interface with theirs; the other producers I saw literally printed out the seat maps and highlighted them with marker pens before manually entering all of the seat information in and sending back to TM.

A disgrace of a company.
Can't vote on those, and it's five hysterical pacifist comments who conveniently forget that the DoD also owns the "homeless missions" by default, and complained when Obama didn't send more troops to Allepo.

Look, this video is aimed at mid-level to senior officers: leaders tasked to keep their people alive and executing the mission (humanitarian aid, asset extraction, etc.). This is a think piece for people who will go into harm's way.
CES Events
A full general purpose OS with a touch screen is definitely not a gimmick.

Surface devices (and the many other brands of Windows tablets that sell, which nobody ever seems to mention) are changing the landscape of enterprise computing in a way that iPads or Macbooks never can or will since Apple will always do whatever they can to keep you in some sort of walled garden.

Honest question - have you actually used a Windows tablet in any sort of professional capacity? Because I have and I think it's glorious. The first thing I did when I got one way back in 2012 was to install all of the desktop apps that we use to manage operations in our warehouse. Everything worked great and nobody had to rewrite any of our apps for an iDevice. Within a month everybody in management had one (a cheap $300 Dell Venue 8 Pro, which has lasted me over 5 years so far). That's no gimmick.
Richard Legg Commission Accelerator Review
I would be interested in the specifics of the spaces thing (knowing more about ones tools is good) but "10 minutes" to handle all the various issues and bugs that will inevitably pop up from wrangling macros?
I also live in Austin. I moved downtown and got rid of my car 1.5 years ago. I bike everywhere, including work every day (3 miles) and I don't have the sweats and showers problem. Unless you bike to work in the middle of the afternoon, it's not going to be above 90F. Also, it's not a race, you can take a slower relaxing pace, kind of like fast walking. If that's still an issue it's like saying you can't go outside because you are going to sweat. Maybe there is something I just don't get, but I've never had the sweats or needed a shower. If every time some one has a drip of sweat they have to shower there would be showers in every restroom. I've gotten sweaty eating too much or too many spicy foods.
> Fuck Ticketmaster.

How exactly is Ticketmaster at fault?

Their site is to quick for users?

They sell tickets to people who want to buy them?

They can't telepathically tell scalpers from normal people?
Right. I suppose in Rust you generally use variants and pattern matching when dynamic dispatching is required.
You sound like the exception, however. Are you taking into account maintenance, taxes, etc..?
I'm not sure if all this discussion about gut is meant to be a play on words or not, given the context of a toilet seat.
This exists.

My wife had one of those zippers on a white overshirt/sweater thing. It actually looked nice. It matched the drawings exactly.
Also R via the S4 OOP system, which was directly inspired by Dylan
Looking at the existing Intel line up, they have specialized instructions for some pretty oblique programming tasks, they have tweaked their pipeline and register pool to minimize bubbles in the pipeline path pretty effectively, and they have I/O channels that can out perform much of the gear out there. So what do you improve go after next?

How about moving the computation to the data? I.e. add ALUs and similar structures to DRAM, so there's nearly no need to move the data itself.

Here's an interesting paper a few years ago that dealt with memcpy() and memset() effectively without using any memory bandwidth:

https://users.ece.cmu.edu/~omutlu/pub/rowclone_micro13.pdf

The relevance here being that memcpy() and memset() are already specialised in x86 by the REP MOVS and REP STOS instructions, respectively.
past edit window, but:

s/showed that media organizations as/showed that media organizations are/

not sure what happened to my english there
Extra complexity. If you're building something simple, it's often quicker or easier to reason about if you just put it together with a basic web framework.

But if you're doing anything reasonably advanced or specifically need the "application-like" feel of an SPA, I don't think there are really any compelling arguments against it. Maaaaaybe the size of the initial payload, but there are strategies to mitigate against that anyway.
Are there any existing operating systems that can handle a dynamically-changing amount of RAM?

> The OS could gracefully page out to swap and power down the less efficient memory when switched to battery.

According to benchmarks, the SSD on the latest MacBook Pro hit 1.4GB/s. Even at this speed, it would take at least 10 seconds to flush 16GB of RAM to disk. I doubt your computer could do much while that was happening. I wouldn't call that very graceful.
Liquid sugar also has more calories than plant fibers; it's a bit of a strange comparison.

Many of the details people focus on are second order effects, and I have yet evidence to see that calorie in minus calorie out is a bad model for estimating weight gain.

If you have evidence for the calories being missleading by more than 10% I'd love to see it!
> And what else is this place, than a discussion about tough topics?

HN is a place for the gratification of intellectual curiosity. Partisan sniping isn't compatible with that—indeed there's nothing that destroys it faster—so we should keep it out of our comments here.

https://news.ycombinator.com/newsguidelines.html
Kamen ultimately learned that distribution of water purification machines was the most difficult problem.
Hitler told the world his 'secret plan', in advance, with Mein Kampf.

And, unlike most politicians, he did his level best to fulfill the promises he made before coming to power.

So, it's hard to escape the conclusion that a substantial proportion of the German people understood and supported his program, no matter how evil he was and it was.
Interesting. How does Rust handle types that want to do interesting things when copied, like bookkeeping or updating internal pointers? Maybe you just can't, which would preclude some kinds of intrusive data structures, or owning non-copyable mutexes for example. Does `drop()` get called on objects that have been copied from?
I agree with that in this particular case. I would imagine the next rev of the MacBook Pro will use some Intel chipset that can support LPDDR4 or something.

But I'm wondering about this in the general case. For some definitions of "power user", it would make sense for the system to behave differently when running on battery. Pushing these design decisions down into hardware is something Apple does better than others, as they control the whole stack.
As we've discussed, one issue is the big performance cost of these solutions. Anyone interested in working on an automatic C to SaferCPlusPlus[1] translator? It should address the performance issue[2]. And should be much more straightforward than these C to Rust/Go translators.

[1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus

[2] https://github.com/duneroadrunner/SaferCPlusPlus-BenchmarksG...
Help my son become YouTube famous
You realize that the place you get crab rolls (or anything for that matter) in grand central is a tourist trap? The neighborhood Thai place in NYC isn't going to be all that differently priced from the one in Dallas.
Yeah 10 minutes is quite a bit off, at least for me. The various issues and bugs that arose all came about when developing the data structures themselves - they didn't crop up in actual usage. Though my approach was to use a separate header and source file for each new data type I parameterised them by. So I had an "int_array.c" and an "int_array.h". And inside the header would just be function declarations generated by the macro. I basically didn't like the idea of dumping in a whole implementation of a data structure and all its operations with a macro every single time I wanted to use it. YMMV but I found it worked well.
Apple AirPods: More Than Just Headphones
My local government is doing deals to build a hydrogen electrolyser facility and car fuelling stations in my city, which is... interesting.

http://www.environment.act.gov.au/energy/growth-in-the-clean...
I have implemented pages that circumvent that detail with AJAX.

var hash = window.location.hash.substr(1);

Then you just quietly:

$.ajax( "example.php?hash=" + hash );

No one will ever notice the difference without inspecting their network traffic, and docile, agreeable users will gaze reassuringly at the anchor, and lull themselves to sleep, feeling placated by the presence of the warm glow of the # character in their address bar.

Here, see for yourself:

data:text/html,<script>alert(window.location.hash.substr(1))</script>#because+anchors+are+always+safe

Paste that into your address bar, and witness the simplicity.
Is it likely that work will ever be done? Oracle is, well, Oracle, and Fujitsu used ARM instead of SPARC for their new supercomputer.
Redis doesn't support encryption, that's true. But there is literally nothing stopping you from wrapping it's use using an encrypted connection & protecting your host. Nobody is saying your host must be open to unencrypted traffic.

> To my knowledge these are mostly local services

That's a good term for it. Redis is a "mostly local service", that's exactly what their documentation is saying. Just because it listens on a network interface doesn't mean it's intended to be publicly exposed to the internet. That's why they state explicitly that Redis is not intended to be publicly exposed to the internet.

There is a lot of other software running on your computer that makes the same assumption and uses the network stack to communicate with other processes but is not intended for exposure to the internet. Redis isn't doing anything different. Go ahead and run netstat and take note of how many running services have a foreign address listed, and how many do not, of how many are using https and how many aren't.

The funny thing here is I completely agree with the premise of the TLA - I agree that we should be using HTTPS everywhere. But "everywhere" means communication over the internet, and host to host communication inside of complex networks. "Everywhere" in this context does not mean interprocess communication on my computer. Redis is designed to allow interprocess usage, and restricting it's interface to HTTPS would actively harm Redis' design goals and prevent some people from using it they way they want. PostgreSQL is not designed for that kind of usage, it is solving different problems than Redis is.
Lots of manufacturers have done that. The high resolution screens are frequently an optional item with known costs to battery life, and which directly cost money. If as you suggest they wouldn't sell, I seriously doubt we'd be seeing them so pervasively.

Also, pixels densities don't scale linearly. Having a 200 DPI desktop screen isn't equivalent to a 200 DPI laptop screen, else phones would still be at 480 x 270 or whatever.
If the screen is the value, mbs will eventually become nothing more than expensive media players. The mechanical keyboard will disappear next, replaced by wireless voice recognition. That should save a few watt-hours. It isnt like anyone might want to do some actual work on these things.
A change in language does not completely solve the problem. Heartbleed was caused by buffer re-use without zeroing in between uses. A high performance network application could very easily do the same in another language.

See: http://www.tedunangst.com/flak/post/heartbleed-in-rust
Oh, actually, one thing that I'm not 100% sure about is accessibility.
I don't have much insight beyond their posted methodology which I have only a superficial understanding of.

http://graphics.wsj.com/blue-feed-red-feed/#methodology
I see a lot of articles suggest that Apple may no longer support developers, building only consumer devices. But what are Apple developers using internally? Would Apple maintain some hackintosh build for their developers? This seems unlikely to me. I would instead expect that we will soon see some new hardware suitable for developers. But maybe I'm wrong. They got rid of Xserve, which means they either are building server hardware they don't sell or they are using Linux or Windows for their own servers.
Something I'm confused about, and I do RF/microwave engineering work... There's a lot of debate about whether the "thrust" produced is real or is an artifact of the test environment.

But they're only testing at relatively low power levels like 40W, 60W, 80W. There are lots of commercially available sources for Klystron and TWT type amplifiers rated up to 3000W (used for C, Ku and Ka-band satellite earth station Tx applications). If the question is whether it's real, would it not make sense to build a HUGE FUCKING HIGH POWERED test rig with >1500W input?

If we're measuring possible "thurst" in micronewtons, and the claim of the original research is that the thrust will scale somewhat proportionally with the power level applied, does it not make sense to develop an unambiguous result by building a very high powered test rig?

In a theoretical scenario where a high powered test rig produces real measurable thrust that is far too great to be a measurement error, it would be an amount in millinewtons that is far too great to be explained by a non-thrust variable such as thermal expansion/contraction in the power cables, etc.

If the claim is 260 micronewtons at 60W, use COTS klystron and/or TWTA technology to build a 3000W test rig. Question answered.

here are some examples of high powered units for satcom purposes: http://www.cpii.com/product.cfm/4/13

edit: The thing is described as a "resonant cavity" and operates at 1.9 GHz: http://arc.aiaa.org/doi/10.2514/1.B36120

Looks damn near identical to a weird feed horn to me. The test article looks like a cone or horn antenna with a feed horn stuck onto the back of it. High power capable waveguides and feed horns for big-ass satellite telecom things (like an 11 meter sized C-band Tx/Rx earth station) are a well known science. You can buy them from a myriad of COTS sources.
How to Recover Deleted Files from Motorola G4 Internal Memory
Just to provide a counter point, I find it much simpler to work with SPAs. You can build a clean API which only deals with JSON, and ship a separate frontend which is deployed reliably to a CDN. I can see why 'one thing' would seem simpler than 'two things', but like functions and modules, often having more makes things simpler to grok.
The 'valid argument' is that if you're kicked out of your job as part of a large downsizing, all of that equity has essentially turned to scrap paper simultaneously. This is completely endemic to having equity in the company you work for: there's a tight linkage between the thing that pays you monthly and your investment portfolio.

Put another way, you're right that the equity is the only way that you are exposed to the company's success, but there are catastrophic ways you can be exposed to its failure.
St. Petersburg Paradox
Rental properties are essentially just treated like businesses. You invest in a capital asset and take depreciation on it. You pay taxes on earnings, which means you can deduct business expenses from revenue.

The detailed reality is a bit more complicated of course (there are rules specific to real estate) but that's the essence.
I tend to assume business will be three times the cost of economy; I suspect SFO to Shanghai is a weird route from a price perspective, much like London to NYC; very few landing spots available. I'd also consider Jan 21-Feb 3 to be pretty last minute.

AMS-IAD (two airports with good capacity) for the default Google Flight dates show 45k for economy, 99k for PE, and 120k (all INR) for business, all on reasonable airlines

> What normal human

One that's a True Scotsman only, I'd guess.
You pretty much just can't; that's what Manish was referencing above about this kind of thing being awkward.

It would be cool to have those things, but it also means that there's less "magic" stuff going on, which is nice. And it makes the semantics of stuff like this a lot simpler.

> Does `drop()` get called on objects that have been copied from?

Nope. In fact, Copy types can't have a Drop at all, but types that move don't have their Drop impl called when they move.
During the winter, I ride a bike with studded tires. It makes a huge difference -- even black ice is navigable with care. Knobbly ice is actually worse because it pushes the bike around.

I live in Madison WI, and was curious about how it compares to Amsterdam for weather: About 15F hotter and 15F colder, give or take, also with more day-to-day variation.

Winter cycling is definitely its own beast -- not just weather but also darkness and the attack of road salt on the bike. I've got a dedicated winter bike that comes out when the salt trucks come out.

Much as I love riding throughout the year, I don't even mention it when I'm encouraging people to commute by bike. For anybody who's on the fence, getting them to try riding once per week during good weather is a great start.
> Are there any existing operating systems that can handle a dynamically-changing amount of RAM?

Some implementations of Linux do this on exotic hardware (NUMA).

> Even at this speed, it would take at least 10 seconds to flush 16GB of RAM to disk.

It needn't happen atomically.
>it's that too many developers don't really give a shit about their user's experience as long as they can save even a couple of minutes of their oh so precious time.

Really? The developers' fault? Whose time are we talking about here?

The company's time? In workplace development, it's managers putting down on the development effort that goes towards optimization / performant design - and not for crazy reasons, simply because in many market conditions and applications, it looks like throwing money away on the balance sheet.

If you're talking about open source projects, any of a developers' time we get is gratis; this would be a pretty good example of looking a gift horse in the mouth.
The high level answer is "absolutely" and the more detailed answer is "it depends how you build them".

If built without server-side rendering, they're often obscenely slow. Browse the Modern Web™ on 2G and it's rage-inducing. A comment I made when this same question came up recently: https://news.ycombinator.com/item?id=13212789

If built poorly, all of the browser features you've come to rely on break. Like the back button. And links. And scrolling.

Does your website need to be accessible? Better remember to build that in too.

How about SEO? AMP? Browser history?

Most of this stuff works out of the box with traditional HTML and server-side rendered pages. So even though it's 2017, I think the question you should still ask yourself is, do you plan to re-implement all of this functionality? If not, 10MB of the hottest new JS framework may not be for you...

(And this is coming from someone who builds SPAs for clients for a living.)
The forces they are claiming are not sufficient to stay in space. Also, some sources of error would provide actual boosts in orbit without being useful as spacecraft engines.
Does anyone know of any other companies that are similar to DeepMind, but based in SF?
> what RFI are you near that was breaking normal headphones?

Mobile phones. The good old br t br t brrr tt br whenever the mobile phone thinks it has low signal and fires at full power and causes interference.

A video demonstrating it: https://www.youtube.com/watch?v=8TWXCVbBTcc
Pearl Jam tried to boycott and sue Ticketmaster over these same practices in the 90's, and they lost. Good luck beating them now..
Maybe the price? 2 for $1 deals or 50 cents each. A cheap eat at 3am.
> Important that there are news sites from each side of the spectrum, e.g. all the way from beitbart(sp?) to cnn

So, the whole insane far right to moderate corporate right spectrum?
I guess my poorly worded answer was trying to highlight a further collapse in options at the high end.
Good point! My boosted board electric longboard has a 99W battery. My ego longboard has a much larger battery and it was a super pain having it shipped overseas.
> understanding and
> negotiating terms

This sounds like a good job for a flight search engine.