|
MononcQc posted:I wanted to comment on this one thing here. huh I should've known that pure is a well defined technical term on this context. but hey I learned a thing now. I guess I wanted a way to differentiate the casual fp in python from the real hardcore fp of these languages
|
# ? Sep 26, 2013 14:28 |
|
|
# ? May 16, 2024 08:30 |
|
coffeetable posted:crossquotin' because of this thread's hardon about ORMs oh thanks i thought about posting it here too but it is for an istp
|
# ? Sep 26, 2013 14:29 |
|
coffeetable posted:theoryspergin': only true on balanced trees. trees in general it can be O(n) b/c their height can be O(n) True. Most key/value data structures in functional programming are based on trees of different branching factors (because that's often pretty much the best you can do in many cases without breaking immutability) and will use balanced trees because otherwise the performance will turn to poo poo. I tend to forget that non-balanced trees are still a thing that is useful sometimes We butthurt functional programmers will have different ways to think about things so we think we're super efficient though, so we get excited about amortized performances in pure data structures instead.
|
# ? Sep 26, 2013 14:31 |
|
Symbolic Butt posted:I guess I wanted a way to differentiate the casual fp in python from the real hardcore fp of these languages most lisps aren't hardcore functional, it's pretty much just scheme and (I think, I've never used it) clojure.
|
# ? Sep 26, 2013 14:35 |
|
make this the new programming thread, banish arguments about serialization and p/j-langs to the old thread
|
# ? Sep 26, 2013 15:07 |
|
we dont even fight about typing any more
|
# ? Sep 26, 2013 15:09 |
|
i dont really understand wtf you are talking about with strongly typed results from your ORM. your ORM should be using a schema to define types, and your database is already typed. what additional typing are you asking about?
|
# ? Sep 26, 2013 15:35 |
|
at work we use untyped ado.net datasets. more than once this situation has bitten me:C# code:
|
# ? Sep 26, 2013 16:13 |
|
why the hell is creating a copy of an object in Objective-C so goddamn complicated
|
# ? Sep 26, 2013 16:18 |
|
in fact objc kinda scares the poo poo out of me because it's so verbose and like. weird. it uses a totally different way of defining an object than i'm used to
|
# ? Sep 26, 2013 16:18 |
|
Pollyanna posted:in fact objc kinda scares the poo poo out of me because it's so verbose and like. weird. it uses a totally different way of defining an object than i'm used to java: blah blah blahbedy fuckin blah (int Blah) objc: bloogety fuckin blorfblargh bleep (int Blah) subtle diffs
|
# ? Sep 26, 2013 16:25 |
|
i barely GNU her! posted:at work we use untyped ado.net datasets. more than once this situation has bitten me: so the orm you use has a schema but doesn't let you type your objects? yORMpos
|
# ? Sep 26, 2013 16:29 |
|
i mean i use typing in perl orms and thats a plang without an object model so...
|
# ? Sep 26, 2013 16:30 |
|
that's not an orm, that's a result set from the server. and each field in that result object does have a type (kinda - it's stored with the column definition but internally i think it's stored as an object), but you have to know in advance what the type of each field is supposed to be so you can access it right. well-written c# demands strong typing w/ real classes and farting around with converting between unknown formats is poor practice at best and unstable at worst
|
# ? Sep 26, 2013 16:47 |
|
uG posted:i dont really understand wtf you are talking about with strongly typed results from your ORM. your ORM should be using a schema to define types, and your database is already typed. what additional typing are you asking about? like i fuckin know once upon a time i used an orm and i could ask it for players matching some condition and i would get back an array of players or whatever i dont want anything to do with loving around with varchars and all that bullshit i just want my objects
|
# ? Sep 26, 2013 16:58 |
|
maybe the fundamental issue here is how the gently caress do i use a database in a way that doesnt suck dick for me or my program currently orms fulfill requirement #1 but not #2 if shitposters are to be believed
|
# ? Sep 26, 2013 16:59 |
|
Jonny 290 posted:java: java classes are objc interfaces. java interfaces are objc protocols. objc static means a million things because of its C heritage, and none of those meanings are the same as java's static. java will complain if you do stuff with null (nil). objc is more laid back and just lets the nil propagate to somewhere a user can see it. Bloody posted:maybe the fundamental issue here is how the gently caress do i use a database in a way that doesnt suck dick for me or my program currently orms fulfill requirement #1 but not #2 if shitposters are to be believed Use Spring Data JPA. It's like Mybatis but has more dependencies so you know it's doing something cool with them.
|
# ? Sep 26, 2013 17:04 |
|
if your data is important, don't use an orm. if your data is sort of important, ok use an orm I guess and then spend 1000x the time you "saved" by using an orm on your reporting. if you data isn't important it doesn't matter what you use.
|
# ? Sep 26, 2013 17:05 |
|
Shaggar posted:if your data is important, don't use an orm. shagster im using c# and aspmvc4whatever what should i do i dont know what sort of data qualifies as "important"
|
# ? Sep 26, 2013 17:09 |
|
I use mybatis.net but u could use entity framework if you wanted. I didn't like it myself. tbh I don't know that much about other db frameworks. you can also make ur own on top of ado.net if you hate yourself.
|
# ? Sep 26, 2013 17:12 |
|
Shaggar posted:if your data is important, don't use an orm. Pfft just shove everything in Hadoop and M/R the reports.
|
# ? Sep 26, 2013 17:12 |
|
Bloody posted:shagster im using c# and aspmvc4whatever what should i do oh ffs. in this case use ef 5, implement a generic repository using rest verbs, get a unit if work to sync your repositories and loving go nuts. go code first or at least use the POCO reverse generator if you already have a data schema and live in harmony with your orm that can still be reported from because you were smart enough to model your entities into bcnf. enjoy
|
# ? Sep 26, 2013 18:18 |
|
Nomnom Cookie posted:java will complain if you do stuff with null (nil). objc is more laid back and just lets the nil propagate to somewhere a user can see it. whaaaa
|
# ? Sep 26, 2013 18:26 |
|
PleasingFungus posted:whaaaa yup, i just went through a tutorial that specifically pointed this out
|
# ? Sep 26, 2013 19:30 |
|
Bloody posted:shagster im using c# and aspmvc4whatever what should i do just use ef and enjoy life
|
# ? Sep 27, 2013 03:57 |
|
VanillaKid posted:most lisps aren't hardcore functional, it's pretty much just scheme and (I think, I've never used it) clojure. my lisp experience is just racket and it felt very hardcore to me even if all the mutation and oop stuff was right at my side for me to use. it's like "oh yeah, we got all of these for you... just in case... but you really don't want these riiight?"
|
# ? Sep 27, 2013 04:04 |
|
ya thats scheme
|
# ? Sep 27, 2013 04:08 |
|
Pollyanna posted:yup, i just went through a tutorial that specifically pointed this out have fun learning what NSObject *objct = [[NSObject alloc] initWithButtsAsses: butts asses: asses] means
|
# ? Sep 27, 2013 04:33 |
objc method calls own and so does xcode completion except when u want nslog and you get nslolletshaveachatoveracupoftea
|
|
# ? Sep 27, 2013 04:41 |
|
just code in sublime text and have a snippet for NSLog
|
# ? Sep 27, 2013 04:59 |
|
~Coxy posted:just use ef and enjoy life yup workin on it doing some code first thing idk it feels like im using an orm but people here told me to use it so w/e
|
# ? Sep 27, 2013 05:55 |
|
the best thing to do is use EF like a statement mapper cause you don't have to deal with too much DB schema poo poo in ur code but you still get strongly typed result sets. it owns
|
# ? Sep 27, 2013 18:44 |
|
Bloody posted:yup workin on it doing some code first thing idk it feels like im using an orm but people here told me to use it so w/e it's an orm
|
# ? Sep 27, 2013 18:44 |
|
favorite thing i learnt today: how to initialize arrays of arbitrary size in constant time (encountered it via this paper, which while it improves the auxiliary space bound, doesn't explain it as clearly)
|
# ? Sep 28, 2013 02:45 |
|
It's just COW but for reading first time?
|
# ? Sep 28, 2013 03:15 |
|
MrMoo posted:It's just COW but for reading first time? also looks like it murders your cache locality without getting you space savings I guess constant time look up is useful too. I wonder how it compares to a hash table in space-time complexity for large n e: the paper's pretty slick Malcolm XML fucked around with this message at 04:18 on Sep 28, 2013 |
# ? Sep 28, 2013 04:12 |
|
i got spring jpa set up. IDEA wrote most of the code for me, i basically just told the ide that there was a postrgess db at localhost:5432 and it took it from there. then i started looking at some of the spring aop stuff for transactions and logging and oh my god this rabbit hole is terrifying there is xml and annotations everywhere
|
# ? Sep 30, 2013 19:12 |
|
tread carefully, padawan.
|
# ? Sep 30, 2013 19:14 |
|
Yeah you can get crazy with Spring and it will help you every step of the way. It's the ultimate yak shaving platform
|
# ? Sep 30, 2013 22:07 |
|
|
# ? May 16, 2024 08:30 |
|
USSMICHELLEBACHMAN posted:have fun learning what NSObject *objct = [[NSObject alloc] initWithButtsAsses: butts asses: asses] means what it means is someone doesn't know how to write method names in objc because that should be NSObject *objct = [[NSObject alloc] initWithButts: butts andAsses: asses]
|
# ? Oct 1, 2013 01:44 |