Skip to main content
That Realtor Programmer Guy's user avatar
That Realtor Programmer Guy's user avatar
That Realtor Programmer Guy's user avatar
That Realtor Programmer Guy
  • Member for 13 years, 10 months
  • Last seen more than a month ago
  • Henrietta, TX
comment
Automatic programming: write code that writes code
Well, you can get into meta-meta-programming and work with systems that help mint DSLs. A DSL DSL, if you will. At this point both camps converge
comment
RESTful URI map to database tables?
@keelerjr12 well there are UNION and JOIN commands as well as VIEW / virtual tables that combine data. You could even SELECT into different keys of a JSON structure these days
comment
Is there a more modern program than lex or yacc, which does not require JVM?
I tend to just make an efficient sax parser then hollow out the XML specific logic and make it dynamic enough to change what opens/closes a context and what current catches are. Very performant for many tasks as long as your target AST not more complex than XML. Using something with an API like so vs using generator is another potentially viable option.
comment
AGPL - what you can do and what you can't
What about hosting an AGPL software on a subdomain and server of another webapp which links to it? Should be ok yes?
Loading…
comment
Is there anything that can be done with recursion that can't be done with loops?
A loop is a self-recalling block of code. Loops are recursion with defined exit conditions
comment
Why are there no PUT and DELETE methods on HTML forms?
I must say this is disappointing. Especially with the file form control, more than any other, put and delete are immediately useful. PUT sending one or more file contents, and delete sending a URI
comment
Why do books say, "the compiler allocates space for variables in memory"?
off topic a bit, but in an interpreted language, unlike C++, the interpreter would literally be the agent allocating/deallocating/operating on data. the logical meaning is roughly the same when talking about a compiler, though the literal meaning is not
comment
Why do books say, "the compiler allocates space for variables in memory"?
well technically: when the memory is allocated at execution time, it was indeed the compiler's translation into machine code which causes said allocation to exist/occur. ALL the allocations from ALL the runs of your executable are "done by the compiler"
awarded
awarded
awarded
comment
Using scoped enums for bit flags in C++
@sehe ya, i wonder about the legalities attribution to screennames so i ask anyway lol, thx ;p
comment
Using scoped enums for bit flags in C++
@sehe hey, template code is not supposed to be legible and make sense. what is this witchcraft? nice.... is this snippet open to use lol
comment
Refactoring Bittersweet PHP: How can I make this less painful?
@GregBurghardt the question you link as duplicate was "asked Jul 3 '12 at 20:30" -- my question was "asked Apr 28 '11"
comment
Stored Procedures a bad practice at one of worlds largest IT software consulting firms?
@Rig Code reuse is added just as it is for functions of any language - by wrapping code in a reusable container. Certainly stored procedures do in fact protect you from SQL injection so long as you don't execute a string you've built. To say speed is minimal seems simply uneducated. Most cases wont fall into the same categories on performance benefits but show a wide disparity.
comment
Is it okay to go against all-caps naming for enums to make their String representation simpler?
I think the answer is more based in your idea of 'okay'. The world is, most likely, not going to burst into flames if you do this and you can even successfully write a program. Is it useful? meh too subjective. If you get some benefit, is it worth it for you and will it affect others? Those are the questions I'd care for.
comment
How to convince my boss that quality is a good thing to have in code?
@Pacerier I could agree that leaving can be an easier solution personally. I give my +2 because putting the effort to change minds improves not only your own work quality but also the whole team's work environment; plus it takes confidence.
awarded
awarded
1
2 3 4 5 6