Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:Perhaps you should abstract your persistence mo (Score 1) 272

Sorry, you have no idea about the real world.

Funny, just a few years ago I was the chief software architect for a company purchased for more than 60 million dollars entirely for our enterprise product. One of the primary reason this company was acquired instead of its competitors was because we were pioneering open standards in our market verticals and supporting those open standards with public integration points that 3rd party companies, including our competitors, wrote integrations to.

This system had a persistence model that had to scale, not just horizontally, but in 'swim lane' fashion - or if you prefer the actual fashion we used, in AKF cube fashion. It handled tens of millions of persisted logic events daily and integrated with many different back end databases - all supported through this EXACT same facade/proxy system implemented with adapters. This pattern was used for all of the integration points and was how 3rd parties wrote integrations with our system.

So, whatever it is you do, you can rest assured that I write enterprise software in the "real world" and quite successfully.

You connect to a DB or open a File or open a Socket and either "it just works" or you get an exception.

You really just can't seem to understand abstraction.

After I answered to you, you suddenly talk about abstracting the business level.

Not at all. Again you demonstrate that you don't understand what abstraction is. By hiding the details of the persistence model, which means (so that you understand) that people using the abstraction interface don't know if it is a DB, or a file, or a web service, or a pipe, or a local process, or a remote process, the business logic simple deals with business objects.

If I was talking about abstracting the "business level" (presumably you mean business logic) I would be talking about an interface exposed to a view or consumer that didn't need to know any details about how the business logic operated. I was clearly not talking about that at all.

So either you made a mistake in choosing the right words or headline or you simply are mixing stuff up and now try to weasel out of it ;D

I'm willing to bet that you end up in a lot of 'arguments' where you bring out this line. It's okay, maybe some day you'll get it.

Comment Re:Perhaps you should abstract your persistence mo (Score 1) 272

Well, in the real world, when you abstract things properly you don't expose a "connect" method. The code behind your interface - the adapter - would use connect and disconnect internally.

In the real world, when you abstract things, you expose a method that validates that the persistence layer is functioning/configured/usable as a normal part of the application/service/component's life-cycle. I called it ValidateConnection in this scenario because of the way he described his issue.

Comment Re:IANA Physicist, So... (Score 1) 630

No, you don't, there are plenty of things that burn without oxygen simply because there are lots of other oxidizers. Oxygen just happens to be the most common.

In any case, the combustion being referred to isn't "burning" it is the light emitted by the compressed gasses, and with oxygen being much more exciteable than nitrogen and their being the two most prevalent gases in this scenario, that's what I was referring to. This is what you see from a 'flame' in any case.

Comment Re:Perhaps you should abstract your persistence mo (Score 1) 272

"...so that you simply write an adapter for pushing/pulling data" makes you think the abstraction layer would have the DB layout in?

Let me be perfectly clear then, the abstraction layer would simply know about the business logic side of things and that you can store and retrieve those things in some fashion most likely represented by some criteria associated with them.

If you simply talk about method signatures, then I wonder why you brought it up

I don't know what you mean.

And what exactly does ValidateConnection mean? Either you have a connection, or you have not, just an idea ....

What? Who/what would already "have a connection" to another server or memory mapped file or process or socket?

ValidateConnection, in this example, would simply ensure that the backend persistence mechanism both exists and (as is required in most cases) that you have valid credentials.

Comment Re:Perhaps you should abstract your persistence mo (Score 1) 272

Why would you be modeling anything relating to entities at the interface level?

iMyDatabase would have methods such as:

ValidateConnection
GetSomething
StoreSomething

It shouldn't know anything about how that data is stored, where it is stored, how your object is serialized/deserialized from a DB entity, et cetera...

Comment Re:JUST USE POSTGRES (Score 1) 272

I would have to agree about PostgreSQL, it is surprisingly flexible and powerful. I've used it for small business systems and recently on a 'big data' (oh, that overused buzzword...) project (millions of devices reporting dozens of times per day) and it has been fantastic.

Wish I'd gotten on the bandwagon 10 years ago.

Comment Perhaps you should abstract your persistence model (Score 2) 272

...so that you simply write an adapter for pushing/pulling data.

Then you don't have to worry so much about making what appears to be an extremely premature optimization.

In other words, have your backend web services (presuming you're using them and not manually POSTing from a socket yourself to your own socket server) instantiate an instance of iMyDBAdapter and use it.

Later, when you find out that you actually do need MongoDB, PostgreSQL, sharded MariaDB, whatever, you can simply write another adapter class that simply has to satisfy the iMyDBAdapter interface.

The reason this works so well is that it will force you to separate your business logic from your underlying DB implementation (which requires a lot of discipline to do otherwise, especially when you just want to get something 'done'.)

Also, as another poster pointed out, you're much more likely to suffer from other issues relating to scaling (and issues better solved elsewhere) than a modern database.

My advice, stick rigidly to the interface/adapter mechanism and implement an adapter for whichever DB you're most comfortable with right now.

Comment Re:Slide to unlock is such an obvious metaphor (Score 1) 408

The irony is that Apple chose this action clearly because it was intuitive to its users which is highly suggestive that Apple themselves think it mimics common behavior (deadbolts, slide to unlock briefcases, chain locks, et cetera.)

They want to argue that it isn't obvious, but that people will find it obvious... ;)

Comment Re:Seems pretty different, not a gesture (Score 1) 408

The iOS slide to unlock is not a physical counterpart for anything, it's a gesture.

Gestures don't have physical representations on the screen (although they occasionally have 'trails'.) The 'slide to unlock' does. You literally slide what appears to be a latch, incredibly similar to "slide to unlock" briefcases (which have been around for more than half a century.)

Windows

Windows 8.1 Update Released, With Improvements For Non-Touch Hardware 294

DroidJason1 (3589319) writes "Microsoft has released the highly anticipated Windows 8.1 Update, adding numerous improvements for non-touch consumers based on feedback. It is also a required update for Windows 8.1, otherwise consumers will no get any future security updates after May 2014. Most of the changes in the update are designed to appease non-touch users, with options to show apps on the desktop taskbar, the ability to see show the taskbar above apps, and a new title bar at the top of apps with options to minimize, close, or snap apps."
GUI

Apple: Dumb As a Patent Trolling Fox On iPhone Prior Art? 408

theodp (442580) writes "GeekWire reports that a Microsoft researcher's 1991 video could torpedo Apple's key 'slide to unlock' patent, one of 5 patents that the iPhone maker cited in its demand for $40 per Samsung phone. Confronted with what appears to be damning video evidence of prior art that pre-dates its 'invention' by more than a decade, Apple has reportedly argued that the sliding on/off switch demoed by Catherine Plaisant is materially different than the slide to unlock switch that its 7 inventors came up with. Apple's patent has already been deemed invalid in Europe because of similar functionality present in the Swedish Neonode N1M." The toggle widgets demoed in the video (attached below) support sliding across the toggle to make it more difficult to swap state (preventing accidental toggling). The video itself is worth a watch — it's interesting to see modern UIs adopting some of the idioms that testing in the early 90s showed were awful (e.g. Gtk+ 3's state toggles).

Slashdot Top Deals

Those who can, do; those who can't, write. Those who can't write work for the Bell Labs Record.

Working...