|
Shaggar posted:you cant do sp calls in hibernate without serious pain. it is a superset of mybatis statement mapping, which i thought you enjoyed alternatively hibernate also lets you just call SPs directly with a single method call and not have any SP mapping poo poo at all, like jdbc, but get back a useful object (in this case a Cat) Java code:
|
# ? Jul 26, 2013 02:54 |
|
|
# ? May 9, 2024 03:04 |
|
Notorious b.s.d. posted:where is the serious pain? shaggars brain hurts when it doesn't look like the code he would write
|
# ? Jul 26, 2013 03:04 |
|
JewKiller 3000 posted:2 posts between shaggar claim and shaggar backpedal, a new record? I thought he was doing sql but hes not. of course sql server isn't gonna be able to do non sql stuff without added effort. Notorious b.s.d. posted:it is a superset of mybatis statement mapping, which i thought you enjoyed unless hibernate has changed recently it doesn't do statement mapping. mybatis is a completely separate project that was started specifically cause doing procs in hibernate sucked. like you cant do a proc that doesn't return a result set. also doing sql in code is dumb
|
# ? Jul 26, 2013 03:06 |
|
Ronald Raiden posted:wait whats wrong with python scope? its almost-but-not-really lexical scope and its rly annoying Shaggar posted:I thought he was doing sql but hes not. of course sql server isn't gonna be able to do non sql stuff without added effort. ama i understanding you correctly that geospatial data is "not sql"
|
# ? Jul 26, 2013 03:44 |
|
Nomnom Cookie posted:ama i understanding you correctly that geospatial data is "not sql" idk you can run geospatial queries in postgres 'til the cows come home if you've got a shitload of money to hire a license consultant and then figure out how many cores are in your servers and sockets and spend like six or seven figures on geospatial support in oracle too
|
# ? Jul 26, 2013 04:18 |
|
yea its humorously thin as i expected
|
# ? Jul 26, 2013 04:21 |
|
Cocoa Crispies posted:idk you can run geospatial queries in postgres 'til the cows come home tjhrow it into mongodb
|
# ? Jul 26, 2013 04:22 |
|
hey rocketsauce we miss you in the cat thread
|
# ? Jul 26, 2013 04:24 |
|
vapid cutlery posted:tjhrow it into mongodb why use mongo when rm is much easier to administer
|
# ? Jul 26, 2013 04:27 |
|
Nomnom Cookie posted:ama i understanding you correctly that geospatial data is "not sql" [img crying-jim-gray]
|
# ? Jul 26, 2013 04:32 |
|
Shaggar posted:unless hibernate has changed recently it doesn't do statement mapping. mybatis is a completely separate project that was started specifically cause doing procs in hibernate sucked. like you cant do a proc that doesn't return a result set. hibernate 3 came out nine years ago dude Shaggar posted:also doing sql in code is dumb yes it is Notorious b.s.d. fucked around with this message at 05:05 on Jul 26, 2013 |
# ? Jul 26, 2013 04:40 |
|
Cocoa Crispies posted:if you've got a shitload of money to hire a license consultant and then figure out how many cores are in your servers and sockets and spend like six or seven figures on geospatial support in oracle too man this is what my company needs to do because every time we set up an oracle spatial database, the performance is terrible and it shits itself on a regular basis. can't do that though because we gotta meet this stupid schedule!!!!
|
# ? Jul 26, 2013 04:40 |
|
anyone recommend a book on programming language design? like call by value vs reference, different kinds of typing, different kinds of dispatch, etc basically all the stuff this thread keeps making me run to wikipedia for
|
# ? Jul 26, 2013 05:13 |
|
Star War Sex Parrot posted:hey rocketsauce we miss you in the cat thread like everything else in my life when it gets out of hand i just pretend it doesn't exist. i think i have like 4000 unread posts in there. sorry, i'll catch up
|
# ? Jul 26, 2013 05:18 |
|
coffeetable posted:anyone recommend a book on programming language design? like call by value vs reference, different kinds of typing, different kinds of dispatch, etc I recommend the series Goosebumps by R.L. Stine
|
# ? Jul 26, 2013 05:20 |
|
vapid cutlery posted:like everything else in my life when it gets out of hand i just pretend it doesn't exist. i think i have like 4000 unread posts in there. sorry, i'll catch up take it at your own pace
|
# ? Jul 26, 2013 05:25 |
|
coffeetable posted:anyone recommend a book on programming language design? like call by value vs reference, different kinds of typing, different kinds of dispatch, etc http://www.cis.upenn.edu/~bcpierce/tapl/
|
# ? Jul 26, 2013 05:27 |
|
Shaggar posted:w/ checked exceptions, the compiler informs you about the possible errors and asks you to handle them Refactored some code and suddenly a new type of exception can be thrown, welp I guess everyone that uses my library just got shaggared
|
# ? Jul 26, 2013 09:23 |
|
zokie posted:Refactored some code and suddenly a new type of exception can be thrown, welp exceptions are part of the interface if you gently caress with the interface then the users are hosed regardless
|
# ? Jul 26, 2013 09:57 |
|
And then I cant properly handle the exception when initially caught, so I have to break the interface for an arbitrary number of things just because checked exceptions.
|
# ? Jul 26, 2013 10:06 |
|
how will option types solve that? the user still needs to change their code the compiler might not complain about it (e.g. they match non-success with underscore) but if they don't change it they'll get undefined behavior score one for exceptions
|
# ? Jul 26, 2013 10:14 |
|
It lets them handle exceptions where they find it suitable, and let them decide on whatever they want to do. Instead of forcing them to jump through hoops to make stuff compile. I mean, it's not like they are enforced on the lower levels it's just an annoying gatekeeper. Java does not need them to function!
|
# ? Jul 26, 2013 10:57 |
|
Cocoa Crispies posted:why use mongo when rm is much easier to administer
|
# ? Jul 26, 2013 11:14 |
|
zokie posted:It lets them handle exceptions where they find it suitable, and let them decide on whatever they want to do. Instead of forcing them to jump through hoops to make stuff compile. I mean, it's not like they are enforced on the lower levels it's just an annoying gatekeeper. Java does not need them to function! lesse the option type solution. we have two types of users: 1) users that match against all possible options: these guys get a compile error (missing case) to modify their code in response to interface change. no improvement over exceptions 2) users that match against success and lump everything else in one case: these guys don't even get a warning what the gently caress happened. if you throw your new error type in the library they have undefined behavior. (e.g. your library hosed with some stateful thing). worse than exceptions principle of least astonishment etc etc
|
# ? Jul 26, 2013 11:26 |
|
zokie posted:It lets them handle exceptions where they find it suitable, and let them decide on whatever they want to do. Instead of forcing them to jump through hoops to make stuff compile. I mean, it's not like they are enforced on the lower levels it's just an annoying gatekeeper. Java does not need them to function! if you change the api enough that its returning a new error and you don't do something that's gonna fail to compile, they're never going to know about your change and if it starts loving up return values (ex: returning nothing instead of a value) they're never going to know about it and now you've ruined their application. although if you think making programmers aware of api error changes is "jumping through hoops" then you probably wont ever get it. having the compiler error cause of new checked exceptions is one of the best parts of checked exceptions.
|
# ? Jul 26, 2013 14:28 |
|
just version your apis and don't make breaking changes? idk works on my machine
|
# ? Jul 26, 2013 14:46 |
|
sure, but what's a programmer more likely to do when upgrading a library: 1) read the documentation carefully for changes 2) slam it in and mash compile w/out thinking
|
# ? Jul 26, 2013 14:49 |
|
vapid cutlery posted:tjhrow it into mongodb no don't Cocoa Crispies posted:why use mongo when rm is much easier to administer
|
# ? Jul 26, 2013 16:14 |
|
presented w/o comment http://www.leafpetersen.com/leaf/publications/hs2013/haskell-gap.pdf
|
# ? Jul 26, 2013 16:18 |
|
Shinku ABOOKEN posted:lesse the option type solution. we have two types of users: that sounds like a sum type. an option type looks like this: code:
|
# ? Jul 26, 2013 16:25 |
|
haskell faster than terrible c code good c code faster than haskell i'm shocked.
|
# ? Jul 26, 2013 16:26 |
|
hobbesmaster posted:haskell faster than terrible c code for most of the benchmarks the cs 102 code is faster than the authors' haskell compiler. GHC is wandering around in p-lang territory
|
# ? Jul 26, 2013 16:33 |
|
Shaggar posted:sure, but what's a programmer more likely to do when upgrading a library: so bend over backwards for the idiots from #2 ok got it
|
# ? Jul 26, 2013 16:37 |
|
uG posted:so bend over backwards for the idiots from #2 ok got it That's what programming is about, meditate on this knowledge and then kill yourself
|
# ? Jul 26, 2013 16:46 |
|
uG posted:so bend over backwards for the idiots from #2 ok got it if you have the choice not to, you're far luckier than the rest of us
|
# ? Jul 26, 2013 16:50 |
|
if you arent going to read my documentation then i dont want you using my libraries in the first place. or, gasp, check the changelog!
|
# ? Jul 26, 2013 17:01 |
|
i read the changelog after a major version bump. use semantic versioning, assholes
|
# ? Jul 26, 2013 17:04 |
|
Shaggar posted:sure, but what's a programmer more likely to do when upgrading a library: Shaggar posted:some programmers are bad so we should give up and not have good tools. let me tell you about my python library....
|
# ? Jul 26, 2013 17:09 |
|
Otto Skorzeny posted:presented w/o comment http://www.leafpetersen.com/leaf/publications/hs2013/haskell-gap.pdf I'm the ninja C.
|
# ? Jul 26, 2013 17:14 |
|
|
# ? May 9, 2024 03:04 |
|
i like the idea of haskell because i'm lazy and love making the compiler do all the work, but i can never get through the syntax because i'm a bad/shallow programmer. someone sell me on it. or don't. god bless
|
# ? Jul 26, 2013 17:19 |