Control-P doing stuff other than Print
-
-
What if I need to compare 6 long and very similar functions in a stupid 1200-line source file to figure out how I can combine them into a single one? Much easier on paper where I can see all of them at once.
You don't have access to a diff tool? That's why I assumed you were limited to archaic tooling.
BeyondCompare is faster
Beat me to it.
-
There are definitely times when trying to work out what's happening in a 1000LOC method would be helped by being able to refer to another part of the file in a known place on my desk would be more useful than having to scroll up a few hundred lines and lose my place.
Hmmm... Visual Studio at least, and I'm sure other editors, have a split view were you can view two parts of the same file.
Or open the file twice in two tabs or windows (depending on editor).
Or break the code out into multiple files.
Can you Ctrl-T (find class/method) or Ctrl-F files on your desk? How much code fits on your desk? a couple thousand lines? Can it hold millions of lines just and still allow easy navigation? The computer can. That's why they were invented.
-
Ctrl-P files on your desk
If it's a wooden one, yes. You'll need to buy the camera plugin first though.
-
-
How do you think I got them there?
I actually forgot Ctrl-P was for printing.
"Find Open File" was the operation I wanted to describe.
-
-
-
The last time I wanted to print something it was an RFC. We celebrated the occasion by binding it in a plastic cover and keeping it in the closet - I've referenced that copy a couple times since. Paper has its uses, prime among them being it doesn't use screen space.
-
At this workplace, I have more screen space than I know what to do with.
-
-
pauses between letters? I was just thinking of the dots and dashes
The length of the pause has syntactic meaning (separate letters vs. separate words).
-
I know he won't reply to this.
Blakey started this topic, didn't he? Home Yep. So that's why my stealth summon didn't work.
-
Paper has its uses, prime among them being it doesn't use screen space.
Neither do unopened files.
-
-
-
Any decent code editor should have print functionality. How else would you take a picture of the code on a wooden table to submit to TDWTF?
-
If you're doing anything with Sublime (or Notepad) that requires printing, you're using the wrong software.
Tex, with code completion and the like. And a pdf preview window. TextMate had it, so why doesn't Sublime?
-
Any decent code editor should have print functionality. How else would you take a picture of the code on a wooden table to submit to TDWTF?
- Take screenshot of code in editor
- Paste into image editor such as Paint
- ???
- Profit!!!
Seems rather obvious now, doesn't it? Too bad! Ⓒ™ @abarker 2015
-
-
but at 4k$ (i last looked several years ago i'd be shocked if they weren't cheaper now) is a bit steep for a keyboard
IIRC that one's been out of stock for years, so apparently he's not making them any more.
The smaller one, which is like a laptop keyboard in terms of key count, is "only" $1500.
-
He said in OP he was talking about developer tools. I can't wait to get farther in the thread and see his ranting.
Also, hanzo'd etc, both on this and my previous posts.
-
http://www.zazzle.com.au/marble_texture_case_for_ipad_air-256757523297335108
Considering it's for an iPad Air, it's kind of a shame that that's only made of "marble texture" plastic, and not real actual solid marble.
But that's not important right now: I think my TL3 status is somehow leaking out of Discourse...
-
-
At this workplace, I have more screen space than I know what to do with.
If you had 4 or 5 large-ish monitors (25"+), and something like a Microsoft PixelSense (née Surface) for your actual desktop, I think that'd be the most awesome work environment ever. Not even sure you'd need a keyboard, maybe throw a Kinect into the mix instead...
if I need to rewrite a bunch of code I'm not familiar with. It's far easier for me to analyze code on paper, since I can scrawl notes on it, highlight sections, circle blocks, etc. And I can lay out all 12 pages on my desk and see the whole source file at once without scrolling or being limited by screen space.
I think I have a 21st-Century solution for you!
-
What if I need to compare 6 long and very similar functions in a stupid 1200-line source file to figure out how I can combine them into a single one? Much easier on paper where I can see all of them at once.
1200 lines? Pfff! I worked once (end-03 to end-08) in a place where a bunch of "fine colleagues" had managed to create, line by line rather than in one sitting, a 1.6 MB C source file. If that file had been only 1200 lines, those lines would have been over 1300 characters each, on average! In fact they were of normal 80-ish-max size, so you get a slight hint of how big the file was (in line count, that is)...
-
Sounds like the C port of SSDS.
-
I was trying to find the post where @blakeyrat complained about Go having implicit interfaces and that somehow meaning a program could "accidentally" print an error log on an expensive printer, but instead, I found this:
-
Should've used Discosearch on that import data you have...
-
Tex, with code completion and the like. And a pdf preview window.
That's a good point. I hadn't thought you might want to print the result of evaluating code, only what's displayed in the editor.
TextMate had it, so why doesn't Sublime?
I suppose this deserves an Eric Lippert style answer: "Because no one designed, planned, implemented and tested [feature]". There's an opportunity cost to implementing features. If the Sublime dev(s) took the time to implement printing, it would probably be missing something else. Something else that more users were more interested in. Something else that has resulted in selling more licenses, maybe?
-
As soon as I have some time to spare, I'll improve my keymap to work with both my current keyboard layout and the US layout.
... snip ...
If you ever finish your own keymap, let me know about it. Maybe together we can work out a sensible and – above all – consistent alternative to the stupid default one that is worth sharing with everyone.
Great idea! I don't know when I'll have time, but I'll keep this in mind when I do.
-
I suppose this deserves an Eric Lippert style answer: "Because no one designed, planned, implemented and tested [feature]". There's an opportunity cost to implementing features. If the Sublime dev(s) took the time to implement printing, it would probably be missing something else. Something else that more users were more interested in. Something else that has resulted in selling more licenses, maybe?
True enough, I guess, but the whole point of Sublime was that developers were buying Macs to be able to use TextMate. So they cloned it. Unfortunately, I found it to be an inadequate replacement with a fairly large learning curve.
-
a program could "accidentally" print an error log on an expensive printer
Reminds me of the mainframe introduction I had to take a few week ago. At least 30 minutes explaining why one shouldn't use certain short commands (some thing like 'q') but use 'qp' because the 'p' option instructs the damn thing to not print out a sheet of green-line to log an administrator logging off.
-
At least 30 minutes explaining why one shouldn't use certain short commands (some thing like 'q') but use 'qp' because the 'p' option instructs the damn thing to not print out a sheet of green-line to log an administrator logging off.
What are defaults, and how are they relevant to the world of mainframes?
-
not real actual solid marble.
I was hoping in my search to find real actual solid marble cases somewhere. I was dissappointed.