10,609 reputation
52057
bio website
location
age
visits member for 3 years, 9 months
seen yesterday

Apr
5
comment What advantages are conferred by using server-side page rendering?
@maple_shaft - MITM is something to think about, but again I'm not sure why it makes a difference for API vs. server generated HTML. I suppose an API is more convenient to program against, so it would be a marginally easier crack, but I doubt that's what you mean.
Apr
5
comment What advantages are conferred by using server-side page rendering?
@Oded - That would be part of the private API implementation. Well, I sincerely hope it would. There is no reason for the API to even reveal what persistence mechanism is used.
Apr
5
comment What advantages are conferred by using server-side page rendering?
@Oded - Why is security easier to do when you render the page vs. in the API? I've always thought that what you have to program is equivalent either way, but it's easier (at least for me) psychologically to remember not to trust the client when doing an API. I'm asking because if I'm overlooking something I really want to know.
Apr
5
comment What to answer to a customer who asks which one of two equivalent technologies must be used?
If I were the client I might answer "I have no idea - but I'd like to think the pilot does."
Apr
3
comment Which is a better design pattern for a database wrapper: Save as you go or Save when you're done?
Also, sometimes if you don't want to lose data but don't want bad data either you can save to some sort of "staging area" then commit it, but whether and how this works is pretty application specific.
Apr
2
comment JavaScript Phone Screen
@TomClarkson - Yeah, I'd buy that explanation in an interview. Though the OP said "insists" it's block level scope. Someone saying "here's why it never came up for me" with a reasonable explanation like yours would be fine. You have good points but I still think it's a relatively good interview "trivia" question.
Apr
2
answered Does not documenting code result in job security?
Apr
2
comment I'm going to quit my job because of our platform: how can I leave a productive explanation of this?
@JeffAtwood - If you ever want to elaborate on specific enough I for one would be grateful. This site takes the Venn diagram pretty seriously - if it applies to programmers and 47 people in the software book publishing industry then it's in danger of getting closed, or so it seems to me.
Apr
2
comment JavaScript Phone Screen
@TomClarkson - But you would probably eventually try to "redeclare" a variable with "var myVar" inside a block, realize it has kept its old value from outside the block, and look up what's going on.
Mar
30
comment Duck checker in Python: does one exist?
You're a bit vague on what you want to do. When do you want the checks to occur? Checking what attributes exist doesn't really need a library since Python supports a lot of introspection already. Other validations could be done in various ways, such as attributes. As far as simple syntax, Python usual does such things in Python rather than inventing a syntax.
Mar
30
answered JavaScript Phone Screen
Mar
30
answered Why would a programmer want to separate implementation from interface?
Mar
30
comment How does one become a big contributor to an opensource project?
Step 1 - Become huge contributor. Step 2 - cut back a little.
Mar
29
answered When should JavaScript generate HTML?
Mar
28
comment When should JavaScript generate HTML?
@VirtuosiMedia - But don't the pre-rendered HTML snippets have the same issues when rendered server-side as they do when rendered via javascript? I'm not trying to be contentious, I genuinely don't understand what your issue is.
Mar
28
comment When should JavaScript generate HTML?
Why do you think the markup is easier to read and trace via Ajax?
Mar
26
answered Is Ruby on Rails' Active Record an example of Aspect-Oriented Programming?
Mar
23
comment Best approach for a database of long strings
why don't you like "raw" strings? Is the data in fact strings, or is it structured data? Do you plan to do something with it that wouldn't work for strings? There isn't any clear reason in your question why a database wouldn't be appropriate. The same with strings (or perhaps CLOBS if they are too big and depending on what database you use).
Mar
22
comment Do you sign contracts digitally or still on paper? And what do clients think?
If you aren't interested in legal aspects you probably also want to remove the "any drawbacks doing this" part of your question.
Mar
22
answered Do you sign contracts digitally or still on paper? And what do clients think?