1,321 karma · joined Jul 11, 2009 (17y ago) · 690 submissions
comment 15y ago · link · parent
(Great movie, watch it: http://www.imdb.com/title/tt0064177/ )
comment 15y ago · link · parent
If you have clicked inside a Flash-box then you can forget using the keyboard shortcuts your web browser offer.
Edit: I really think one shouldn't be able to down-vote without first writing a comment explaining why...
comment 15y ago · link · parent
But I wonder how big a difference a smarter disk-elevator algorithm would make.
Or something that logged file-accesses, made a list of disk-block-no of that, sorted the list, and early at next boot read of blocks from that list. This is to avoid boot-time being spent waiting for random disk-accesses.
comment 15y ago · link · parent
I take it you never have seen the "leaning Eiffel tower of nested if's in C/Pro-C? As I wrote, in a language with exception handling you code as if errors never would happen. And then you put using/try+finally/block-exit clauses around your statements to assure cleanup will happen no matter what.
How is that convoluted? Good such code looks almost naïve to me.
>Callers that do not have any of the real context in which the error happened, and that often can't do anything particularly smart about it other than throw their hands in the air.
Well, exactly how smart a caller can be is decided by the protocol between caller and callee. It's no different than what return-values would have given you IMHO.
comment 15y ago · link · parent
comment 15y ago · link · parent
I think of this every time: http://www.flickr.com/photos/ebwolf/498371086/
comment 15y ago · link · parent
I wrote a system in C# that used immutable data and actually used that to do rollbacks when evaluating a scenario failed. My fears was that since there are no "val" and really bad immutable collections in C#+.Net the maintenance coder would probably remove list.AsReadOnly() and putting in public on setters as part of fixes to bugs.
That didn't happen though, the maintenance guy was really smart and got the ideas without me explaining much more than mentioning immutability.
But this is why languages like Scala are important. Immutability and similar design(patterns) are a result of discipline and sometimes convention in languages like Java and C#. It's bound to fail due to humans being humans.
comment 15y ago · link · parent
In Scala(guessing a bit here since I've not done any large projects in Scala) you might have hidden performance costs, method signatures for your own library code that are insufficiently reusable because of lack of covariant et al specifications.
But the rest of the problems for Scala seems to me to be style guide problems. For example, using or not using . and ()'s, how many classes per file.
comment 15y ago · link · parent
At least that's my impression.
comment 15y ago · link · parent
I know of only one case where some german demo coders used CPU/chip timing to multiplex sprites to get more than 8 sprites per row.
Most of the timing bugs were of the kind that the CPU got faster(maybe due to code running from RAM not affected by custom chip cycles, or perhaps a 68020 or better was used) and neglected to wait for the blitter to be ready.
"Fast-RAM" was common enough after a few years to this not being a huge problem.
AmigaOS and the whole of Amiga was a thing of beauty IMHO.
comment 15y ago · link · parent
Jetbrains should post a Kotlin vs C# to clear up what's really the difference between the two languages. If the difference is really small, are they trying to take advantage of Resharper to introduce a new language on the JVM?
comment 15y ago · link · parent
Using Scala and Java he can write very short and readable code and use Java only when there's a performance concern or a similar reason.
People say Scala is complex and academic, but if you don't try to write your first Scala programs using every feature of the language you'll see it's a useful and likable language.
Use it a bit like you'd use C++, pick a feature-set you understand and like and be consequent with your use of parens/lack of parens.
comment 15y ago · link · parent
Not very obvious. I just can't remember this one.
comment 15y ago · link · parent
And a policy that extensions must not be minified and some buttons on the extension view to read the source code with syntax highlighting and all.
comment 15y ago · link · parent
comment 15y ago · link · parent
Beats most PC demos IMHO. (I'm an old C64 and Amiga hacker) That said, the 6510 and 68k don't stand a chance when it comes to compact code compared to the x86.