News for hackers. Stuff that matters.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by geophile on Saturday December 03, 2016 @09:50AM (#13095860)
How does a programmer evaluate this machine without discussing at least one of vi and emacs, and the absence of real Esc and Fn keys?

By the way, I visited an Apple store and played with the new 15" MBP. It's even worse than I thought. I downloaded the latest Gnu Emacs, and the Fn virtual keys were not available. And in no case did I see the Esc and Fn virtual keys present at the same time.

Also ridiculous is the fact that the touch bar is not available on any keyboard other than the built-in MBP keyboard. So you now have to choose between the features of the touch bar and the comfort of external peripherals.

It is astonishing how many bad decisions were packed into this one revision of a formerly great machine.

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by whorleater on Saturday December 03, 2016 @11:54AM (#13096372)
>If you need access to function keys (F1–F12), hold down the Function (fn) key at the bottom-left of your keyboard. Touch Bar changes to show the function buttons for you to select, and then it returns to its previous state when you release the Function key.

From https://support.apple.com/en-us/HT204436.

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by geophile on Saturday December 03, 2016 @09:52PM (#13098571)
I have my MBP (with real function keys) set up to not require than I press the Fn key to operate them. Pressing Fn to access the function key is an undesirable workaround.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by Obi_Juan_Kenobi on Saturday December 03, 2016 @10:44PM (#13098690)
Can you not do that with the new macbook? I figured you'd be able to do this context-dependent, so that they'd be function keys for relevant programs.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by whorleater on Saturday December 03, 2016 @10:59PM (#13098722)
You definitely can, geophile is just being obtuse.

>For some apps, you can make the function keys display permanently in Touch Bar: In System Preferences, choose Keyboard. Click Shortcuts. From the left sidebar, select Function Keys. Click the “+” symbol, then navigate to the app and select it.

From: https://support.apple.com/en-us/HT207240

If you want always function keys, you can do that too:

>If you prefer the top row of keys to always behave as standard function keys without holding the Fn key: Choose System Preferences from the Apple menu. Click Keyboard. Click the Keyboard tab if it's not already highlighted. Select "Use all F1, F2, etc. keys as standard function keys"

From: https://support.apple.com/en-us/HT204436

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by geophile on Sunday December 04, 2016 @10:58AM (#13100325)
I actually looked through System Preferences. I did not see a new Touch Bar option, and it didn't occur to me that a non-keyboard device would be configured under Keyboard. My bad. While this does improve things, I would still rather have real keys. Tactile feedback is a thing.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by nodamage on Sunday December 04, 2016 @04:11PM (#13101795)
Note: the second link only applies to non-Touch Bar devices.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by an_account on Saturday December 03, 2016 @12:13PM (#13096454)
Which is exactly how it works by default on old MacBook pros, since almost all the function keys were overwritten to control functions by default.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by noahwilde on Saturday December 03, 2016 @12:18PM (#13096470)
It appears you can't opt into it permanently? I'd be interested in finding out if you can just set it to always show function keys.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by pilif on Saturday December 03, 2016 @12:42PM (#13096591)
Even better: you can configure it per application in the foreground.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by noahwilde on Saturday December 03, 2016 @01:11PM (#13096715)
That's great.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by pjmlp on Saturday December 03, 2016 @12:07PM (#13096430)
Not every programmer cares about vi and emacs.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by smonff on Saturday December 03, 2016 @12:30PM (#13096525)
Only something like 1/3
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by pjmlp on Saturday December 03, 2016 @02:03PM (#13096966)
Everyone on Mac that actually produces software for macOS, iOS, tvOS, watchOS.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by mcphage on Saturday December 03, 2016 @12:08PM (#13096435)
Did you not read the article? That was addressed directly.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by enraged_camel on Saturday December 03, 2016 @12:07PM (#13096433)
>>How does a programmer evaluate this machine without discussing at least one of vi and emacs, and the absence of real Esc and Fn keys?

What percentage of programmers use vi or emacs?

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by drawkbox on Saturday December 03, 2016 @12:17PM (#13096462)
Use or say they use? vi and emacs are alot like some programming books people say they have read to show they are a programmer because they think that it what it means. My guess, < 10% with all the IDEs and text editors out there today. On servers or VMs they are common, in actually coding, probably overstated.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by ardaozkal on Saturday December 03, 2016 @12:44PM (#13096601)
My laptop's top left corner of keyboard recently stopped working (new one shipped), and well, I've only then realized how much I use vim. I don't use it for programming, but well, it's the text editor I use the most for config files. I had to install a virtual keyboard (onboard) just to be able to press esc. So, while no esc isn't be a reason to not buy the new mbp for me (price, lack of magsafe and the dongle madness are the reasons I don't buy, though), it is still be very, very annoying.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by nol13 on Saturday December 03, 2016 @12:37PM (#13096568)
Admit I use nano whenever editing through ssh, fake escape key was still the first thought through my mind when I saw that though. They at least have a little braille bump where escape is supposed to be? (if not new accessory opportunity? can i get a design patent on that?)
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by x0x0 on Saturday December 03, 2016 @02:31PM (#13097115)
intellij has a vi mode that doesn't suck
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by anonbanker on Sunday December 04, 2016 @09:43PM (#13103035)
Mac users are poseurs, got it.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by threeseed on Saturday December 03, 2016 @12:21PM (#13096481)
Quite a lot. If you are doing anything on remote servers it's likely to be the only text editor. But I guarantee you that 99.999% of them only know (and need to know) the basics e.g. saving file, search, find/replace etc.

I would say maybe 1% of developers actually use them as an IDE given how poor they are compared to something like IntelliJ or Visual Studio.

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by buckhx on Saturday December 03, 2016 @12:37PM (#13096565)
1% is WWWAAAYYY too low. The stack overflow survey in a sibling comment had 30%. Some of us don't love all the baggage that comes with a full IDE.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by lsadam0 on Saturday December 03, 2016 @12:55PM (#13096651)
I would bet that it's really in the single digit range. I think lots of programmers dishonestly claim to use it because its some sort of badge of honor to say you do.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by intrasight on Saturday December 03, 2016 @02:14PM (#13097020)
Is more from old habits than a badge of honor. Fewer new developers use emacs or vi for coding. But I think "single digits" is too low too. I've been to talks by Microsoft engineers where they code using vi or emacs. One of the reasons is that the IDEs are always a step behind the languages.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by pjmlp on Saturday December 03, 2016 @04:30PM (#13097587)
> One of the reasons is that the IDEs are always a step behind the languages.

Depends on the language, some of them are IDE friendly, e.g. Java, C#, Eiffel, VB, Delphi, C++ Builder,

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by addicted on Sunday December 04, 2016 @06:57AM (#13099699)
A lot of developers who use IDEs Ike Visual Studio also use VI style bindings with modal development styles within those IDEs.

When Visual Studio Code came out, the VIM extension was one of the most sought after.

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by hellofunk on Saturday December 03, 2016 @01:29PM (#13096796)
I see vim or emacs used in just about every programmer meetup or dev on-site I visit. Every single one. And the numbers are much, much higher than 1%.

If you get used to editing vim or the extreme ease of laying out windows on the fly, jumping between window configurations and saving UIs in emacs, then even IntelliJ seems quite old-fashioned. I've tried 3 times to switch to CLion by JetBrains and every time I immediately miss all the ways emacs has streamlined my development life. (I use emacs with vim-emulation)

Vim keyboard macros (supported in emacs), the use of the "." key for all kinds of editing magic, and other things are extreme improvements over old-school editing that most "modern" editors use. The makers of VS Studio seem to think that a better autocompletion is going to improve the lives of developers, and other similar cockpit-like features. It's just basic text editing prowess that actually improves their lives, and that is where vim and emacs shine.

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by x0x0 on Saturday December 03, 2016 @02:32PM (#13097119)
I'm not a hater, but emacs with vim-emulation. I've now seen everything :D
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by hellofunk on Saturday December 03, 2016 @02:40PM (#13097170)
Evil mode is its name, and it is very popular. Best of both worlds.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by smonff on Saturday December 03, 2016 @12:29PM (#13096521)