4 ms·
Because of the popularity of VS Code on HN, I decided to give it a try. It's good. Much better than Electron or Atom for my workflow. And much faster IME. T
by reaperducer 8y ago
Because of the popularity of VS Code on HN, I decided to give it a try. It's good. Much better than Electron or Atom for my workflow. And much faster IME.
The one thing that keeps me from switching from my current IDE is the lack of Whitesmiths brace formatting. I'd pay up to $15 for a Whitesmiths plugin. Until then, I can't change. But I'll keep checking.
- dman 8y agoWhat language do you write?
- munchbunny 8y agoFrom a point of anthropological curiosity, do you work in a team where everyone uses that style of brace indentation? Is it actually common and I've just never encountered it before?
- reaperducer 8y agoI don't think it's common, but one of the projects I work on has the entire codebase and documentation already in Whitesmiths. I don't know much about the history of how it came to be that way, but it's my understanding that pretty much everyone else who's ever worked on the project came either from big iron, or had big iron in their background. Maybe that's where it came from. I could just be used to it now, but I find it much easier to follow what's happening in the code than Ratliff or K&R. Horstmann and Lisp aren't bad, either. They make a lot more sense than some of the other options that litter the screen with braces in seemingly random places.
- arcticfox 8y agoWhat is big iron?
- ebrenes 8y agoIn my experience, it generally refers to mainframes or other specialized and powerful servers.
- hyperdimension 8y agoIt means mainframes.
- deleted 8y ago[deleted]
- atq2119 8y agoI've never worked in a Whitesmiths codebase, but I always thought it looked nice. The one downside compared to what I mostly end up working in is that it wastes some vertical space because the opening brace is on a new line.
- copperx 8y agoIn which codebases is Whitesmiths formatting used? It looks so wrong if you're used to any of the other styles.
- PascLeRasc 8y agoIt's popular with ancient Windows C/C++ projects, so of course developers who use this have never seen other styles.
- evan_ 8y agoVS Code uses Electron.
- reaperducer 8y agoThanks for clarifying that. I must be thinking off another editor that used Electron as its base, and only the Electron portion stuck with me. I went through and deleted all of my unused editors a few months ago, so I wasn't able to go back and make a complete/accurate list of the ones I've tried in the past.
- evan_ 8y agoNuclide, maybe? There are a bunch of Electron-hosted text editors and for awhile it seemed like atomic-theory-based naming conventions were going to take over.
- jonathankoren 8y agoNuclide is just a giant “Let’s reinvent everything” add on from FB add on Atom. Frankly, it has a bunch of very weird and hard to configure functionality that’s already provided (or can be provided) as separate plugins for Atom. It’s really awkward and painful, reaks of FB. All that said, the remote code editing has the best editing UX, but at the same time, super sucks because it requires a special nodejs server to run on your remote system, and that requires yet another watchman daemon, and all this needs to stay version compatible with your Nuclide plugin. I don’t recommend it, unless you currently work at Facebook. Otherwise, just use Atom.
- slig 8y agoFor those not familiar (as I was), here's what Whitesmiths style looks like (straight from Wikipedia): while (x == y) { something(); somethingelse(); } finalthing();
- master-litty 8y agoThe horror!
- quickthrower2 8y agoYep the loop never runs, is infinite, or x and y are member or global variables that are mutated elsewhere.
- Dayshine 8y agoHey, I'm familiar with VS Code language extensions. Depending on your language you may or may not be able to do this. The controls you have are: - increaseIndentPattern: If a line matches this pattern, then all the lines after it should be indented once (until another rule matches). - decreaseIndentPattern: If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches). - indentNextLinePattern: If a line matches this pattern, then only the next line after it should be indented once. - unIndentedLinePattern: If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules. They are all regex patterns. If you think your language would let you do that, I can try and throw together something for you.