Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

so i saw this, said "wow neat" then i saw this : http://whiley.org/2013/01/14/whiley-puzzler-1/ and closed that tab forever

Adbot
ADBOT LOVES YOU

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

ultramiraculous posted:

wait are you saying there's something wrong with this behavior or what.

not to get all tbc here but permanently retyping a variable due to a query on its type is some academic masturbation of the highest order

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Shaggar posted:

yeah im not attached to null or anything, but how would you handle uninitialized objects?

just don't allow it?

if an object doesn't need to exist then why give it a name

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
im' totally ok with having to read the source, as long as i can have access to it. at least it doesnt loving lie to my face

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
bavaria is also it's own thing

i loving loved munich, best city ever imo. if you like biking and having good beer and a relaxing atmosphere, live in munich

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

MononcQc posted:

You are retrying a call that actually succeeded

my favorite

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
coldfusion is bullshit
actionscript is basically just javascript so that's bs too

but i did miss tcl which well, i don't work in that domain so w/e

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

shrughes posted:

Also, Scala wasn't on there, but D was. This list feels out-of-date.

agreed, i tried a bunch of stuff (like scala, f#, ocaml etc) that i thought was more "hip" than cf and, well, i lost

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
always display your trophy copy of TAOCP in the office

my dad got me a really nice set of vol 1,2 and 3 when i got my first "career" job

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Socracheese posted:

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')

java + spring/guava + hibernate/mybatis + tomcat/jetty/glassfish + postgres/mssql -> success

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
just version your apis and don't make breaking changes?

idk works on my machine

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
also, haskell's type-system make it so that the drat program nearly writes itself, and if the naming of the functions is any good, the program is basically self commenting

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Notorious b.s.d. posted:

this is what i thought clojure would be, but it's 100% definitely not. clojure is a straight up bondage and discipline language. you will enjoy functional programming OR ELSE

the clojure <=> java interop basically sucks. it just barely works for a small number of use cases. unlike common lisp, clojure has essentially no procedural or OO faculties. java is pervasively OO. shocking that these don't interoperate very well.

common lisp makes fp easy and pleasant, but it's not the only choice.

really?

i have written some pretty complex clojure programs with quite a bit of java interop and not really had too many issues. in fact I've done clojure/groovy interop, and that poo poo was kind of a horrorshow but it still worked and the "interop" part wasn't really the issue.


Nomnom Cookie posted:

Yeah the java interop is barely there. The dot syntax is nice but when you get to more involved stuff then you have to use gen-class and reify and it gets really grody. Also calling clojure from java is a pita

where did you run into this? i macro-generate clojure "javabeans" and register them into a spring di app context and don't even really need to muck around with gen-class or reify (proxy and protocols for sure but i've never had to touch reify)

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Nomnom Cookie posted:

the primacy of fiduciary duty over all other considerations is the #1 thing wrong with capitalism. "it's just business" is the sound a soul makes when it dies. and java is becoming the official programming language of capitalism, and i make my living off of it. is coding java compatible with socialist ideals? i'm not sure, and it makes me uncomfortable

the gently caress wrong rear end bullshit is thhis? theres more patchouli hippie open sores poo poo in java than almost anywhere else

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Tiny Bug Child posted:

whoaaaaa they use the name of the operator as the name of the token. that's so crazy. next thing you know they'll be calling plus signs T_PLUS or something

goddamnit all the tokens except this one were named in english, and of course this particular token was teh subject of MANY parse errors

also "BTW, there is a spelling mistake in the parse error, it should be T_PAAMAYIM_NEKUDATAYIM (in hebrew, the 'double' form is just the original noun + the 'ayim' suffix and 'nekuda' is the single form ['nekudot' is the plural form])."

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

OBAMA BIN LinkedIn posted:

it's still important to use a good web service standard for your internal services so that any new internal services can crank up a client with the flick of a switch

my standard is always guided by resume driven development

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Notorious b.s.d. posted:

clojure is riddled with the impracticality you just complained about in other languages. second rate java interop and little/no provisions for OO guaranteed clojure would be a non-starter outside niche use.

clojure was never really part of the battle for the hearts and minds in the commercial world. it was groovy vs scala all along. i think scala is winning




