Oh. Dropping IO.inspect into the pipeline is embarrassingly obvious! I can't believe I didn't think to do that. I always used IO.inspect as a pretty printer during development but I guess I didn't think it would return/pass through its input. Thanks for pointing that out.
I clearly hadn't bothered to read the 'Getting Started - Debugging' page on the Elixir website at any point.
> You can’t throw a REPL wherever your want in your code
In my experience, I found I could throw a `require IEx; IEx.pry` pretty much anywhere in the code to get a REPL. This seemed like a unique superpower of Elixir to me. Where have you found that this isn't possible?
I agree with the pipe states point.
My main complaint with Elixir is that I'd discover really stupid mistakes with run time errors. The sort of things a bunch of other languages I've used would preclude at compile time. I never dug into more advanced debugging or Dialyzer though.
I'm inclined to agree with you, despite everybody else seeming to fundamentally disagree. I'm not convinced by either of the arguments in response to your comment. We have huge amounts of unemployment in the west and an economy that is tending towards more automation and fewer jobs for humans, so why would a decrease in the size of the labour force matter?
It's clear that people will continue to live longer and that birth rates will continue to fall, either by necessity (overpopulation) or due to factors like this. I hold the view that far too many people unnecessarily have children due to societal norms, family pressure, a bizarre and slightly narcissistic desire to have their genes passed down to future generations (adoption is incredibly important.) Obviously I'm not saying having children is wrong, just far too many people see it as a necessary part of their life when it really shouldn't be. Having children is an inherently selfish decision and unless you're prepared to sacrifice a huge amount of freedom to afford your children the best upbringing, then maybe having children isn't for you.
Maybe I have too much faith in modern medicine (I doubt it, modern medicine is incredible) but I fully believe a trend of dropping sperm count is not apocalyptic. It'll probably result in benefits such as fewer undesired pregnancies. The important thing is to ensure that people of any economic status have access to fertility clinics, and for IVF and related procedures to not be cost prohibitive for non-wealthy people.
I don't. I'm situated in a very stereotypically "rural England" type place — a deeply Conservative area, within the sea of Blue you see on maps of our election results[1].
In regard to Brexit, there's actually a strong libertarian case for leaving the EU. I personally think it was shortsighted of people (and somewhat reckless) to vote with this mindset given our current government, as the exit of the EU that is desired by those libertarians is not that which will occur. However, this is a much more contentious opinion amongst people I know, many of whom would argue that this was a valid and commendable rejection of the status quo. Saying this, I don't know if the libertarian argument for Brexit was strongly enough represented in the referendum to tip the balance. Given the tiny margin by which Leave won[2] (< 1.3 million votes. It's worth noting that this majority corresponds to about 1/3 of the electorate), I think it's possible.
I'm not sure why your comment has been downvoted, this is a very reasonable point. I agree with the linked comment in that I know I am in the minority (votes-wise) but the point I was making is exactly that. Many many people have completely lost faith in politics because it seems that no matter what goes wrong or the number of insane policies presented by the Conservative party, the public opinion seems unchanging. I think there is a very complex set of reasons for this, a lot to do with the media here and the internet communities you mention.
For the above reasons I contend that these are biases, merely observations. I observe everybody around me supporting significantly more libertarian ideals and so I wonder who and where are these other people who hold opposing ideals. I'm sure I could find out the answer from census and statistical data but that doesn't bring me any closer to understanding the reasons why these people vote as they do. Part of my theory is that these opposing ideals are not ideals at all and are in fact a reflection of the efficacy of the marketing campaigns of right-wing politics.
I completely agree and have edited my comment to explicitly state that I do not support the Labour Party. I do however think that a Labour led coalition (the only other possibility?) would be the lesser of the two evils at the moment.
As a person from and living in the UK, I'm equally shocked and appalled as you. Everybody I know is baffled by and vehemently against these ridiculous proposals. Quite frankly I have no idea who is voting for the Conservatives. Anybody with half a brain cell and not pushing an evil agenda seems to despise the Conservative party. (I'm sure there are some reasonable Tory supporters out there, I've never met them though. I also think in this current sociopolitical climate it's plain dangerous to vote for the Conservatives, even if you believe you have good reasons to support them.)
As a country, we've lost faith in politics and I fully expect this to be demonstrated by a very low turnout for the general election in June. The issue with this is we currently have no strong enough opposition to the Tories (thanks to an incredibly effective smear campaign against Jeremy Corbyn, the leader of the Labour party, led by the media and perpetuated by the Labour MPs themselves) so will end up with an even greater Conservative majority and another 5 years of this dystopian madness. I very much hope I'm proven wrong.
I'd be happy to elaborate on some of these points if you're interested; I have a few theories about what is currently going on and what has led us here. It is both very interesting and incredibly upsetting to observe and analyse the state of politics in this country at the moment.
Edit: I should state that I am not a Labour party supporter, I was just trying to give a vague overview of the state of our politics at the moment.
Browsing through the full range of apps, I'm personally unconvinced by their selection. A lot of the provided apps seem to provide similar functionality, in some cases being attached to competing services. I think I'd rather have a smaller range of more carefully curated apps.
That being said, it's very nice to see a novel approach to app distribution. The low price is particularly enticing.
This exists and is called Ungoogled Chromium[1]. As you'd expect from the name, it blocks all background communication with Google servers. I use it as my main browser and find it faster and more stable than both standard Chrome and Firefox, YMMV.
I'm very surprised to see that nobody has mentioned OneTab.[1] With my use of Chrome, it performs fine with hundreds of tabs open until I attempt to reopen them after a restart, at which point I'll be waiting for about 5 minutes until I can do anything. Firefox seems better for this as it only loads tabs when I actively select them IIRC.
Regardless of performance, with that many tabs open I just find browsers unpleasant to use because you can't see the title of each tab and switching between them is a mess. OneTab is fantastic - I have it as a pinned tab on all my browser windows and I send it all the tabs I'm not actively using. For me it also doubles as a short-term bookmarking system so I don't clog up my pinboard.in bookmarks with articles I have not yet read etc.
Out of interest, do you actually use this? I saw it recommended on HN before and tried it. I found it has one of the most awful UIs I've ever seen. I found it completely unusable and dropped it immediately. I'm not saying people shouldn't use it if it works for them but I don't think I could honestly recommend it to anybody.
I feel like most of the complaints here are about stateless password managers/generators in general. If not being able to change your master password is an issue to you, then this type of password manager is not for you. The cryptographic arguments seem more valid and worth considering if you plan to use this. I was planning to build something very similar to this as I came to the same conclusions as the creator of LessPass, that the existing solutions are not satisfactory for my use case.
My current choice in software of this type is Twik (https://github.com/gustavomondron/twik) because it has an Android app available from F-Droid and an extension I can install in Chromium. The browser extension is especially good but not without faults. For daily use I find this adequate but I find myself in situations where I need to access a password outside of a browser or my phone which is a huge pain. Other drawbacks include no ability to change or bump the password to a new one without creating a new profile. Keeping my phone and computer in sync is also slightly annoying as you need to manually copy the UUID (long-ish complicated string) which is used to identify each profile.
I think a lot of these issues could be overcome by relatively simple solutions just by applying some sensible design without going all in and trying to be everything at once like LessPass is. If, for example, Twik generated QR codes for its profile keys which you could scan in the mobile app, it would speed things up massively. If it had a compatible CLI interface and a macOS menu bar application, it would be fantastic.
I'd also rather not bother with creating an account with another service just to sync my password version numbers and silly password rules that sites implement. The ability to self-host LessPass is nice but do I really need to bother with this? What's wrong with syncing this information in a simply formatted, maybe also encrypted, text file with services I already use such as Dropbox or Google Drive? Also, why is the default password length 12 characters? It's a small gripe but I thought the whole point of using software like this was to enforce good password practices.
I think https://getvau.lt/ gets pretty much everything right other than having to remember the rules of each password every time you generate it which, for me, isn't much better than remembering different strong passwords for multiple sites.
I've been hoping for some time that somebody would create a solution that I feel makes sense so I was excited to see this post but unfortunately it seems to have too many drawbacks for me personally to incorporate into my daily life. The open source nature of a lot of these products is very helpful and will hopefully reduce the effort I will have to eventually put into building a solution that gets out of my way.
You've got some really great selections there! I've picked a fairly random list of albums and EPs from a range of electronic music, I really hope you find things you like amongst it. Also I don't want to be the genre police but I wouldn't call any of this EDM, that term seems to have been adopted by a type of music of which, I guess I'll just say I'm not a fan. In no particular order:
Arovane - Tides (2000)
Tim Hecker - Virgins (2013)
Donato Dozzy - K (2010)
Autechre - Amber (1994)
James Holden - The Inheritors (2013)
Andy Stott - Faith In Strangers (2014)
Jon Hopkins - Immunity (2013)
Recondite - On Acid (2012)
Lemon Jelly - Lemonjelly.ky (2000)
Max Graef - Rivers Of The Red Planet (2014)
Pantha Du Prince - Black Noise (2010)
Plaid - Reachy Prints (2014)
Rival Consoles - Sonne (2014)
Shlohmo - Bad Vibes (2011)
St Germain - Boulevard (1995)
Traumprinz - Mothercave (2013)
Valerio Tricoli - Clonic Earth (2016)
Romare - Projections (2015)
Space Dimension Controller - Orange Melamine (2016)
Actress - R.I.P (2012)
Massive Attack - Mezzanine (1998)
Rob Clouth - Clockwork Atom (2014)
And shouts out to Datassette who appears to have done a bunch of the instalments on the music for programming site (mixes/playlists, whatever they are. I've never listened to any of them). This EP is gorgeous:
Having used Facebook mainly for the messaging functionality for years now, I'm amazed I never knew messenger.com existed. It's interesting to consider that, although I use an ad-blocker, it must be in Facebook's interests to keep people on the main site in order to throw adverts at them, further infiltrate their lives etc.
These were also my thoughts when reading the article. I have always associated red with old and green with new. I also do not think red conveys the negative meaning the author suggests it does.
I do, however, believe the author has a very strong argument relating to code comments. I'd like to see a shift towards this style of highlighting in the future as I often find myself having to modify nearly every colour scheme I use to make comments far more prominent.
I clearly hadn't bothered to read the 'Getting Started - Debugging' page on the Elixir website at any point.