Better HN
topnewbestaskshowjobs
Log inSign up

capableweb

37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions

Curabitur pretium dui sit amet quam pharetra, at condimentum turpis auctor. Maecenas vitae varius sem. Sed vel ante massa. Nulla a leo est. Morbi quis pulvinar nulla, et imperdiet nibh. Curabitur varius felis tempor nisl vulputate, id accumsan libero placerat. Sed mi odio, auctor ac lacus vel, sollicitudin mattis dolor.
Submissions

comment 5y ago · link · parent

The tone is dangerous? What does that even mean?

The article is an interview with a Heroin user. It's as dangerous as an interview with a sex-worker. The interviewer even seems to bring up some interesting counter-points to the interviewee.

In the end, the interview is just providing a voice for the person getting interviewed. Are you saying that interviewing people who might do harm to world is dangerous?

comment 5y ago · link · parent

On the flip-flip side, he's one person spreading harm reduction about drugs that are currently frowned upon. If you look in society right now, you have people (and businesses!) marketing much more harmful drugs to people of all ages with fancy ads and more. Not a lot of people are reacting to that though.

comment 5y ago · link · parent

I think you're missing the point of the article a bit. Everyone knows Heroin is dangerous and it's iterated on in the article as well. Only responsible and healthy individuals should self-use drugs, generally speaking.

Then you can also argue that you might not have lost your friends only because of Heroin the substance, but also how people with heroin addiction is "treated" and frowned upon in society.

I think what the article is trying to say is that harm reduction is a much more human and possibly effective approach to fighting real addition. Compared to other ways, which some of them include "there is no such thing as responsible drug use, it's all addiction" and treating people as such.

comment 5y ago · link · parent

Right, I mistook the subject at large and misread VMS as VMs. Thanks!

comment 5y ago · link · parent

If you're dealing with anything Apple you're probably running macOS VMs on Apple hardware. At least for things like build servers, signing and such (CI/CD) when the projects start growing.

comment 5y ago · link · parent

Surprisingly fine compared to what? I probably only remember my own phone number at this point, people around me maybe 2-3 numbers that they most commonly use. Imagine having to remember everyone's number in order to write to them on whatsapp, I'd forget about 99% of my friends then.

Compared to the number of names I can remember, numbers basically enter and exit my brain while people names and domain names can stay in my head what feels like forever.

comment 5y ago · link · parent

The web is surprisingly segregated. Seems there is at least three versions of everything (from my perspective), from websites like the typical social network to utilities people use day to day, english/spanish/chinese.

comment 5y ago · link · parent

I'm not sure how this was done, or how cell towers really work (or where they exist) but many of them appear to be in lakes, rivers and so on. What's wrong here, my understanding or the map?

comment 5y ago · link · parent

I had to select a Provider on the left side before the masts starting showing up.

comment 5y ago · link · parent

> But for dynamic pages or SPAs it more often than not leads to going back to a page in a broken state.

Definitely a page concern, not the browsers. This problem is also easy to fix and a solution has been known for many years by now: handle navigation via the URL always! (or, modern take: via the history API). A modal opens? The URL should change and because the URL changed to that specific path, show the modal. Now users can bookmark or go back/forward without any issues of pages being broken.

comment 5y ago · link · parent

The closest you get for how browsers should act regarding history is part of the HTML spec here: https://html.spec.whatwg.org/multipage/history.html

Of course, the exact implementation is not specified, browsers are free to either implement cached behavior, which I think Firefox does as well, or just a naive refresh.

comment 5y ago · link · parent

Yes, calculations have been done. Search for "wage theft" and there is bunch of research about this. The US is not alone in this and it's also not a new problem, it's been like this for a while now.

Here's a good starting point: https://www.epi.org/publication/epidemic-wage-theft-costing-...

> If these findings in New York, Chicago, and Los Angeles are generalizable to the rest of the U.S. low-wage workforce of 30 million, wage theft is costing workers more than $50 billion a year.

> All of the robberies, burglaries, larcenies, and motor vehicle thefts in the nation cost their victims less than $14 billion in 2012, according to the FBI’s Uniform Crime Reports

> in the United States in 2012, there were 292,074 robberies of all kinds, including bank robberies, residential robberies, convenience store and gas station robberies, and street robberies.3 The total value of the property taken in those crimes was $340,850,358

Worth noting that that report is from 2012. Things are surely worse now.

Edit: Sorry, I misunderstood what you meant. I'm not sure if there is any research around employees slacking off on work time. If there is, it's probably conducted by companies themselves and therefore private.

comment 5y ago · link · parent

It's almost as HN is filled with actual real human beings with different opinions and emotions, some of them think legalizing prostitution should be done and some of them think using your body for industry favors is bad.

comment 5y ago · link · parent

You're right, not every single programming language on this planet does have functions.

But, nearly all of them have functions, at least as a concept. Then in some languages they are called methods, sub-routines, procedures and more, but the concept are mostly the same. A collection of lines of code that does something, probably with a name.

7575.

Folklore – Anecdotes about the development of Apple's original Macintosh

1 points · by capableweb · 5y ago · discuss

comment 5y ago · link · parent

Not to be the one who is the one, but 1k lines per day sounds like the opposite of productive. If you still have to add/remove such large swaths of code, you're surely doing something weird.

Still a great achievement to produce a bundler and minifier as a one-person team, but not sure we should use the amount of code line changes as a measure for productivity.

comment 5y ago · link · parent

> In that context, what does it mean to be "first class"

It's easy. First, what does it mean to be "first class"?

