51 karma · joined Jul 13, 2013 (13y ago) · 50 submissions
comment 13y ago · link · parent
I would love for everyone to be successful but it's not the kind of thing you can wave a magic wand with a fantasy solution, dump blame on wal-mart, then call it a day.
comment 13y ago · link · parent
But my favorite personal project is a database comparison tool. It is basically a "diff" on databases. Everything from the schema, to stored procs, indexes, etc. It also works cross database. You can compare Oracle to SQLServer to [insert DB here].
There are lots of database "diff" tools. But I believe mine is the only one that works well cross-database. And it's easy to add support for a new database (day's work at most).
comment 13y ago · link · parent
"the tools I use recognize that structure"
Yes. I would describe it as parsing the content into a tree. Interaction's with content can then be legal operations on the tree, instead of random acts on plain text.Thank you for putting in the labor to create tree-based interaction.
comment 13y ago · link · parent
Everyone talks down on C++ but it's one of the few languages that gets generics right. The only language with implicit RAII (not explicit like C#/Java). The only language to put into practice 0 cost abstractions.
comment 13y ago · link · parent
Marijuana is safer than alcohol. Too much alcohol will cause death. You cannot OD on marijuana.
Marijuana is safer than Tylenol which a kid can buy over the counter in a store. Too much Tylenol will shut down your liver. You cannot OD on marijuana.
Repeatedly punching yourself in the face causes brain damage. It's a dangerous power every kid in the world has. But putting them in straight jackets is not a good solution.
Recreational use of Marijuana is bad. However I do not believe the answer is suppression and control.
comment 13y ago · link · parent
"Us founders are blitzing 80+ hours a week."
This is where most people with a family would stop reading. "If you're young and energetic, come join us."
That is border-line ageist. The rest is a half-hearted apology that won't entice a normal person to want to work in the advertised conditions.comment 13y ago · link · parent
I'd buy 1 low-end rental property (dip my toes in with 1 before finding out I don't like land-lording).
With that much cash, inflation becomes a big issue. You don't want to let the money sit in a regular checking or savings account. I'd hire an adviser on where to park the rest of the money to protect against inflation with minimal risk.
I wouldn't try to convert all of the money to real assets. The liquidity of paper is nice.
I would continue to work. It's a lot of money but I wouldn't call it set for life.
I would avoid high risk investments. ie no start ups.
Disclaimer: I am risk averse.
comment 13y ago · link · parent
Blocks are an improvement, but not the same as RAII. A block is literally converted to a try-finally by the compiler. It is the same thing with a cleaner syntax. There is no safety added to the old Java way. A programmer can forget to put his stuff in a block and leak the resource the same as he forgets to use a try-finally. The onus is on the consumer, not the library writer.
With C++ RAII the onus is removed from the consumer. The consumer writes safe code automatically, no onus to remember any special clean up idioms.
comment 13y ago · link · parent
Even with the new block syntax, you have painful nesting if the operation requires several disparate resources.
Blocks are an improvement, but not the same as RAII. A block is literally converted to a try-finally by the compiler. It is the same thing with a cleaner syntax. There is no safety added to the old Java way. A programmer can forget to put his stuff in a block and leak the resource the same as he forgets to use a try-finally. The onus is on the consumer, not the library writer.
With RAII the onus is removed from the consumer. The consumer writes safe code automatically, no onus to remember any special clean up idioms.
comment 13y ago · link · parent
//C++ RAII goodness.
void foo()
{
conn.open();
file.open();
printer.activate();
//do stuff
}
//Java's lack of RAII is disturbing
void foo()
{
try{
conn.open();
file.open();
printer.activate();
//do stuff
}
catch(Exception e) { }
finally{
try {
conn.close();
}
catch(Exception ee) {}
finally{
try {
file.close();
}
catch(Exception eee) {}
finally {
try{
printer.close();
}
catch(Exceptoin eeee) {}
}
}
}
}