Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I just enterprised

Name: Anonymous 2009-01-23 2:46

Fuck, I think I expertly programmed this shit in ASP.Net. I might even use Enterprise Library for this, FUCK!

I have an objects that define settings for various features of the site that are editable by site admins. The settings are persisted by serializing them to an XML file. Fucking .Net, I didn't have to write any XML processing myself.

Because the settings only apply to one related set of features to the site for all users, I used a singleton to represent the settings object. Then to ensure that its thread safe and not GCed I used a factory.

How can I do this right, without Enterprise Quality solutions?

Name: Anonymous 2009-01-23 2:53

Use monads.

Name: Anonymous 2009-01-23 2:54

ENTERPRISE is ALWAYS right.

Name: Anonymous 2009-01-23 3:24

ENTERPRISE IS THE BEST WAY TO DO EVERYTHING
DON'T LISTEN TO THE TEENAGE FAGGOTS ON /g/ 

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-01-23 3:43

Enterprise solutions may not be optimal but they are
1.More widely supported
2.Industry standardized
3.It pays money
4.Its provides best ROI(return on investment) because companies prefer to be efficient with their money.
5.Code is designed to be edited by multiple people concurrently:
There is no Open-Source "i code in my style,and you will need to adapt to it"  the process is enforced by supervising party.


_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: Anonymous 2009-01-23 3:51

>>1
Because the settings only apply to one related set of features to the site for all users, I used a singleton to represent the settings object. Then to ensure that its thread safe and not GCed I used a factory.
You should meditate on the fact that you have basically introduced a global variable by another name. Was this really what you wanted?

Name: Anonymous 2009-01-23 3:54

>>6

Some ENTERPRISE languages have done away with [spoiler]global variables[/spoilers] to pave the way for the SINGLETON.

Name: Anonymous 2009-01-23 14:11

>>7

You're so ENTERPRISE you shit broken code.

Name: Anonymous 2009-01-23 14:20

>>8
VISUAL STUDIO will AUTOMATICALLY GENERATE his code if he needs it.

Name: Anonymous 2009-01-23 15:43

>>6

No, because global variables are for teenage faggots. You also don't seem to understand that a global variable wouldn't work. The settings class has no constructor, to do so would be faggotry in this case. It is a static variable, since it belongs to the settings factory class. The factory handles initialization from the state persisted as XML.

And you still understand none of that...

>>9

I fucking wish.

Name: Anonymous 2009-01-23 15:57

>>10
It's still global state, you moronENTERPRISE WEENIE.

Name: Anonymous 2009-01-23 16:04

(b)(spoiler)(i)(u)(sub)(quote)Enterprise-ready cost-effective scalable bussiness solution can only be delivered with BBCODE.(\b)(\spoiler)(\i)(\u)(\sub)(\quote)
















Or Microsoft Silverlight.

Honestly, at least 90% of all bigger companies use MS for 90% of their IT. Why is that?

Name: Anonymous 2009-01-23 16:43

because no one wants to dick around with linux/unix.  They already have computers running windows, all their apps are made for windows, and all the employees are trained to use m$ software.  Oh yeah, they also don't have to dick around with a command line every time something goes slightly beyond pressing the power button.

Name: Anonymous 2009-01-23 16:59

I just 20mb of java code.  Is it ENTERPRISE READY?

Name: Anonymous 2009-01-23 17:58

>>11

Wow, you are a stupid faggot with a high degree of nigger stupid.

You are confusing scope and lifetime like a wanna be programmer faggot who has no clue about these basic concepts.

Static variables are not the same as global variables. My settings object is private for the factory class for one thing faggot. So it isn't accessible globally. The variable is scoped for the class, it is static so it is scoped for all instances of the class. the factory class returns a pointer to the settings object. Even if the settings object was a public field, it still wouldn't be global.

It may have a lifetime similar to global, but it is not the same as a global.

You just learned some OOP 101. In our next /prog/ for beginning faggots class we will learn the difference between a property and a method.

Name: Anonymous 2009-01-23 18:37

In our next /prog/ for beginning faggots class we will learn the difference between a property and a method.

Oh, I think I know this one! Is it syntax?

Name: Anonymous 2009-01-23 18:48

>>15
You should get a tripcode too, so I can ignore you as well.

Name: Anonymous 2009-01-23 18:55

>>16
It's more like Integer myInt = new Integer(YHBT)

Name: Anonymous 2009-01-23 19:14

>>16
in any decent OO language, a method is just a property that happens to be of some type that is callable.

Name: Anonymous 2009-01-23 19:23

>>19
Counterexample: Java

Name: Anonymous 2009-01-23 19:34

Mmmm, ENTERPRISE rage. Tell me, in what scope is the factory class accessible?

Name: Anonymous 2009-01-23 19:51

>>17

Then you would learn nothing.

>>19

No. Its mostly a conceptual difference, but decent OOP languages add functional differences.

>>21

You are not as clever as you think. I know what you are trying to to, but you are wrong. Something tells me you have never written a proper multi-threaded app.

Name: Anonymous 2009-01-23 20:07

☣ Please try to ignore troll posts! ☣

Name: Anonymous 2009-01-23 20:08

I can multi-thread with a NEEDLE.

Name: Anonymous 2009-01-23 23:02

>>22
Well then I'll quit, since I have no idea what you specifically did.

Name: Anonymous 2009-01-23 23:03

>>20
How is that a counterexample? Are you suggesting Java is an OO language?

Name: Anonymous 2009-01-23 23:11

>>26
       JAVATM    

Paradigm       Object-oriented, structured, imperative
Appeared in    1995
Designed by    Sun Microsystems





References
                                
http://en.wikipedia.org/wiki/Java_%28programming_language%29

Name: Anonymous 2009-01-24 0:51

>>20,26
are you suggesting java is a decent language?

Name: Anonymous 2009-01-24 1:02

>>28
If by decent you mean conforming to the recognized standard of propriety, good taste, modesty, etc., then yes, I am.

Name: Anonymous 2009-01-24 1:53

It's not enterprise enough until you leverage core skillsets and world-class team synergy to provide clients worldwide with robust, scalable, modern turnkey implementations of flexible, personalized, cutting-edge Internet-enabled e-business application product suite e-solution architectures that accelerate response to customer and real-world market demands and reliably adapt to evolving technology needs, seamlessly and efficiently integrating and synchronizing with their existing legacy infrastructure, enhancing the e-readiness capabilities of their e-commerce production environments across the enterprise while giving them a critical competitive advantage and taking them to the next level.

Name: Anonymous 2009-01-24 5:14

>>29
I do not think you are decent.

Don't change these.
Name: Email:
Entire Thread Thread List