Все вопросы: [clarity]

6 вопросов

похожие теги:
0
голосов
1ответов
647 просмотров

VB.NET Delegate code clarification

I am trying to figure out what this piece of code does. It errors often (not in a system damaging way) but enough that it bothers me. It would be great if I could get some more information on what exactly is going on here and any suggestions on how I might be able to fix/prevent this. Code Publ...

7
голосов
7ответов
1610 просмотров

PHP best practices: repass variables from config file when calling functions or use global?

I have a program that I use on several sites. It uses require('config.php'); to set any site dependant variables like mysql connect info, paths, etc. Let's say that I use one of these site-dependant variables in a function, like $backup_path. This variable was initially declared in config.php, ...

4
голосов
1ответов
1468 просмотров

iPhone Dev - Where to put lazy loading code

I already had a question like this, but I already deleted it anyway. I have very simple app that has a root view controller and it switches between two other view controller views. So in my root view controller, It lazy loads the instances of the two other view controllers. Each time the switch ...

4
голосов
9ответов
609 просмотров

General programming - else or else if for clarity

In a situation where a variable could have two different values, and you do something if its one, something differnent if its the other, would you just do: if(myVariable == FIRST_POSSIBLE_VALUE) { ... } else { ... } or would you do: if(myVariable == FIRST_POSSIBLE_VALUE) { ... } else if (myVa...

15
голосов
3ответов
5376 просмотров

Почему в WPF все размыто?

Может кто-нибудь объяснить, почему в WPF все размыто? Это можно исправить?

6
голосов
8ответов
10460 просмотров

Проверить, является ли переменная нулевой перед присвоением ей значения?

Дорогое ли присвоение переменных по сравнению с нулевой проверкой? Например, стоит ли перед присвоением ему значения null проверять, что foo не равно null? if (foo != null) { foo = null; } Или это ни о чем не беспокоит?