I have a java class with a thousand line method of if/else logic like this: if (userType == \"admin\") {
With reference to this post, I am considering starting a new web-based Java project. Since I don\'t know Spring/Hibernate I was concerned if it\'s a bad plan to start learning them while creating a ne
We\'re trying to untangle a hairball of 100\'s of units, removing some. It would be help开发者_如何学编程ful if there was tool that would show us what units were explicitly using unit X.
For my current job I am writing some long-running (think hours to days) scripts that do CPU intensive data-processing.The program flow is very simple - it proceeds into the main loop, completes the ma
I have a co开发者_JAVA技巧ntainer class (containing a multi-index container) for which I have a public \"foreach\" member-function, so users can pass a functor to apply on all elements.
i have a function that converts an array to a hash which i would like to use acro开发者_如何学Pythonss all the model, controller and view files in the rails app.
Here\'s some code from an FTP application I\'m working on. The first method comes from an interface which is being triggered by a class which is monitoring server output.
Closed. This que开发者_StackOverflow中文版stion does not meet Stack Overflow guidelines. It is not currently accepting answers.
I am messing around with Entity Framework 3.5 SP1 and I am trying to find a cleaner way to do the below.
I just finished reading the \"Functions\" chapter from Uncle Bob\'s Clean Code. The main advice was to make sure that functions are short -- really short. And they should only do one thing per level o