Reputation
209
Top tag
Next privilege 250 Rep.
View close votes
Badges
2 9
Newest
 Critic
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 17 votes cast
2d
comment Are short abbreviated method/function names that don't use full words bad practice or a matter of style?
Sometimes, abbreviations like repr() are simply products of laziness and sloppiness.
2d
comment Are short abbreviated method/function names that don't use full words bad practice or a matter of style?
@Brandin We do use abbreviations every day, but we use common abbreviations. Constantly abbreviating everything willy nilly, however, is confusing in my opinion. "cat" and "col" are not common everyday abbreviations.
Dec
16
awarded  Critic
Dec
16
comment Is there a better alternative than abusing the IDisposable pattern?
Asking for a "better" alternative seems a bit subjective.
Dec
2
awarded  Popular Question
Apr
23
comment Are short abbreviated method/function names that don't use full words bad practice or a matter of style?
That's why namespacing exists -- to avoid clashes.
Apr
23
comment Are short abbreviated method/function names that don't use full words bad practice or a matter of style?
Absolutely agreed. It really irks me to see things like col, cat, and elm instead of column, category, and element. I see no benefit of using abbreviations (or as a coworker put it, "single-syllable variable names"). It saves pretty much no time to type "col" rather than "column," and any time savings will be outweighed by other developers repeatedly having to take an extra second or two to figure out what some abbreviation actually means.
Feb
11
awarded  Yearling
Feb
11
revised Do RESTful API controllers typically only provide resources related to their own type?
added 75 characters in body
Feb
11
asked Do RESTful API controllers typically only provide resources related to their own type?
Nov
9
asked In an MVC, should models use libraries, or should libraries use models?
Nov
6
awarded  Curious
Nov
6
comment Would it make sense to have a database table with only one record for tracking site summary stats?
@GrandmasterB Wouldn't the tally system be the same as what I would be doing with the stats table (keeping a summary and using that to log the balance in each new transaction)? If not, how does a tally system differ?
Nov
5
comment Would it make sense to have a database table with only one record for tracking site summary stats?
Ah, so a view that aggregates all transactions. Not a bad idea, but, there could be many, many transactions...millions. I am storing both user-level transactions AND site-level transactions (I'm using Mongo, so hence the optional-ness of transactions.userId). So, in a site-level transaction, I need to log the current site balance, and since transactions will happen frequently (let's say 10 per second), I would think an aggregation query would have a negative impact on performance.
Nov
5
asked Would it make sense to have a database table with only one record for tracking site summary stats?
Oct
24
revised What should my RESTful API method look like for a Roulette game?
deleted 113 characters in body
Oct
23
asked What should my RESTful API method look like for a Roulette game?
Feb
8
awarded  Notable Question
Oct
29
comment Is this a secure solution for RESTful authentication?
@Donal That's true...maybe this is overkill. How would you do it? If using SSL, would you keep it simple and 1) send passwords via REST POST in plain text (encrypted via SSL) and 2) just assign a token for each user account and send that in each user's API request?
Oct
28
comment Is this a secure solution for RESTful authentication?
Yep, it'll be over HTTPS, and I'm using Sinatra for the API.