37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions
comment 5y ago · link · parent
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
comment 5y ago · link · parent
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
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
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
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
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
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
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
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
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
comment 5y ago · link · parent
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
comment 5y ago · link · parent
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
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 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
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.