4 ms·
> If you are experiencing a problem of the nature of one of the first two in that list (does not compile or has a run-time exception), then somewhere, you’ve go
by Tade0 10y ago
> If you are experiencing a problem of the nature of one of the first two in that list (does not compile or has a run-time exception), then somewhere, you’ve got an error message or an exception, and probably even a line number.
Thing is, in this particular project I'm in - most of the time - you don't.
Since our project is an in-browser text editor most of our bugs occur because the browser did something unexpected, like suddenly changed the selection, or inserted an element somewhere. In situations like these you usually don't get an error message or anything - just weird behaviour.
Normally our users report this by writing that pressing a button or using a shortcut "does nothing" - and that's fine.
When you're dealing with leaky abstractions on a day-to-day basis you sort of have to get used to bug descriptions like these.
- notatoad 10y agoreporting that a particular button "does nothing" is a great bug report (from a user. from a colleague it's a little disappointing). It tells you the three important things you need for a bug report : what did you do, what did you expect, and what actually happened?. The problem with "doesn't work" is that it could mean anything, from "does nothing" to, to use the example in the article, "it launches missiles".
- bastawhiz 10y agoBrowser WYSIWYG editors are full of dragons. I'd give you that exception.
- ehnto 10y agoWhich is amazing since it's a problem we have been trying to solve for more than a decade. I figure we just can't solve it fast enough to keep up with browser features and bitrot. I once built a wysiwyg editor that utilized drag and drop for dynamic page content. Native browser drag and drop is an utter mess.
- Tade0 10y agoNative selection, even if you don't support legacy browsers is a bigger one. The API itself is ok. It's all the tiny differences between browsers that turn it into a dumpster fire. And don't get me even started on pasting stuff from Word. Customers expect this to work, because yeah, how hard can this be really? Regardless of how many safeguards you put, eventually someone somewhere is going to create a file that will generate a heap of errors. We have over 150 test cases(600+ unit tests) and still every week something pops up.
- haimez 10y agoSounds like you need a managed runtime. Wait... You already have one, it's just a bigger problem than solution. Hrm... Have you considered making a real IDE?
- Tade0 10y agoFunny you mention this. I took three weeks vacation to do just that, but after ten days I realized that there's waaay more work than I have time for.