|
what kind of loving idiot uses three spaces to indent god it's so aggravating
|
# ? Jul 18, 2013 22:59 |
|
|
# ? May 27, 2024 04:14 |
|
HORATIO HORNBLOWER posted:what kind of loving idiot uses three spaces to indent god it's so aggravating had this loving poo poo in a bunch of html templates in our codebase was incredibly obnoxious
|
# ? Jul 18, 2013 23:16 |
|
abraham linksys posted:had this loving poo poo in a bunch of html templates in our codebase yeah, markup languages in a code base? that'd piss me off too also dont use orms use stored procedures
|
# ? Jul 18, 2013 23:47 |
|
orms are the worst loving thing ever
|
# ? Jul 18, 2013 23:48 |
|
sorry for the controversial opinions. also i just learned that django-admin can generate models/migrations whatever from an existing db which owns. lol that rails can't do that.
|
# ? Jul 18, 2013 23:49 |
|
Developers, developers, developers. They get all the worst tools on Windows. Actually I think The Carmack said Windows debugging has been improving recently, he previously used Linux ports for Valgrind. http://www.develop-online.net/news/43192/Carmack-No-mainstream-business-case-for-Linux
|
# ? Jul 19, 2013 00:45 |
|
Jonny 290 posted:yeah, markup languages in a code base? that'd piss me off too it's just kinda depressing when you do it
|
# ? Jul 19, 2013 01:34 |
|
i like ORMs when theyre like but probably not if im gonna be maintaining it. spring data is hella cool tho
|
# ? Jul 19, 2013 01:44 |
|
entity framework is okay if you only use like half the features and only for super simple CRUD stuff. anything involving multiple tables is automatically sql/stored proc territory
|
# ? Jul 19, 2013 06:22 |
|
I think the 3-space indent thing comes from some version of BLOODSHED Dev-C++ that defaulted to a 3-space indent. Have any other tools in the history of mankind done that?
|
# ? Jul 19, 2013 07:17 |
|
Jonny 290 posted:yeah, markup languages in a code base? that'd piss me off too
|
# ? Jul 19, 2013 13:34 |
|
in django i make my db be compatible with the orm and i use it when its easy like user = User.objects.get(name="shitlord mcfuckstein") but i write my own sql queries when i need to do anything like multiple relations where does that put me on the pro/scrub scale
|
# ? Jul 19, 2013 15:49 |
|
scrub
|
# ? Jul 19, 2013 15:58 |
|
scrub points for django and orm. pro points if you are using a statement mapper for the sql doublescrub points if your query is sitting in code triplescrub points if you aren't at least using parameterized sql.
|
# ? Jul 19, 2013 16:04 |
|
I do parametrized sql but yeah my queries hang out in my code its not a very big project and i am in charge and the least ignorant on these topics i have never heard of statement mapping i probably need to read a book e: honestly is there really a 'pro' way to do webdev (pre-emptive shaggar response: 'yes use java')
|
# ? Jul 19, 2013 16:14 |
|
Socracheese posted:honestly is there really a 'pro' way to do webdev (pre-emptive shaggar response: 'yes use .net mvvm')
|
# ? Jul 19, 2013 16:21 |
|
asp mvc 4 with knockout.js, which is conveniently included by default
|
# ? Jul 19, 2013 16:25 |
|
Socracheese posted:I do parametrized sql but yeah my queries hang out in my code java + spring/guava + hibernate/mybatis + tomcat/jetty/glassfish + postgres/mssql -> success
|
# ? Jul 19, 2013 16:43 |
|
what is a statement mapper? my queries hang out in code so doublescrub points for me I guess
|
# ? Jul 19, 2013 16:47 |
|
quote:The subject of object/relational mapping technologies came up, and it was there and then that I first coined the phrase, "Object/relational mapping is the Vietnam of Computer Science".
|
# ? Jul 19, 2013 16:55 |
|
Slides about the different pointer types in Rust, particularly borrowed pointers. http://smallcultfollowing.com/babysteps/pubs/2013.07.17-NEU.pdf You can template Rust functions on the lifetime of a variable.
|
# ? Jul 19, 2013 17:32 |
|
Plastic Snake posted:what is a statement mapper? my queries hang out in code so doublescrub points for me I guess basically you map a method and its parameters in code to a sql statement and parameters. For example lets say you have the statement Java code:
now traditionally you might have the bonerTown object contain some database code that builds the sql or maybe does some orm crap. with a statement mapper you say "map the call to getBoners in my code to getBonersByLengthAndGirth_sel_sp in my list of statements. Here is an example of the map: XML code:
code:
When you do this correctly there is no mention of any database stuff anywhere in your code and the implementation can be a runtime dependency instead of a compile time dependency. This way you can make ur tests eaiser and also do do cool stuff like swap a local database implementation of the interface for a remote service interface. Super handy! its pretty good and way nicer than trying to manage sql in code like some weirdo or getting stuck refactoring a bunch of poo poo when you decide you want to change the implementation.
|
# ? Jul 19, 2013 17:52 |
|
shaggar stylin on bitches itt
|
# ? Jul 19, 2013 18:53 |
|
I don't usually agree with the shags but all my java+db projects are rockin mybatis-guice
|
# ? Jul 19, 2013 23:09 |
|
obstipator posted:node is cool & good. eat poo poo haterz node isn't really that great actually, because you have to use javascript. cya
|
# ? Jul 20, 2013 03:13 |
|
I like to use stored procs because every time I need to filter or sort differently I get to write a whole other new sproc and then configure it with my statement mapper. Sometimes I'm lazy and just do basic operations easily handled by a database in memory instead after loading the whole object set, though.
|
# ? Jul 20, 2013 03:31 |
|
i'm making a browser extension is there an alternative to javascript?
|
# ? Jul 20, 2013 03:48 |
|
chumpchous posted:i'm making a browser extension is there an alternative to javascript? i hear jquery is a good language
|
# ? Jul 20, 2013 03:54 |
|
chumpchous posted:i'm making a browser extension is there an alternative to javascript? u could use coffeescript
|
# ? Jul 20, 2013 04:27 |
|
Bloody posted:u could use coffeescript the problem with coffeescript is you have to learn javascript before you can learn coffee script, so what is the loving point at all?
|
# ? Jul 20, 2013 04:40 |
|
well you see the point is *sips coffescript*
|
# ? Jul 20, 2013 04:58 |
|
dart? who knows.
|
# ? Jul 20, 2013 05:12 |
|
coffeescript is retarded as hell. javascript is a really good language on its own
|
# ? Jul 20, 2013 05:25 |
|
chumpchous posted:i'm making a browser extension is there an alternative to javascript? you can use c++ by compiling a custom build of chromium or something
|
# ? Jul 20, 2013 05:47 |
|
XPCOM
|
# ? Jul 20, 2013 05:52 |
|
you could also use one of the various language x to javascript transcompilers
|
# ? Jul 20, 2013 06:17 |
|
read 'javascript the good parts' and dwi that's what I think
|
# ? Jul 20, 2013 06:23 |
|
chumpchous posted:i'm making a browser extension is there an alternative to javascript?
|
# ? Jul 20, 2013 07:01 |
|
chumpchous posted:i'm making a browser extension is there an alternative to javascript? java applets
|
# ? Jul 20, 2013 12:03 |
|
|
# ? May 27, 2024 04:14 |
|
thanks shags that sounds pretty sweet. I will do some looking around on c# equivs and see what I can do
|
# ? Jul 20, 2013 18:10 |