(does anyone actually prefer groovy to scala? i've never met a hardcore groovy user, just people who wanted to flirt with gradle)

i use groovy (and clojure fwiw) a lot and i like it more than scala simply because the idiomatic programming style is basically java with better syntax, it suffers from some pretty gnarly syntactic corner cases by trying to be ruby and python at the same time, but just like any language you have to know wehre the dogshit is and veer away

i still don't get why you think clojure has second rate java interop? i've got a handful of significant (as in, in production servicing ecommerce) clojure projects and every time i pull in a java library it's easy peasy.

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Posting Principle posted:

at some point i need to change this project to maven or gradle from the built in IDEA build system and both terrify me

use maven and dont look back, once you get over that initial soreass of moving your source structure to maven everything is gravy

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Nomnom Cookie posted:

clojure is ok at calling java code. its more painful for java to call clojure--and before you say but but but you can use reify and gen-class and whatever--java calls scala code by calling it. u make a scala class and java can use it. that's why clojure's interop is second-rate

ah

well that said :gen-class is easy enough to use, so i guess second-rate is fine by me

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

coffeetable posted:

soooo you haven't worked in any functional languages then

what are you talking about php has had closures for like 4 years now

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
clojure just calls java code
code:

(.getName (File. "yourgay.txt"))
i can see how if you needed to go backwards and use java on clojure objects it would be annoying, but it really isn't that annoying and you probably won't actually do that in real life, cause clojure just works ™

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
or if you treat clojure as the lingua franca of your project and only use java for the ecosystem/libs or if you need to for whatever reason

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
always use osgi

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Nomnom Cookie posted:

it's a thing if not all of your dependencies are properly mavenized, and it's not always feasible to mavenize them yourself

it's really not that hard,

if you have the source, just add a pom
if you only have a jar/war/ear, just use the nexus to upload the artifact directly, with a bespoke pom

make sure your versioning scheme matches theirs, and what i always do is put my org's group name and extend the artifact name to include their group name (or what i would assume is their group name), spring does this

so like, if you have jar "lovely thing" from oracle and it's version 1.2.3, and your org is something awful the gav should be com.somethingawful/com.oracle.lovely-thing/1.2.3

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Notorious b.s.d. posted:

tbh i have never used hadoop "in anger" i just spent a week in training and it was really fun to hack on the labs.

should try cascalog. it's pretty sweet

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Shaggar posted:

so either run each hadoop in its own jvm or run it inside its own container. ez pz problem solved.

this is exactly the problem osgi solves, but without the hacks

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Malcolm XML posted:

also (paging tef) whats a good intro to prolog/logic programming book

I wanna write me a logic dsl in haskell like miniKanren or something, that would be cool

not tef but:
http://www.amazon.com/dp/0321417461/ref=wl_it_dp_o_pC_nS_ttl?_encoding=UTF8&colid=M55D5Z0NCMZY&coliid=IA5PYLPRXEE1M
and
http://www.amazon.com/Art-Prolog-Ad...s=art+of+prolog
are both recommended

the second one "Art of Prolog", make sure you get a recent version. the version i have has shitloads of errata in it.

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

tef posted:

art of prolog is a great book, but it's quite big, but wonderfully through. if you're wanting a taste, i would imagine the reasoned schemer might be more interesting, as I believe it's the source of miniKanren

you can also get william byrd's ph.d. dissertation:
https://scholarworks.iu.edu/dspace/bitstream/handle/2022/8777/Byrd_indiana_0093A_10344.pdf

and cause i'm a clojure fag, dissect the core.logic package:
https://github.com/clojure/core.logic

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Bloody posted:

cool 14 page """standard"""

utf-8 is like 12, and it p much is the best

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Notorious b.s.d. posted:

the unicode standard is 692 pages

utf-8 can be simple/concise specifically because the foundational material is longwinded/careful/explicit

well it's kind of similar

json based on the ecmascript spec, at 243 pages

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Notorious b.s.d. posted:

json is a bad spec

i assume ecmascript is badly specified too, because ecma are a rubber stamp who will ratify anything you want as a standard

this is why c#/cil is an ecma standard and not iso or ietf. iso would actually require the standard to make sense. ietf would require interoperable implementations and permit revisions/additions by other vendors

might be true but "it works"

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Nomnom Cookie posted:

i dont want a treeset i want a hashset, trees are slow. sorted hashset

LinkedHashSet

http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashSet.html

onl;y maintains insertion order, so you need to insert in-order

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Shaggar posted:

all timezone problems are actually daylight savings time problems. timezones would be easy if the offset was constant.

they also change all the loving time.

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
2d9 + 1 isn't 2e0 either.

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Tiny Bug Child posted:

yes it is. increment 9 and you get 10. carry the 1 and you have to increment d. increment d and you get e.

carry the one? jesus gently caress man. either it's "2d:" or it's 0x2da, changing bases on you while incrementing is absolutely wrong

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
i feel like the blond guy from the princess bride, when he is on the torture machine and the 6 fingered man says "i've just sucked one year of your life away"

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

php.gif

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
it's actually 4

Adbot
ADBOT LOVES YOU

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Posting Principle posted:

i can live without @Value but you will never take @Inject from me (and its not spring specific anyways)

@Service @Autowire

good poo poo

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply