News for hackers. Stuff that matters.
Re:macOS deprecating scripting language runtimes, including ... by TimTheTinker on Thursday June 06, 2019 @01:45AM (#20111918)
I think this is great, but at the same time, auto-installing homebrew ought to be an option (perhaps enabled by default) when installing the “XCode command line tools”.

Better yet, offer a “developer setup” app that sets up the command line tools, homebrew, iTerm2, updated bash/zsh, and more.

Apple would do best to pave the cow paths developers have already worn into macOS, especially when it comes to command line utilities. A dev setup app would just make it quicker/simpler and pave the way for newbies to get into development.

Re:macOS deprecating scripting language runtimes, including ... by Traster on Thursday June 06, 2019 @03:56AM (#20112457)
I think the second you start auto-favouring one particular tool you're in trouble. Why iTerm2? Why not Alacritty? iTerm2 is more popular now, but 5 years down the line when someone else has come up with a iTerm2 replacement how is Apple meant to decide to switch? Where does Apple draw the line on which tools to add and which to leave out?

It sounds like what you're really asking for is something like Ninite for mac, which I think frankly is safer to stay as a 3rd party thing, rather than Apple getting super-involved in choices that are going to be very user taste specific.

Re:macOS deprecating scripting language runtimes, including ... by skohan on Thursday June 06, 2019 @05:56AM (#20113015)
Yeah I don't see the need for any of this to be provided by Apple. I want the platform I'm working on to be minimal and agnostic, and let me worry about what tools I'm using and how.

If there's really demand for some kind of base developer toolkit, why not leave it up for a 3rd party to put together some kind of installer to set it all up for you?

Re:macOS deprecating scripting language runtimes, including ... by TimTheTinker on Thursday June 06, 2019 @09:33PM (#20120874)
> why not leave it up for a 3rd party to put together some kind of installer to set it all up for you?

Because a potentially interested 4th grader likely won't ever know such a thing exists.

And even if she did, the teacher likely won't let her download and install it from the internet. But if she asks for permission to run a "Install Command Line Tools" app in /Applications/Utilities/ and check the "Install homebrew" option (or "Install MacPorts" - I really don't care either way... perhaps provide options for both), that's far more likely to get a "yes".

Re:macOS deprecating scripting language runtimes, including ... by skohan on Friday June 07, 2019 @02:19AM (#20122094)
In my experience kids are very tech-savy. I don't think the 4th grader who can't discover homebrew without a system setting for it is going to be able to do much with it once they've got the terminal open.
Re:macOS deprecating scripting language runtimes, including ... by TimTheTinker on Friday June 07, 2019 @12:14PM (#20126078)
Kids can only get savvy with exposure. Those lacking certain privileges (like having a computer at home) likely haven’t had any of that exposure.

I was only able to learn BASIC and the DOS command prompt because I was in a multi grade classroom, and an older boy (5th grader) whose mother paid for him to have programming lessons taught me on the classroom computer.

The teacher had no clue about any of that... she only knew I started spending “too much time” on the computer.

Re:macOS deprecating scripting language runtimes, including ... by TimTheTinker on Thursday June 06, 2019 @03:01PM (#20117879)
My point wasn't so much a plug for iTerm2 or anything else in particular. The purpose of a dev setup app would be to (a - primarily) provide a great default dev environment for curious kids, and (b) pave the way for some of the most popular dev configurations.

I know homebrew and iTerm are pretty popular, and that there are other popular options as well. Why not list the top n in each category, in randomized order, with short descriptions and "learn more" links?

Every time I start work on a different Mac, it usually takes me at least 30 minutes to set it up. It would be nice to have a quick button to set up command line tools, iTerm2, homebrew, zsh, and git. Making such setup available from an app would not only speed up the process, it would also gives the dev environment visibility to newcomers and "first class" status from an IT perspective.

Re:macOS deprecating scripting language runtimes, including ... by Aissen on Friday June 07, 2019 @04:25AM (#20122654)
They already favored ruby, python and perl over other (less popular) interpreted languages. Ditto for favoring bash, then zsh, etc.
Re:macOS deprecating scripting language runtimes, including ... by konart on Thursday June 06, 2019 @08:20AM (#20113790)
iTerm is a great choice and Alacritty does not have tabs. And tmux is not always an alternative.

PS: also a quake-like mode.

Re:macOS deprecating scripting language runtimes, including ... by saagarjha on Thursday June 06, 2019 @04:49AM (#20112718)
> I think the second you start auto-favouring one particular tool you're in trouble. Why iTerm2? Why not Alacritty?

Because iTerm2 is an excellent Mac app? I don't understand your aversion to favoring one tool over another: macOS itself is a tool that I prefer to use over Linux because it's nicer, just as iTerm2 is nicer than Alacritty.

Re:macOS deprecating scripting language runtimes, including ... by frou_dh on Thursday June 06, 2019 @03:20AM (#20112293)
I reject the persistent meme that iTerm2 is somehow essential.

Apple do a great job with the builtin Terminal.app

Re:macOS deprecating scripting language runtimes, including ... by wyufro on Thursday June 06, 2019 @03:37AM (#20112358)
Just that the prompt automatically goes on a new line makes iTerm2 so nice though. As well as the built in timing of commands, jump to previous prompt, double click selects matching parentheses, etc. it's those little details.
Re:macOS deprecating scripting language runtimes, including ... by coldtea on Thursday June 06, 2019 @04:30AM (#20112636)
>Just that the prompt automatically goes on a new line makes iTerm2 so nice though.

Not sure what you mean here, but I don't think that's something you don't get, or can't get, on Terminal.app. In fact, that's the default...

Re:macOS deprecating scripting language runtimes, including ... by saagarjha on Thursday June 06, 2019 @04:48AM (#20112708)
If you have a command that doesn't print a new line, the prompt normally ends up on the same line as the output of the last command. iTerm can "fix" this.
Re:macOS deprecating scripting language runtimes, including ... by skohan on Thursday June 06, 2019 @05:52AM (#20112995)
See this is where I would rather have my terminal obey the program rather than imposing its own behavior. IMO a good terminal should be extremely minimal, and anything extra should be opt-in.
Re:macOS deprecating scripting language runtimes, including ... by snazz on Thursday June 06, 2019 @08:04AM (#20113666)
Don’t shells usually fix this? I know that Fish at least includes a little Unicode “return” arrow when it appends a newline.
Re:macOS deprecating scripting language runtimes, including ... by saagarjha on Thursday June 06, 2019 @07:06AM (#20113331)
This is an option that you can enable. It's not on by default.
Re:macOS deprecating scripting language runtimes, including ... by donatj on Thursday June 06, 2019 @05:59AM (#20113029)
zsh does this out of the box, and Apple is defaulting to it in Catilina.
Re:macOS deprecating scripting language runtimes, including ... by aloer on Thursday June 06, 2019 @07:51AM (#20113579)
iTerm is amazing when using many spaces because of the hotkey overlay.

Projects and project parts are separated via spaces but I never want to have to find the right terminal for a process, instead I use a single window with animations disabled (to show immediately) and excluded from app switcher via settings so that it will only ever show up when i press alt-space no matter which space I'm on.

Together with tabs and native panes it works just great and requires very little setup

Re:macOS deprecating scripting language runtimes, including ... by TimTheTinker on Thursday June 06, 2019 @02:56PM (#20117808)
I agree, Terminal is great. But I prefer iTerm because it supports split panes (including saving/restoring a particular configuration) without tmux.
Re:macOS deprecating scripting language runtimes, including ... by pmilla1606 on Thursday June 06, 2019 @08:13AM (#20113744)
I know this isn't exactly what you're talking about but I've found it invaluable: https://github.com/atomantic/dotfiles

It's a script that installs all kinds of useful stuff and sets some - in my opinion - nice options. I just recently started a new job and I had a brand new Macbook Pro up and running (as in: ready to start working) in less than 30 minutes.

A good tip is to fork it and modify it to your liking. At a new computer you can then just pull down your version and install away.

The only default that's missing is Sublime Text.

Re:macOS deprecating scripting language runtimes, including ... by teach on Thursday June 06, 2019 @08:32AM (#20113880)
So the ironic part is this script would no longer work after these deprecations because installing Homebrew requires a Ruby interpreter[0].

Obviously these things are fixable but a whole lot of people are going to have to do a lot of work to workaround having _no_ scripting languages installed by default on a fresh Mac.

[0]: https://github.com/atomantic/dotfiles/blob/master/install.sh...

Re:macOS deprecating scripting language runtimes, including ... by zimpenfish on Thursday June 06, 2019 @08:36AM (#20113910)
Looks like they're ahead of this problem already.

https://twitter.com/zbeekman/status/1136250914539483136

> Once Homebrew no longer has to support a macOS with a system ruby, we can even run with a considerably more up-to-date version, modulo concerns for supporting older linux(brew) OSes. We have a portable ruby that we can use to bootstrap things.

Re:macOS deprecating scripting language runtimes, including ... by Cthulhu_ on Thursday June 06, 2019 @03:37AM (#20112359)
I'm not a big fan of Homebrew or Macports myself, they both feel kinda hacky. Wherever possible I prefer installation packages from the official site.

I think / hope Apple will do their own package system, maybe as part of the app store, for developer tooling like that. If only for improved security.

Re:macOS deprecating scripting language runtimes, including ... by jarcane on Thursday June 06, 2019 @01:56AM (#20111966)
Homebrew is not the only package provider for MacOS.
Re:macOS deprecating scripting language runtimes, including ... by reikonomusha on Thursday June 06, 2019 @01:57AM (#20111977)
Would Apple be in the wrong simply being opinionated about using Homebrew?
Re:macOS deprecating scripting language runtimes, including ... by mschuster91 on Thursday June 06, 2019 @02:44AM (#20112158)
Yes, because Homebrew's practice of installing packages runs contrary to the requirements of a multi-user system.
Re:macOS deprecating scripting language runtimes, including ... by wyufro on Thursday June 06, 2019 @03:38AM (#20112367)
MacPorts is sponsored by Apple, or at least used to be.
Re:macOS deprecating scripting language runtimes, including ... by raimue on Thursday June 06, 2019 @05:06AM (#20112801)
MacPorts was originally started as DarwinPorts as part of the OpenDarwin initiative at Apple [1]. Apple continued to sponsor MacPorts by providing hosting of website, repository, and build servers at Mac OS forge [2] until it closed back in 2016. The project then moved to GitHub and their own servers.

[1] https://trac.macports.org/wiki/MacPortsHistory

[2] https://www.macosforge.org/

Re:macOS deprecating scripting language runtimes, including ... by anentropic on Thursday June 06, 2019 @04:56AM (#20112762)
TBH it's weird they haven't built their own
Re:macOS deprecating scripting language runtimes, including ... by saagarjha on Thursday June 06, 2019 @07:25AM (#20113428)
Re:macOS deprecating scripting language runtimes, including ... by hasahmed on Thursday June 06, 2019 @02:03AM (#20111999)
Yes
Re:macOS deprecating scripting language runtimes, including ... by csomar on Thursday June 06, 2019 @02:45AM (#20112163)
I'm not sure why you are getting downvoted. I'd not like it if Apple will opinion-ate and make any package manager a default.

Package managers are for software developers. They are comfortable installing them on their own.

Re:macOS deprecating scripting language runtimes, including ... by kzzzznot on Thursday June 06, 2019 @03:05AM (#20112229)
I expect he’s getting downvoted because he doesn’t offer any reasoning (or substance at all) along with his opinion.
Re:macOS deprecating scripting language runtimes, including ... by csomar on Thursday June 06, 2019 @04:47AM (#20112705)
The reasoning was in the question itself. Sometimes a prompt answer is a better one.