Can anyone find an example of a simple server/client thing? I'm willing to use any C++ library or even Winsocks it self. I've Googled around but want some opinion on a good article for beginners/sites.
I am having this piece of code, which in my opinion is fairly ugly and I am wondering how it can be done better:
if dict.get(key, None) is None:
dict[key] = None
Points for elegance ;-)
By default DB connections of JPA applications are configured in the META-INF/persistence.xml, when the application is not deployed to a full Java EE application server. In my opinion it is not very elegant to place such environment specific configuration into a file that is inside a .war file. How could a DB connection of a Servlet based JPA application be configured more flexible (=outside of the .war file)?
Suppose I have some code that looks like this:
Private Sub MySub()
dim blnFlag as Boolean
blnFlag = False
for each item in collection
if item.Name = "Mike" then
blnFound = true
exit for
endif
next item
End Sub
Now - the blnFLag = False assignment is not actually necessary - booleans are initialised as false, but I think it's inclusion makes the code easier to read. What's your opinion?
Hi everybody,
I need to do a test in a DataView to check if at least one row contains one cell with a null value. What is the best way to do it in your opinion ?
Thanks in advance.
PHP was the undisputed king of easy webapp development, until Ruby on Rails, Django, and other dynamic programming frameworks appeared. What are, in your opinion, PHP's strengths against the newcomers?
Hi there, I've used antlr and javacc/freecc for a while.
Now I need to write a bunch of parsers using antlr grammars but such parsers need to be written in ruby lang.
I googled but nothing found. Is there any ruby parser generator that takes antlr grammars and create a parser? If there are many, which is the best one in your opinion?
TIA
Paolo
My client have created a script in php+mysql that saves images directly in the database and every images has url like this: www.example.com/image.php?id=421
In your opinion this is a very wrong solution ? Should I rebuild all the site ?
There are about 1000 visits per day and about 600 images in the database.
This is the site: http://tinyurl.com/3xkxdsw
What are in your opinion the worst subjects of widespread ignorance amongst programmers, i.e. things that everyone who aspires to be a professional should know and take seriously, but don't?
What's your opinion about using #region folding using application semantic, instead of folding for "syntax".
For example:
#region Application Loop
#region User Management
#region This Kinf of stuffs
instead of
#region Private Routines
#region Public Properties
#region ThisRoutine // (Yes, I've seen this also!)
In this logic, I'm starting fold even routine bodies. I'm starting to love #region directive (even using #pragma region when using C++!).
When developing software, which platform(s) between Windows, OSX, and Linux is the majority of software developed for? I'm mostly looking for some statistical data, not really opinion, but I can't seem to find any. Thanks
Hi,
What is your opinion about using non valid attributes on html elements for easier jQuery selectors etc ?
Eg.
<div name="myDiv"></div>
According to Visual Studio the name attribute is not valid for a div element.
As we all know css is now more powerful than ever. The possibility of a Web Design is countless in CSS3. This keeps me wondering, what might future holds for CSS?
What is your opinion?
Has anyone played around with the architecture tools (uml diagrams, etc) in VS 2010 and if so what is your opinion? I really am liking Sparx Systems Enterprise Architect but am also curious about what is available in VS 2010. I'm not looking for responses about how much you hate Microsoft tools or love mircosoft tools, but more for answers about how useful VS2010 arc tools are for you.
I wonder if syntax as follows would be helpful in your opinion as a code readability improvent and self-commenting of code:
std::map<std::string name, std::vector<int> scores> myMap;
In this example it clearly says and no other comment is needed, what for we are using myMap variable.
Looking forward to your opinions.
Hi All,
just wanna ask what is acceptable size of ViewState per page? What is the level I should start worried.
Is there any objective measurement for viewstate size?
Thanks for any opinion :-) Cheers, X.
Hello,
I'm wondering the opinion of what is the best way to pass a lot of values between pages. I was thinking of either saving the values to a database, using context.Items[], or Session[]. I'm not sure about what is the best method. I'm passing probably around 40 variables.
Hi there, just wondering if it is possible to hide/disable the quicktime logo when displaying .MOV video on my site?
Because the size of the video is large (3MB), I have included a rotating loading animation, however once the video player loads, the Quicktime logo hides the animation, which makes the user less likely in my opinion to wait for the movie to load?
Any advice would be great!
Cheers!
Decbrad
Would a hashtable/hashmap use a lot of memory if it only consists of object references and int's?
As for a school project we had to map a database to objects (that's what being done by orm/hibernate nowadays) but eager to find a good way not to store id's in objects in order to save them again we thought of putting all objects we created in a hashmap/hashtable, so we could easily retrieve it's ID. My question is if it would cost me performance using this, in my opinion more elegant way to solve this problem.
Hi everyone,
is there in any means a manner to show a grid or something like Excel. I see alot of information, but how do you feel about this one?
Are there grids, or third party grid that provide these features?
Thanks, I very like it to here your opinion, and your idea about this feature I want to provide in a Web Page?
As the title says I want to know what is, on an average a web developer should know in your opinion by the end of 1 year into the field in terms of concepts to learn, exposure to technologies, should he have mastered some area .. etc and so on.
Hoping to get a huge input from the community!
Thanks
I'm looking for real world examples of needing read and write access to the same value in concurrent systems.
In my opinion, many semaphores or locks are present because there's no known alternative (to the implementer,) but do you know of any patterns where mutexes seem to be a requirement?
In a way I'm asking for candidates for the standard set of HARD problems for concurrent software in the real world.