|
very carefully
|
# ? Apr 29, 2015 23:48 |
|
|
# ? May 24, 2024 23:10 |
|
MALE SHOEGAZE posted:Is there like a nice list of Java best practices I can cargo cult until I understand the language? Mainly like : maybe what you really need is a guide on googling really mundane poo poo
|
# ? Apr 29, 2015 23:52 |
|
exceptions follow this flowchart:pre:Can I do something about this exception ? | -- Y-> What Can you do about this exception ? | | --> I can do something about it like maybe fix it or maybe send it to someone or w/e and that will be the end of it | | --> Handle the exception | | --> I can add some information about the state of things so maybe someone else can handle it | | --> Wrap in new exception with additional info and throw | -- N -> Throw
|
# ? Apr 29, 2015 23:54 |
|
intellij is good and I like it better than eclipse. it has smarter autocomplete or something, i forget exactly what.
|
# ? Apr 29, 2015 23:55 |
|
id be more worried about spring best practices. best practice is actually "very carefully".
|
# ? Apr 29, 2015 23:59 |
|
spring is neither good nor evil but it can be used to great effect in either direction.
|
# ? Apr 30, 2015 00:00 |
|
i worked on a project where literally every single class had to be instantiated via spring, even just pojos. not only that but the team lead wouldn't let you use any spring annotations, so you had to manually get a handle on the spring context to instantiate even the most simple beans.
|
# ? Apr 30, 2015 00:04 |
|
MALE SHOEGAZE posted:Is there like a nice list of Java best practices I can cargo cult until I understand the language? Mainly like : all you need to cargo cult is some self esteem mister!!! that and take a gander on snack overflow for some sweet sweet jon skeets
|
# ? Apr 30, 2015 00:04 |
|
MononcQc posted:Because if you have something like 50 servers in clusters and poo poo it means you now need a total of 100 just to deploy new software without risking losing capacity or uptime. whatevs just spin up more on
|
# ? Apr 30, 2015 00:05 |
|
rrrrrrrrrrrt posted:i worked on a project where literally every single class had to be instantiated via spring, even just pojos. I don't put spring annotations in any of my code, but I also only really use spring as part of other frameworks like cxf.
|
# ? Apr 30, 2015 00:06 |
|
MononcQc posted:Because if you have something like 50 servers in clusters and poo poo it means you now need a total of 100 just to deploy new software without risking losing capacity or uptime. hmm i can see a way of allowing this in haskell by defining an Iso from oldMessage to newMessage and back but
|
# ? Apr 30, 2015 00:07 |
|
my ioc container is a runtime dependency.
|
# ? Apr 30, 2015 00:08 |
|
MALE SHOEGAZE posted:OK I'm trying to get spun up on java / spring there is a vim plugin for intellij
|
# ? Apr 30, 2015 02:58 |
|
the only "vim plugin" i have ever found to work at all reasonably is, ironically, the one for emacs
|
# ? Apr 30, 2015 03:00 |
|
Shaggar posted:I don't put spring annotations in any of my code, but I also only really use spring as part of other frameworks like cxf. i think that's fine in general, but if you're already creating a compile time dependency by pervasively using the context anyway you might as well just annotate.
|
# ? Apr 30, 2015 03:03 |
|
Shaggar posted:spring is neither good nor evil but it can be used to great effect in either direction. shaggar was uncontroversial
|
# ? Apr 30, 2015 03:06 |
|
java is neat. i'm neck deep in a big ole spring + hibernate project right now and life is easy don't ever write xml, read effective java, and break your spring config into multiple small @Configuration classes, combined in a single context ftw e: i get that hibernate is actually a really bad way to manage data but drat if it isnt easy more like dICK fucked around with this message at 03:10 on Apr 30, 2015 |
# ? Apr 30, 2015 03:08 |
|
Shaggar posted:spring is neither good nor evil but it can be used to great effect in either direction.
|
# ? Apr 30, 2015 03:08 |
|
use mybatis and mybatis-spring instead of hibernate
|
# ? Apr 30, 2015 03:54 |
|
use raw jdbc so u can really feel the SQL
|
# ? Apr 30, 2015 04:02 |
|
MALE SHOEGAZE posted:OK I'm trying to get spun up on java / spring intellij has a good vim plugin to make the editor part more bearable if you actually want to get out of ide-land, emacs and java work well together
|
# ? Apr 30, 2015 04:28 |
|
more like dICK posted:e: i get that hibernate is actually a really bad way to manage data but drat if it isnt easy hibernate owns gently caress the haters the key thing to remember is that hibernate doesn't have to own your schema. you CAN let hibernate own the schema, but it is entirely possible, practical, and pleasant to use hibernate with a schema the application does not control.
|
# ? Apr 30, 2015 04:29 |
|
Notorious b.s.d. posted:intellij has a good vim plugin to make the editor part more bearable eclim. the good bit of eclipse is that ibm wrote an incremental java compiler that has been maintained and has exposed hooks for your tools
|
# ? Apr 30, 2015 04:56 |
|
Notorious b.s.d. posted:hibernate owns hibernate works like that because it's a reimplementation of the Enterprise Objects Framework, which worked the same way NeXT wins again
|
# ? Apr 30, 2015 06:25 |
I made a functional programming thread.
|
|
# ? Apr 30, 2015 07:50 |
|
hibernate has a laundry list of gotchas and pitfalls and ime it's pretty easy for beginners to waste a lot of time dealing with pretty routine crap. i can't count the number of times i've seen beginners struggle with poo poo like the persistent/detached dichotomy or session management and that's just basic poo poo outside of things like hairy performance issue.
|
# ? Apr 30, 2015 07:50 |
|
first post
|
# ? Apr 30, 2015 08:19 |
|
the answer was 'effective java' thanks assholes
|
# ? Apr 30, 2015 08:42 |
fart simpson posted:first post noice
|
|
# ? Apr 30, 2015 08:42 |
|
the haskell man is gone edit: i guess i'm late to this funeral To the Yale College Community, It is our sad duty to inform you that Paul Hudak, professor of computer science and master of Saybrook College, died last night after a long battle with leukemia. With him were Cathy Van Dyke, associate master of Saybrook, and their family. Professor Hudaks life and work touched so many people, among them the students and faculty in the Department of Computer Science, the community of musicians who shared his love for jazz, the high-school lacrosse athletes he coached, and the students, staff, and fellows of Saybrook College. A memorial service is planned for Sunday, May 3, at 1:30 p.m., in Battell Chapel, giving the community a chance to come together, honor Professor Hudak, and celebrate his life. Friends may call on the family on Saturday, May 2, from 2:00 p.m. to 6:00 p.m., at Sisk Brothers Funeral Home, 3105 Whitney Avenue in Hamden. Sincerely, Peter Salovey President and Chris Argyris Professor of Psychology Jonathan Holloway Dean of Yale College; Edmund S. Morgan Professor of African American Studies, History, and American Studies
|
# ? Apr 30, 2015 17:28 |
|
that pseudo-Haskell with the JavaScript ui system looks cool
|
# ? Apr 30, 2015 18:10 |
Power Ambient posted:the haskell man is gone
|
|
# ? Apr 30, 2015 18:19 |
|
Luigi Thirty posted:that pseudo-Haskell with the JavaScript ui system looks cool What're you referring to? Elm?
|
# ? Apr 30, 2015 19:04 |
|
yeah it's talked about in that thread
|
# ? Apr 30, 2015 20:05 |
|
woot my code injection works even thuogh i dont fully understand how
|
# ? Apr 30, 2015 20:07 |
|
Snapchat A Titty posted:woot my code injection works even thuogh i dont fully understand how understanding how is not as important as liking how
|
# ? Apr 30, 2015 20:10 |
Luigi Thirty posted:that pseudo-Haskell with the JavaScript ui system looks cool Yeah the general consensus is that Elm is shaping up to be cool as hell.
|
|
# ? Apr 30, 2015 20:31 |
|
VikingofRock posted:Yeah the general consensus is that Elm is shaping up to be cool as hell. I read some of that Tetris code and it didn't seem significantly different from Haskell. would prefer a better syntax, like S-exprs.
|
# ? Apr 30, 2015 20:38 |
|
eschaton posted:I read some of that Tetris code and it didn't seem significantly different from Haskell. Elm's syntax is almost exactly like Haskell's. If you don't like Haskell's syntax you won't like Elm, but besides syntax many people's beefs with Haskell come from (a) people's liberal use of complex structures from category theory, and (b) lazy evaluation being really confusing to reason about. Elm addresses these two things by not having typeclasses and using eager evaluation. These are compromises of course, but the payoff is a vastly simpler language than Haskell, even with the syntactic similarities.
|
# ? Apr 30, 2015 21:01 |
|
|
# ? May 24, 2024 23:10 |
|
giogadi posted:Elm's syntax is almost exactly like Haskell's. If you don't like Haskell's syntax you won't like Elm, but besides syntax many people's beefs with Haskell come from (a) people's liberal use of complex structures from category theory, and (b) lazy evaluation being really confusing to reason about. also signals are way easier to wrap your head around than haskell's io system, which helps a lot elm may have typeclasses eventually if a good enough case can be made for it but the guy behind it is really skittish about adding them (understandably so)
|
# ? Apr 30, 2015 22:59 |