alex's user avatar
alex's user avatar
alex's user avatar
alex
Front End Engineer at Facebook
  • Member for 14 years, 11 months
  • Last seen more than a month ago
1632 votes
91 answers
1.5m views

Does JavaScript have a method like "range()" to generate a range within the supplied bounds?

664 votes
8 answers
462k views

Can I make a <button> not submit a form?

488 votes
14 answers
587k views

JavaScript displaying a float to 2 decimal places

347 votes
24 answers
145k views

What is a practical use for a closure in JavaScript?

308 votes
5 answers
176k views

Can jQuery get all CSS styles associated with an element?

265 votes
13 answers
222k views

What's better at freeing memory with PHP: unset() or $var = null

248 votes
9 answers
498k views

How does RewriteBase work in .htaccess

244 votes
11 answers
165k views

What's quicker and better to determine if an array key exists in PHP?

212 votes
10 answers
235k views

What is the difference between printf() and puts() in C?

193 votes
9 answers
193k views

How can I update window.location.hash without jumping the document?

184 votes
16 answers
188k views

Custom key-sort a flat associative based on another array

168 votes
16 answers
227k views

Difference between if () { } and if () : endif;

160 votes
18 answers
138k views

Debugging JavaScript in IE7

146 votes
3 answers
124k views

Why don't :before and :after pseudo elements work with `img` elements? [duplicate]

135 votes
9 answers
57k views

Which is faster in PHP, $array[] = $value or array_push($array, $value)?

133 votes
6 answers
302k views

Can you 'exit' a loop in PHP?

133 votes
6 answers
93k views

When creating HTML emails, should we use html, head, body tags?

133 votes
7 answers
247k views

How to delete from multiple tables in MySQL?

116 votes
5 answers
58k views

What is the correct HTTP status code to send when a site is down for maintenance?

110 votes
10 answers
41k views

What does immutable mean?

90 votes
2 answers
59k views

Can you target an element with CSS only if 2 classes are present?

84 votes
11 answers
49k views

Is there an online tester for xPath selectors? [closed]

81 votes
8 answers
78k views

Can you get a method name from within a method in PHP?

80 votes
11 answers
135k views

Can't concatenate 2 arrays in PHP

75 votes
6 answers
16k views

Is reading the `length` property of an array really that expensive an operation in JavaScript?

73 votes
3 answers
55k views

Select inputs and text inputs in HTML - Best way to make equal width?

70 votes
10 answers
40k views

How can you tell exactly what insecure items are causing a browser to warn about mixed secure and insecure items?

69 votes
8 answers
97k views

How can I force PHP to use strings for array keys? [duplicate]

65 votes
12 answers
108k views

Can't connect to HTTPS site using cURL. Returns 0 length content instead. What can I do?

62 votes
6 answers
76k views

Is it possible to redirect post data?

1
2 3 4 5
17