4,107 karma · joined Feb 17, 2010 (16y ago) · 1,490 submissions
https://coderescue.com
comment 14y ago · link · parent
I've said above, and I'll say again: With respect to helping you out with Java, it's really nice. It goes beyond what SlickEdit does, though SlickEdit does a few things for you.
ctags sucks; that's a given. SlickEdit goes beyond simple regex highlighting, but it's not completely AST-based syntax checking etc. Of course Eclipse only gets THAT right in Java, not the languages I actually care about (C++ and Lua).
Most of my coding these days is in Lua. Instead of having an editor write code for me because the syntax includes lots of tedious manual labor, the syntax itself is clean and I write fewer lines of code.
>It's sad that there is not a modern, GUI based, editor, with pluggable language support for multi-language use, using full AST power (regex highliting and ctags is so last century) while also being lean and mean...
Not sure if you're being ironic here, but I think it WOULD be possible. Almost certainly not if it's written in Java, however. You lose "lean and mean" the moment you start up the JVM, IMO.
Another thing I haven't tried is the SlickEdit plug-in for Eclipse:
https://www.slickedit.com/products/slickedit-core
Though since SlickEdit itself is heavy, I'm not sure that layering one heavy environment on top of another makes any sense. Maybe the plug-in isn't as heavy? Don't know.
comment 14y ago · link · parent
Second, I hit Shift-Up-Ctrl-Left-(Release Shift)-C. I wasn't selecting the LINE, I was selecting the sentence, which ended in the middle of the line. And the keys are all grouped usefully AND ergonomically. Between the arrows, shift, control, home, and end, I can select characters, words, lines, here to the start of line (or buffer), here to the end of line (or buffer), and throw in insert and delete and I can copy, cut, and paste, as well. All using keys that are standard to almost every app on Windows (and Linux, for that matter). When it's that easy, why would I also feel the need to train for a completely different set of key strokes?
I was giving as an example how MOST of my finger key memory works even when in Chrome, and the same is true of almost any Windows application I'm in. I don't need two vastly different sets of keyboard skills depending on whether I'm programming or writing on HN.
When I AM in SlickEdit, I can hit 'up' 'ctrl-c' to copy the previous line (copy is set up to copy the current line when no text is selected). If I want to select lines like you did in vi, I can hit ctrl-l. A square block, ctrl-b. The current code block, shift-ctrl-]. Everything nice and mnemonic, and automatically "visual". But most importantly, no modes to remember, manage, or otherwise distract me from coding.
You can argue all day that one key press plus or minus doesn't make much difference. But some key combinations are well designed from a user interface perspective, and some less so -- and regardless of the merits of the design, using the one that works everywhere that ISN'T vi means you're that productive everywhere.
Where vim/gvim really falls short for me (beyond anti-ergonomic key bindings) is that I really want it to be an IDE, not just an editor. I can ask SlickEdit to open a file by typing a few characters of its name and then selecting it from a list of all files in the project that match. I can tell it to build and end up with a list of errors that I can jump to. I can ask for symbol cross-references throughout a project and it will find them. Even if it's a symbol like "init" that's defined in a C++ template; it might find a few it's not sure about, but mostly it can figure out what classes derived from that template and show me just that list, ignoring other functions called "init".
vi can do SOME of these things, but in general only if you jump through a lot of hoops to get it all set up. The last time I tried to configure "tagging" so I could get references, though, it completely failed with respect to templated classes. Maybe it's better now, but back then it worked in SlickEdit and not in vi.
comment 14y ago · link · parent
I did use Emacs for several years before moving on to something more ergonomic. I still have muscle memory for several of the more common keystrokes.
I haven't really felt like there's been a Truly Great editor available since Brief, which I stopped using because they never upgraded it from DOS to Windows.
It's not about "getting my head" around something. To the contrary, I am very good at picking up new software and using it, whether it's designed well or not.
It's about having seen what a REALLY powerful editor can do for you, and having other editors never really live up to that standard. SlickEdit is close, and even better in some ways than Brief was, but it's not perfect.
So did you actually understand what I wrote? "Stockholm Syndrome" applies when you've been abducted, and you fall in love with (and defend the actions of) your abductor. I'd say you're not disabusing me of my original notion.
comment 14y ago · link · parent
It's pretty well established that forcing a user to keep track of mode is just bad UI design. I actually use vi relatively frequently, to the point of having internalized the mode concept, and I STILL occasionally make mistakes. If you've got vi in six different shells, how CAN you remember what mode they're all in? You can't. You need to look. Which interrupts the flow of development, at least for me.
And I can't forgive the extra characters you need to type to do just about anything. I was just using gvim on Linux, for example, and to paste from the system clipboard took 4? 5? character presses. You simply can't defend that as reasonable.
For serious development I would NEVER switch to vim/gvim, at least without some major keyboard remapping to, well, the defaults that you'd find in any modern editor. It's more than getting used to it--more keys means slower development, period.
Just now I was able to select the previous sentence with about 3 keypresses. Copy and paste would be a standard ctrl-c/ctrl-v. No worrying about mode, or counting characters -- and I'm in the edit window in Chrome. It shouldn't take me more characters and a completely different set of finger reflexes to do the same thing in my programming editor.
comment 14y ago · link · parent
It has burned dozens of hours of productivity as it:
1. CHANGES the configuration of the project every time it loads. Seriously. I had to revert the project every time I ran Eclipse because it would break the configuration (which I originally set up IN Eclipse, so I don't know what was wrong here).
2. Fails to notice important files have changed outside of its knowledge (no auto-refresh). God forbid I change a file in git or in another (decent) editor.
3. Fails to refresh when I hit F5 (randomly the F5 key is or isn't assigned to refresh; I haven't figured out the pattern).
4. Gets stuck and won't build if there's an error it doesn't understand -- and you have to "delete the error" to get it to build. WTF?!
5. C++ support? Really? I tried the recommended plug-in, and despite looking everywhere that made sense, I was unable to figure out how to give it an include path. No one has been able to help me here, either. If it's configurable somewhere, then they sure made it hard to find. So all my "C++ integration" resulted in lots of undefined functions and includes, which was worthless. Needless to say, auto-complete was also worthless, since it couldn't find the definition of my shared_ptr class.
6. WAY too heavy. My favorite editor (SlickEdit) is already too heavy. Eclipse makes it seem light and nimble by comparison! Running the editor only takes about a MINUTE on my laptop, and it eats resources like mad.
7. Important project configuration details are hidden in opaque binary files, so you can't just check your project environment into source control.
8. Some kinds of paths end up being stored in the project as absolute paths, meaning that you can't use relative paths that would work in anyone's repository -- and you can't share those projects between Linux/Mac/Windows at all.
That's off the top of my head. I'm sure there are plenty of issues I'm not remembering.
I went into using Eclipse really, REALLY wanting to like it. It was everything I was looking for -- free, cross-platform, lots of plug-ins for different features, a huge supportive community. But I just can't like something that screws me at every turn, even if it can suggest ways to fix my Java code.
Some of these issues may be caused by a poorly written Android plug-in. I honestly don't know. But it's caused me hours of pain, and many other Android developers I've talked with have similar horror stories.
Using Eclipse to build for Android was almost completely non-deterministic, even when doing CLEAN builds; I gave up on using it to do my Android builds entirely, switching to the Android Ant build process. Which has its own issues...
And Eclipse doesn't support the in-file completion I'm talking about either, though without all the other problems I might have tried to hack something into place.
FYI, I just saw an announcement recently of a Lua plug-in for Eclipse that sounds great. Too bad Eclipse has sucked SO badly for me that I don't even want to try it. They're doing interesting things to try to guess autocompletions in Lua, which is a hard problem to get right.
Also FYI, SlickEdit doesn't come from Redmond. And Developer Studio has a WAY better debugging environment than Eclipse's, hands down, possibly in part because the underlying GDB doesn't support as many features.
If Eclipse works for you, great. The Android development team apparently uses it and likes it. Maybe you know how to use it much better than I, or maybe I'm used to better tools. We'll never know. I know some people still use Notepad or equivalent for coding, which strikes me as insane, and Eclipse is certainly better than that. But Eclipse tortured me daily while I was using it, and I can't imagine going back to it.
comment 14y ago · link · parent
I thought the term would be clear, but apparently not. A quick search of that term gets you to the correct results, though. [1]
"RF" is specified to let you know it's not an infrared remote, so tipping it won't end up sending the "beam" in the wrong direction, and it will (probably) be more reliable in general than an IR remote would be. Certainly the range should be longer.
comment 14y ago · link · parent
It's honestly not perfect, but for C++ and Lua it's unequaled in getting references and autocompletion correct.
And since I also have a Windows target, I can take full advantage of the very clean debugger that Microsoft Developer Studio provides (for the cross-platform code). I spent a year with Linux on my desktop, trying every debugger tool available, and nothing comes close to working as well.
Yes, I've tried vim and emacs. I even use vim when I need to edit over an ssh link to a server. And I could imagine getting my fingers used to the many-more keys I'd need to hit to do everything I do in SlickEdit in vim, but vim is STILL is missing two of the most important features I use (the cross-referencing/smart completion I mentioned above, and an auto-completion from the same file that I get by hitting shift-ctrl-< or ->). The features vim does support require more keys -- and keeping track of editing "modes", which is something else I don't want to have to do. And since I can write code much faster using those features (and fewer keypresses), I can't imagine switching.
I used SlickEdit on Linux for the year I was there, but it's based on X, and doesn't integrate with modern desktops as well as a result. It even has a built-in gdb wrapper, but unfortunately it can't do as much as Developer Studio on Windows. :(
comment 14y ago · link · parent
In which case I'd also like a link to the "expedited review" page. :)
comment 14y ago · link · parent
Aside from slowing down iterations a lot, it means you want to REALLY test well before you push an iteration to them. Just heard about a top grossing iOS game that pushed out a new revision with a bug that affects 1% of their users ... causing THOUSANDS of tech support emails. And it's still another week or so before the fix will be published.
To say this causes a chilling effect on experimentation on iOS is an understatement.
comment 14y ago · link · parent
Wouldn't work quite as well for games that allow "real" gravity to affect objects on the screen, but it would be awesome for, e.g., racing games where you tip to steer. Honestly I'm not a big fan of tipping the device to steer when the UI otherwise stays constant to the screen, so this would be an improvement for such games.
comment 14y ago · link · parent
comment 14y ago · link · parent
I misspoke when I mentioned the ice shelf. That part IS at least partly floating, and therefore already displaces as much sea water as its mass can account for. I thought it wasn't, but I was wrong. BUT...the other numbers still stand.
comment 14y ago · link · parent
Oops. Looks like you're off by a factor of 1000, since Wolfram is saying the total is 131.6m sq. miles (487k sq. km). [1] But what's three orders of magnitude among friends...
The Antarctic Ross ice shelf is about 188k sq. miles, and up to 750m thick. Again according to Wolfram Alpha, that makes 3.653×10^17 L (liters) of ice. 92% of that is 3.36×10^17 L (liters).
And if you spread that many liters over the (Wolfram Alpha) area of the the oceans, you get nearly a meter sea level rise (0.9856). That's one (albeit large) shelf.
The Greenland ice sheet comes to almost 4.27×10^18 L (liters) of ice (based on numbers from Wikipedia and an average thickness of 2.5km) [2]. We're up another factor of 10 here, with 12.530 meters of rise now.
According to WikiPedia, the Antarctic Ice Sheet contains 30m cubic km of ice, and they claim it's worth 70m of ocean depth. [3]
But let's crunch some numbers. If you assume 92% density you get 2.76×10^7 km^3. Again in Alpha I get 80.96m [4], or 265'. The truth is that, as the sea level rises, the SURFACE AREA will change (because so much land will be flooded), and so even though the combined rise of all ice melting might be 300' at the current area of the oceans, the estimates are that it would only rise about 200', plus or minus.
So how do the numbers not agree with me? THIS is why it's useless to take an engineer's view of something like climate change. Misplace a decimal point (or cube when you really mean 4pi r squared) and suddenly you're making all kinds of crazy assumptions. And yes, I forgot the surface area of a sphere too, but the more serious error is assuming your rusty memory of a math equation can prove that ALL THE EXPERTS are wrong and you're smarter than they are.
[1] http://www.wolframalpha.com/input/?i=area+of+all+oceans&... [2] http://en.wikipedia.org/wiki/Greenland_ice_sheet [3] http://en.wikipedia.org/wiki/Antarctic_Ice_Sheet [4] http://www.wolframalpha.com/input/?i=%2830+million+cubic+km+...
comment 14y ago · link · parent
He also doesn't note that, if we end up with "sea levels hundreds of feet higher and in general, GREEN from pole to pole" that a significant number of the world's cities would need to be moved or surrounded by monumental dikes because of the ~200' rise in sea level that would accompany the melting of the Antarctic and Greenland ice shelves. BILLIONS of people would be displaced.
Oh, and he ignores the sea becoming more acidic, causing the likely extinction of most higher sea life as the food chain collapses. Corals are already on the brink worldwide. At least there will still be jellyfish.
comment 14y ago · link · parent
I'd never seen it before the first interview. In that first interview, I broke it down quickly into its component parts, and figured out where the trick had to be -- and from there quickly solved it on the spot.
In the second interview I spent a couple minutes trying to remember the solution from the first interview, and completely flubbed it. It wasn't the first part of that second interview that I flubbed, either, including arguing with one of the interviewers and basically telling him he was wrong.
Oddly enough, I got the job with the second company and worked there for almost six years. For the record, I love doing those kinds of puzzles. But I do video game development, so maybe puzzles are a bit more relevant to my industry (in that 80%+ of what we're doing is figuring out how to solve puzzles in the form of how to do something with less CPU or why a particular video card is behaving in a certain way).
comment 14y ago · link · parent
I would suggest instead that there's an armistice of sorts that keeps the damage to a minimum. If the gloves come off and everyone starts doing it, then there will be a (virtual) bloodbath.
It's also worth pointing out that if politicians started getting trashed by "vigilante groups" on a regular basis, it would further the current (stated) Tea Party agenda of discrediting government (in an effort to shrink the federal government to a point where it can be "drowned in a bathtub"). I KNOW there are supporters of this concept on HN; I don't really care to debate it, and I'm neither looking for a show of support or protest of the idea. I just want to make sure that it's an understood side-effect of discrediting politicians.
comment 14y ago · link · parent
I just think that probably 90% of the current crop of politicians probably have SOME skeleton in their closet -- and it might not even be that they're a crook as much as something else that gets them voted out of office. An obvious possibility is to demonstrate that he or she is an atheist -- a HUGE fraction of people in the US won't vote for an otherwise qualified atheist. Is that a skeleton you feel would be justified in killing a politician's career?
This is also vigilante justice we're talking about, so an alleged skeleton could be someone posting an unsubstantiated rumor.
And keep in mind that there's absolutely no guarantee that the "replacement" who supports each group's agenda WON'T be a crook. Which means we're really talking higher churn, not higher integrity of politicians.
comment 14y ago · link · parent
At the same time...pretty much anyone is likely to have SOMETHING in their Internet history that they wouldn't be proud of, or that can be taken out of context.
What I really worry about is if a group like Anonymous or LulzSec or similar gets involved, that the smearing could involve evidence PLANTED on servers (hacking into a server and getting all the emails out puts you in the same position required to modify or insert emails into that same server).
If it really stays at the level of exposing skeletons and donating to opponents, then yes, I'd have to agree.
comment 14y ago · link · parent
But keep in mind there are also large groups of people who could organize and use this as a model to promote an agenda that most of us would be horrified by.
In the case of SOPA, I don't expect a huge grass-roots community making any serious headway in favor of the legislation, because most of the people who care about SOPA at all hate it.
But there are large communities who:
1. Believe that vaccines are bad.
2. Believe that the global climate isn't changing, or that it's not caused by us.
3. Believe that abortion should remain legal/be abolished (pick the side you don't like).
...and on and on. Do we really want a group to model how to destroy a politician using data mining and potentially nefarious hacking, when it's an issue that WE support that they're being targeted for?
It seems like a step in the wrong direction -- taken to an extreme, politicians would be forced to never do anything that might offend a large enough group, and frankly sometimes such decisions need to be made. It's a Pandora's box, for sure.
NOTE: Not here to discuss the merits of #1-3 above. They're just for illustration.
comment 14y ago · link · parent
OTOH, changing how you do things in Lua CAN be a big help in not generating garbage. I love the ability to ignore memory allocation in Lua, and I'm annoyed that I have to deal with thinking about it, but at least it's pretty straightforward.
Also, depending on the game, you can nuke your Lua allocation every level/section/other segment, allocating Lua memory from a memory pool. That can also help a lot with fragmentation.
But if you're doing a game that's one continuous experience, you have no choice but to be careful with managing memory. Again, it CAN be done from within Lua (think object pools), and that could be easier than porting to C++. And with LuaJIT 2, it would likely be fast enough in that case.
comment 14y ago · link · parent
Curious: What's your domain?
In video games where there are a lot of "objects" floating around that can really benefit from polymorphism, the type checking that C++ can do that C can't really gives you a huge development bonus.
Of course I'm saying this having moved past C++ for 99% of the development into an elegant and tiny scripting language called Lua, where you can do just about anything (including having an object system that you can change an object from one type to another trivially if that's what you want).
comment 14y ago · link · parent
Also happy to see that my adopted state (Colorado) has no supporters at all. Which is a mixed blessing, of course...no one to protest to who will pay any attention to me.
Thanks for putting this together, though. Maybe others will discover nearby supporters who they can protest to -- or who maybe have friends who they can convince to write a letter. If anyone knows someone in greater LA, for example, odds are good that they have a rep who's supporting SOPA.
comment 14y ago · link · parent
His argument was that I was the only one even close to the age of the defendant left on the jury, and that by removing me he would be removing all of the defendant's "peers." (He was young; I was young.) The prosecutor withdrew his challenge, and I stayed. Funny thing was, I was pretty anti-drug at the time, so it could have backfired.
But I ended up being the jury foreman and we acquitted without much debate after someone decided to ask if anyone in the room actually thought he was guilty. They didn't really have anything on the kid; the trial was a total waste of taxpayer's money.
But you have an excellent point: If anyone writes online about supporting jury nullification, odds are good they'll get a challenge-for-cause any time they're in jury selection. At least if they're easily traced by name to those comments.
comment 14y ago · link · parent
But the article I read also said that it was a Google Android feature that Google would also be removing from Android. I wonder which article is correct?
Since I haven't seen any of this auto-linking in my Nexus One, I'm going to guess this was an HTC feature, but if anyone knows, now I'm curious.
comment 14y ago · link · parent
In fact, looking at the iPhone zoom, it's blurred in the middle -- it's absolutely had a filter applied to it. You still see some Moire in the center of the image, but that could be a filter artifact.
You'd need the chart rendered at exactly screen resolution, with proper filtering for that resolution (so that it doesn't end up with Moire patterns inherent in the image), and then to display it using code that's guaranteed not to apply a filter. He seems to be using the built-in slideshow apps in all cases (or maybe a browser?), and it looks like the iOS one has a better scaling filter. Which is interesting, but not what he's trying to prove.
On top of all of that -- his photographic resolution can also be coming into play, adding more Moire patterns than you'd see in person. The lower resolution iPhone screen may not have had as much interference with his camera resolution.
So I'd say it's an article fail.