|
trex eaterofcadrs posted:what v of clojure are you runngin cause code:
|
# ¿ Aug 11, 2012 02:13 |
|
|
# ¿ May 9, 2024 09:17 |
|
tiny fart bug update: apparently it's caused by having a file called fart.class in your classpath (which obviously i do since i'm a literal child). i have no idea why defmethod is loading class files but i can't even report it since the clojure bug tracker is down!
|
# ¿ Aug 11, 2012 23:58 |
|
syntaxrigger posted:
this but for serious
|
# ¿ Aug 16, 2012 21:03 |
|
speaking of checked exceptions, I ran across this today:code:
|
# ¿ Aug 27, 2012 23:38 |
|
Tiny Bug Child posted:let's. orms are dumb because there is no reliable way to turn a relational structure into an object-oriented one. everyone has probably read the vietnam of computer science already but it's good. I like how he spends a whole page explaining what happened in vietnam, I might not have gotten his metaphor otherwise.
|
# ¿ Aug 30, 2012 06:00 |
|
vapid cutlery posted:only thing i use windows for is games this, but office + powerpoint sometimes too.
|
# ¿ Sep 2, 2012 02:32 |
|
Adventures in Clojure Day #420: Clojure has two completely different and largely incompatible systems for doing polymorphism, and the clojure community apparently prefers the less powerful of these. I seem to be the only person who thinks this is weird and dumb. (also windos is great as a server for me to poop on etc, etc)
|
# ¿ Sep 3, 2012 17:49 |
|
trex eaterofcadrs posted:multimethods and protocols? yeah. i understand a lot of the reasoning behind protocols, but there's no reason they couldn't have added those features into the multimethod system instead of making an entirely new one completely from scratch. also given that you can't specify a superclass in deftype/defrecord, you've pretty much got no way to do inheritance with protocols. (caring about programming languages itt )
|
# ¿ Sep 3, 2012 18:49 |
|
trex eaterofcadrs posted:for better or worse ( i think better) clojure really tries to keep you from doing abstract/concrete superclass polymorphism at all costs. i actually like defprotocol/deftype myself so i guess i'm one of the dumb ones but i use a lot of spring so maybe that's why i use it so much man, has the entire clojure community been infected with some sort of memetic virus or something? i think you're a smart guy trex, but polymorphism without inheritance has never been a thing anywhere. the only good reasons that i've seen to use protocols are speed and java interop, neither of which explains why everyone seems to regard multimethods as semi-deprecated or why protocols have to have a completely seperate syntax. they could've just made a special multimethod constructor that used java dispatch behind the scenes, but instead they decided to build an entirely seperate and redundant polymorphism system. i really don't get it
|
# ¿ Sep 4, 2012 03:04 |
|
vapid cutlery posted:what the heck is duck typing??? duck typing doesn't force you to use inheritance, but it's still an option. clojure's protocols literally provide you with no way to specify any kind of inheritance. if you want two object to share the same behaviour you literally have to copy/past the same code. e: literally
|
# ¿ Sep 4, 2012 05:07 |
|
vapid cutlery posted:u mad yeah im trying to quit smoking and everything pisses me right off
|
# ¿ Sep 4, 2012 05:11 |
|
vapid cutlery posted:you said polymorphism without inheritance has never been a thing anywhere i meant polymorphism without the possibility of inheritance, ok dad?
|
# ¿ Sep 4, 2012 07:37 |
|
what's ur fav A* variant mine is jump point search
|
# ¿ Sep 20, 2012 17:50 |
|
|
# ¿ Feb 4, 2013 03:53 |
|
havelock posted:tef, thanks for writing what I'm thinking (mostly) since I never got around to it. In ours we did hoare logic and finite automata, taught by a prof with a thick finnish accent and a stutter who posted absolutely nothing online.
|
# ¿ Feb 4, 2013 20:09 |
|
Aleksei Vasiliev posted:http://holophrasticenterprises.com/ lol, looks like somebody found out about 1001_cool_fonts.torrent
|
# ¿ Feb 7, 2013 19:05 |
|
Shinku ABOOKEN posted:serious post: what makes you guys think the programmer won't just do "but what if this is used by a moron?" is not really a very good point against anything.
|
# ¿ Feb 8, 2013 00:53 |
|
Notorious b.s.d. posted:i learned C as my first language circa age 10 because I had a C book and DJGPP was free. i cannot recommend this path 'sup learned C as first language buddy
|
# ¿ Mar 2, 2013 03:37 |
|
I'm not sure if I'd call clojure optionally typed since no actual type checking goes on. there's nothing to stop you from doing (def ^int an-int "totally not an int") for example. e: but seriously optional typing is really the most obvious way to get the best of both worlds and i wish more languages supported it. also actionscript is optionally typed, hilariously enough. Police Academy III fucked around with this message at 01:29 on Mar 5, 2013 |
# ¿ Mar 5, 2013 01:25 |
|
abraham linksys posted:
idk dick all about DOM stuff, but you really should try to separate the mutable and immutable bits. I'd make pure functions that take and return your dom-map things and then just use swap! with them edit: quote:but while in this case there's a better way to do it, the concept of passing a dereferenced version of your mutable state to a function, then changing that state to the result of the function (which is what the swap! function does) is really common in clojurescript and just feels almost like an abstracted version of object-oriented programming yeah this, do this. idk what you mean about OOP but the biggest advantage of functional programming imo is not doing super clever map-reduce-filter bs, it's the added simplicity that immutability and pure functions/expressions give you. Police Academy III fucked around with this message at 19:15 on Mar 8, 2013 |
# ¿ Mar 8, 2013 19:09 |
|
Win8 Hetro Experie posted:I should check out rust but every time I try I get misdirected to some other PL with a short name that I can't remember right now dart? i can't even keep track of these new languages anymore. (and yet somehow no-one has managed to make a decent c++ replacement even though c++ is shockingly terrible)
|
# ¿ Mar 11, 2013 20:08 |
|
Lisp's problem is loving lispers. Clojure is the "best" lisp so far and even it is riddled with bad documentation and abandoned projects. Lisp attracts smart lazy people, but I'm starting to think you need overeager jeff atwood reading idiots to answer stupid questions on stackoverflow and make lovely twitter libraries if you want a language to be successful. (srs, I like clojure but I'm becoming less and less hopeful that it'll ever be anything more than a language for people who care too much about languages)
|
# ¿ Mar 12, 2013 18:58 |
|
The problem with a language that lets you just do whatever the gently caress you want is that you're stuck in a community with a bunch of people who are just doing whatever the gently caress they want.
|
# ¿ Mar 13, 2013 03:47 |
|
Win8 Hetro Experie posted:when you're trying to mold your particular problem into the shape of a vertex shader function feeding data into a geometry shader function feeding data back into another vertex shader function which feeds data into a fragment shader function which finally writes the data as colors to a texture and that's just the first pass and it's not even given that you can read from a texture inside your vextex shader functions, I can sympathize if someone would rather just write the whole thing in C I used opencl once, it was pretty decent but a lot of boilerplate
|
# ¿ Mar 13, 2013 22:23 |
|
Mr Dog posted:if you're using triggers you've made some seriously poor choices in ur life Never join the infantry.
|
# ¿ Mar 16, 2013 20:09 |
|
im the
|
# ¿ Mar 17, 2013 18:50 |
|
Zombywuf posted:I quit smoking this weekend. Does it show? horse mans posted:haven't had a cigarette in over a month, have had one drink in the past fourteen days, and dealing with a bullshit stressful international move I too quit smoking recently. I don't have anything interesting to add, I just want to brag a bit.
|
# ¿ Mar 19, 2013 02:02 |
|
why oh why is this dongle poo poo in the PL thread and not in the thread specifically created to quarantine this poo poo? somebody start talking about hindley-milner or something
|
# ¿ Mar 20, 2013 19:17 |
|
checked exceptions would be great if the default behaviour was to just silently annotate your method with the appropriate exceptions instead of bitching and moaning because you had the gall to try to read a keypress without handling the possibility that the user's keyboard suddenly exploded or w/e
|
# ¿ Mar 20, 2013 22:14 |
|
Shaggar posted:that's no good cause you need to decide if you want to handle them or not. yeah, im deciding not to and i don't want the autistic compiler to demand i explicitly tell it every time i don't want to handle KeyBoardIsActuallyAGoatException
|
# ¿ Mar 20, 2013 22:17 |
|
reminder that java was literally invented by a pedophile: http://en.wikipedia.org/wiki/Patrick_Naughton
|
# ¿ Mar 20, 2013 22:24 |
|
tef posted:COMPUTERS they suck
|
# ¿ Mar 21, 2013 01:29 |
|
tbh, modern developer offices with free food and sleeping areas and whatnot are basically the equivalent of modern day monasteries where no-one ever leaves, talks, or has sex. just emaciated celibates hunkered over in dark cells expending the entirety of their mental capacity on the proscribed rites of some made-up bullshit rules system.
|
# ¿ Mar 23, 2013 18:42 |
|
hobbesmaster posted:you're supposed to use jmp geez white guys can't jmp
|
# ¿ Mar 28, 2013 17:46 |
|
Suspicious Dish posted:no that's not the bad part (though it is bad) idk, but I just found out that in python code:
code:
|
# ¿ Mar 28, 2013 19:58 |
|
Nomnom Cookie posted:Have they fixed lua's 1-based indexing yet have they fixed lua's php-level "do everything but none of it particularly well" arrays yet?
|
# ¿ Apr 6, 2013 17:58 |
|
Zaxxon posted:lua's arrays store values or references indexed by number pretty well. a list is a sequential series of elements indexed by numbers. if you try to insert something into an index that isn't a number it should tell you to gently caress off instead of magically changing into something that sort of works like a list but isn't. if you do that then you're php level stupid. also dijkstra thinks 1-based indexing sucks: http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html
|
# ¿ Apr 6, 2013 22:40 |
|
Toady posted:lack of control statements like continue and break hahaha
|
# ¿ Apr 7, 2013 18:22 |
|
wait a minute, lua has break, it just doesn't have continue. why are you trying to make me look like an idiot toady?
|
# ¿ Apr 7, 2013 18:31 |
|
|
# ¿ May 9, 2024 09:17 |
|
Nomnom Cookie posted:Use guile I'm as big a lisp dork as anyone, but if you're seriously considering sticking a scripting language into your system to let non-programmers try to program then you should probably go with javascript which at least has a large amount of documentation targeted towards idiots.
|
# ¿ Apr 9, 2013 18:15 |