Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:I love robots (Score 1) 60

You gotta think maybe in 30 years the world will be populated with decent AI robots of various types. [...] This feeling of,"Anything is possible in the future" brings a warm feeling into my heart.

Everything except a decent goddamned flying car.

Comment Re:you're doing something wrong (Score 1) 222

You really need to define your problem with much greater specificity to get a valuable answer.

The OP said they were using NoSQL. That alone explains everything.

Solution (to the OP, not the parent who clearly understands what they're talking about): go learn how to use relational databases properly. Normalize your data. Nine times out of ten, if you're repeating information in multiple tables, you're doing something wrong. DO NOT USE BUSINESS KEYS. Surrogate keys only. Why? Because you do not own a crystal ball.

Comment Re:Running Franticly (Score 1) 72

I can't believe this screed got a +5 Informative. Your argument makes no sense.

The root of the problem was that the engineers who started the project didn't know anything about database programming and just used NHibernate as a magic persistance layer.

Really? They didn't know anything about database programming? First off: what does database programming have to do with .NET/Java programming? Second: how does someone who doesn't know anything about database programming go about creating libraries that do database access? I'm serious: how do you do that? That's like accusing Toyota of being full of engineers that don't know how to build a car just because the ride is bumpy.

In order to use it right, you have to know the underlying database programming concepts, which are simpler and easier to learn then the NHibernate library.

You keep using this term: "database programming." What in the hell are you talking about? Are you talking about stored procedures? Are you talking about writing relational database software? Are you talking about the software written by third party developers that uses the libraries?

Or are you just talking about SQL? I think that's it. I think you're using the term "database programming" to mean "SQL statements" which explains a SHIT TON.

My opinion: Stick with a simple ADO -> Object mapper and write queries as-needed

Yeah, named parameters are overrated, too. Just concatenate a big string together. And if you need to check user input, just write your own parsing library because I'm sure it will be better than an open source, freely available version worked on by thousands of contributors. Nothing could possibly go wrong there.

Don't rely on a more complicated library to handle things like transactions, lazy-loading, and relationship mapping.

Sigh.

1. Hibernate doesn't handle transaction management.
2. Reinventing the wheel is reason #1 for getting fucked-up, hard-to-find bugs in your code.

Be very careful introducing relationships into the business objects

Says the programmer. "What the hell are you talking about? You don't touch business objects," replies the DBA.

if you end up working in a project where the senior engineers and/or people who started the project treat NHibernate as a "magic persistance layer," RUN!!!

OK, here you're absolutely right! Please run away! There are plenty of good programmers that can use a job. Let the scared hand-query-writers go whip up a website for their local bands and restaurants.

Comment Re:open vs closed (Score 4, Funny) 416

The three major video game consoles are less open than even an iPhone, yet consoles beat PCs in sales in several genres.

Yeah, but bread is more open than an iPhone, and bread has outsold PCs and iPhones hand-over-fist for centuries .

This is why we should never have gotten rid of analogies on the SATs.

Comment Re:Unsurprising (Score 1) 428

Yeah, I agree. The GP smells trollish. Java has the benefit of being free and already widely-understood (hell, most CS intro classes start with Java because it gets OOP out of the way right from the start). If I'm hiring for a company, I want to have my pick of a hundred people, not three. D would have to give me magical performance increases in the range of an order-of-magnitude or more before I'd ever consider abandoning Java.

Slashdot Top Deals

Our business in life is not to succeed but to continue to fail in high spirits. -- Robert Louis Stevenson

Working...