I have to create a short program in C that manipulates strings, but I always run into some weird pointer errors. While K&R is a great reference on the language, and I often look at it when I am puzzled it already assumes you are an adequate programmer.
The lecturer that teaches us programming said that good programmers make nice diagra...
A number of applications have the handy feature of allowing users to respond to notification emails from the application. The responses are slurped back into the application.
For example, if you were building a customer support system the email would likely contain some token to link the response back to the correct service ticket.
Wh...
Please, share your ideas which could serve as best practices or guidelines for creating ASP.NET MVC web applications. These ideas and/or coding samples should be relevant to ASP.NET MVC application creation itself and not to TDD or similar practices.
Other resources:
ASP.NET MVC Best Practices (Part 1) by Kazi Manzur Rashid
ASP.NET MV...
We just implemented a drupal site. Performance of the site seems to be an issue.
We enabled drupal caching, set up apache caching derivates.
Repeated page visits are fast enough (coz CSS and JS are cached), but initial page visits are still a problem.
Drupal experts, could you offer us some pointers, on different techniques used to s...
Please, share your tips and tricks related to JavaScript coding. The ones which make code more elegant and faster.
See also:
http://stackoverflow.com/questions/61088/hidden-features-of-javascript
...
I'm building a UI for my college, where I want people who are new to programming with C, to use my UI. In there I want to provide a feature where if they wish to insert an IF-Elseif-Else condition, or a FOR loop or a Switch Case, they may use the UI, where in they just have to fill in the values (the conditions) and the UI generates the ...
I keep seeing people trip over common misconceptions of how Perl exists and what it does.
There are generally 2 types of Perl Myth.
Type 1:
Things that people think about the language itself, that are not true
Type 2:
Behaviors people exhibit when using the language, which generally derive from lack of common sense.
The first on...
As a programmer I sometimes find myself in the position of being dealt a task which is utterly tedious and downright boring. This is not surprising, it would be odd if all aspects of programming were fantastically challenging and fun, but that doesn't change the fact that I wish I could live without these types of assignments.
For the ...
When I'm reading SO users' comments, I read many small useful tips, so I'm opening this thread to collect such tips.
For example, in this thread Oliver Giesen says:
First of all: Don't pass a non-nil Owner to Create if you're going to free the objects yourself anyway. This just adds lots of unnecessary overhead.
...
UITableView is a very powerful class, powering many navigation and preference views on iPhone. Many people have come up with useful UITableView tips, tricks and samples:
various ways to use Interface Builder for table cells
how to create preference-style cells
ensuring good scrolling speed
etc.
Please post your favourite tips on usin...
I was fooling around with margins and padding and found that a negative value was acceptable and gives a nice effect in appropriate circumstances. For instance, if you have a border with a filled object and you want the filled object color to overrun the border. Anyone have any others?
...
Loading Help or clicking F1 in Visual Studio is horribly slow to load and has been on ever PC I have installed it on. Is there any optimizations that can be employed to ease this pain?
This is not the same question as Visual Studio Optimizations I am just trying to solve the problem with help loading.
...
Basically, I really like vi[m]'s key-bindings, but not the rest of the editor. I really dislike emacs key-bindings, but like the rest of the editor.
viper-mode seems like the best of both worlds, but it's not perfect..
What vim features did you miss in emacs (and more importantly, how did you get them back)? What config-tweaks did you ...
I am trying to use Spring for the first time in an application. The general issue that comes up again and again is that I have no idea how to debug Spring. The framework is so configuration heavy that traditional code debugging seems fruitless. Short of turning on the debugging level logs (which are lacking) and scanning through I have n...
Do you have any unique or special uses of NSLog you use for debugging?
...
The things I'm trying to get my website to do are getting fairly complex, some of the things that need to be done take long enough that it gives visible delays.
Mainly, adding content to the document slows things down as well as jquery animations that I'm using.
I create elements using document.createElement("div") rather than just doi...
Our database is about to reach 1000 stored procedures. Although we were wise and created a good scheme for naming the stored procedures, hunting for the stored procedure you need can be a bit frustrating as you scroll and scroll and scroll. If I know the exact name of the stored procedure I'm looking for, it would be great to identify ...
There are plenty of performance questions on this site already, but it occurs to me that almost all are very problem-specific and fairly narrow. And almost all repeat the advice to avoid premature optimization.
Let's assume:
the code already is working correctly
the algorithms chosen are already optimal for the circumstances of the pr...
In exams and interview situations, it's common to need to either write or review code that's not on a screen.
Whether it's on paper or a whiteboard, what tips can you offer for both the writing and reviewing/debugging processes?
...
Zend Framework, being as flexible as it is, is ripe for plenty of tips and tricks. I know I've seen a lot of quirky, undocumented things that people put in their apps. I'd love for people to share their creative coding tricks using ZF.
There is a similar thread to this with Django that I found very helpful, so I thought I would start on...