> a first-class citizen (also type, object, entity, or value) in a given programming language is an entity which supports all the operations generally available to other entities. These operations typically include being passed as an argument, returned from a function, modified, and assigned to a variable

Secondly, how does that apply to functions?

> [First class functions] means the language supports passing functions as arguments to other functions, returning them as the values from other functions, and assigning them to variables or storing them in data structures

In what way doesn't Ruby have first class functions? This article explains it better: https://codequizzes.wordpress.com/2014/05/19/ruby-methods-ar...

In practice, because of Proc, you can use Proc wherever you'd use functions and get the same effect in practice, so this is not a big issue. But just because Ruby has Procs, doesn't mean it has first class functions, which is a specific concept.

comment 5y ago · link · parent

Well, if you're not interested in factual discussions and you simply "choose to believe trends", all bets are off since you're pulling in your feelings about a programming language into your arguments. Hope all goes well for you anyway!

As a counter-point, the biggest disasters I've seen has been involving either C++ or C#, but in the end I think the reason they were disasters were because of the programmers (and their ego) rather than the programming languages they worked with. C++ is plenty open and without safeties, but that doesn't mean you have to use it like that.

comment 5y ago · link · parent

NodeJS has even more "batteries included" frameworks than Golang. Sails, Hapi, NestJS and Adonis are probably the most popular right now, at least from my viewpoint (traditional SaaS web development)

comment 5y ago · link · parent

Why actually and not just confirm? Also, investing in something internally means absolutely zero as none of those investments seems to have paid off so far, since there has been absolutely nothing deployed or done by Amazon in public to fight the review spam.

comment 5y ago · link · parent

Nope! You can't pass functions, return them from other methods and so on, so it's not first class.

What you do have in Ruby is Proc, that can be used kind of like first class functions, so you don't really miss out on much.

comment 5y ago · link · parent

Ok? I've seen projects go pear-shaped in probably 20 different programming languages at this point, and I guess after a certain point of experience, you start to realize that failures seldom have to do with the programming languages themselves, and more about the people actually writing and managing the code (and everything else around development).

comment 5y ago · link · parent

Symfony might be the odd one of the bunch.

Jokes aside, Laravel is probably a more likely contender to provide a Rails experience for PHP.

And it's easy to get clouded by anecdotal data, I'm sure I'm biased as well. But after some time in the industry, it matters more who the person is that is using the framework, than the framework itself. If you put an equally skilled developer with the same amount of experience in either Symfony or Rails, I'm sure they can be as productive as the other. But then skilled developers tend to gravitate towards Rails more than Symfony, so hard to judge in the real world.

comment 5y ago · link · parent

I myself usually opt for the "small set of composable libraries" way of development nowadays, but I've worked with teams using Buffalo and Beego which kind of provides a "batteries included" approach that Rails follows too.

comment 5y ago · link · parent

While I agree with most of your comment, "Ruby doesn’t even have first class functions" sticks out. Not because it's not true, but because it doesn't really matter as Procs are first class in Ruby and can be used in all the same ways, so it doesn't really affect things except introducing something you might need to learn coming from JS or any other language where functions are first class.

comment 5y ago · link · parent

Replace Rails with any framework and you'll have the same amount of success. I've done the exact same thing across Ruby, PHP, Golang and tons of other frameworks/languages and never had problems if following those steps.

Problems usually come from when teams start with point 3 and 2 when in reality they should stay lean in the beginning.

comment 5y ago · link · parent

> Afaik, it's a very minor update to allow X

Said every software developer ever, shortly before realizing that an entire ecosystem has been built upon X and any change would have to ripple through what is now our global financial system.

comment 5y ago · link · parent

> That said magnetico should definitely be a standard node in the network, it's light enough that it can do it

Maybe in the future. As things are right now, magnetico is a huge bandwidth eater and will literally eat all available bandwidth if it can, doesn't seem to have any limits setup today so if you want to be able to do other things at the same time, you have to limit the process/IO manually.

comment 5y ago · link · parent

> I think many concert pianists will live their entire life without a single noticeable mistake at a live performance.

I don't know what concerts you've gone to, but to the ones I've gone to, I've definitely heard mistakes from the pianists sometimes and a quick search on Google reveals it's a lot more common that you think, especially since you think that these masters (because I do think they are masters, don't get me wrong) never ever make any mistakes in their entire life.

And no, playing the wrong note is not the only mistake you can make as a pianist. Most mistakes are simple mistakes that can happen to anyone. The reason you haven't noticed them so far, is that most professionals are very good at hiding their mistakes on the fly and not draw attention to it, so you think everything is well. But if you have a keen ear and you're familiar with the piece they are playing, you'll definitively notice some mistakes sometimes.

It's not the end of the world though, and I personally think it brings a more personal touch to the performance.

comment 5y ago · link · parent

> No mistakes are made, however.

Let's be realistic though, even experts fail sometime, but what sets them apart is the recovery and continue to train to have less mistakes, or even work in the mistakes so you don't notice. Many pianists make mistakes look like improv, and the audience won't notice the difference.

Since the topic is Lion Dancing, the very first video linked in the article has a part where the team does indeed fail, timestamped it for you here: https://youtu.be/fKEoe4ANGOU?t=291

Same goes for anything really. Figure skating is very hard and the ones competing in the Olympics are the best of the best. But still, push yourself hard enough and eventually you'll fuck up somewhere, even if it's just a tiny bit. Even the pros does that, and some would argue you're not pushing yourself hard enough if you're not on the brink of failure.

1
252253254
307