> The cost of inefficient code can be higher than you think. Efficient code stretches hardware further, reduces power usage, makes code easier for programmers to understand. I'm curious what the reasoning is for "Efficient code ... makes code easier for programmers to understand". To my mind, efficient code (in this case, I assume coding to the hardware, as they mention elsewhere), has many benefits, but making it ea…
StackOverflow Update: 560M Pageviews a Month, 25 Servers
41–50 of 278 posts
Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#42> The cost of inefficient code can be higher than you think. Efficient code stretches hardware further, reduces power usage, makes code easier for programmers to understand. I'm curious what the reasoning is for "Efficient code ... makes code easier for programmers to understand". To my mind, efficient code (in this case, I assume coding to the hardware, as they mention elsewhere), has many benefits, but making it ea…
users=db.get("SELECT name FROM users WHERE group='admin'")
is more efficient and understandable then: users=[];
tmp=db.get("SELECT name,group FROM users")
for (i=0;iRe: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#43> With their SQL Servers loaded with 384 GB of RAM and 2TB of SSD, AWS would cost a fortune. I have next to zero experience with server administration, but 384GB seems like a lot to me. Is that common for production servers for popular web services? Do you need a customized OS to address that much memory? Seems like you'd really need to beef up the cache hierarchy make 0.38TB of RAM fast.
Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#44Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#45Anyone else not quite expecting StackExchange to be using a Microsoft stack?
Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#46I've recently started using their micro-ORM Dapper, and I like it a lot. I get the performance of hand-coded SQL, but without the tedious mapping from SqlDataReader to my entity.
Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#47Makes me wonder why smaller website teams need dozens of engineers to keep their infinitesimally smaller app running.
Guess they don't have Jeff Atwood and Joel Spolsky onboard.
Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#48Really hate the separate sites thing. I use a half dozen of them and they are computer related, so it is a pain in the ass always having to register and not being allowed to comment/answer at first, etc.. They have a few improvements now like importing your profile from other sites, but they shouldn't even have so many separate sites in the first place, just a tag or a category or something.
Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#49Makes me wonder why smaller website teams need dozens of engineers to keep their infinitesimally smaller app running.
Re: StackOverflow Update: 560M Pageviews a Month, 25 Servers
#50I've recently started using their micro-ORM Dapper, and I like it a lot. I get the performance of hand-coded SQL, but without the tedious mapping from SqlDataReader to my entity.
Dapper is great - I promptly dumped NHibernate and Entity Framework for it. It's the only ORM I've found that makes it trivially easy (as it should be) to use stored procedures and views in queries.