|
tef posted:oh my god
|
# ? May 18, 2012 23:56 |
|
|
# ? May 11, 2024 13:44 |
|
Police Academy III posted:ya, you've got to spend like 6 lines of code just to make some dumb class to hold 2 values and then 8 more lines for getters + setters if you don't want to piss off the java oop sperg gods. basically what im saying is that java is terrible. It's you, the dumbo that doesn't use an IDE to auto generate that poo poo and forget it. iamthexander posted:I do, ~23500 items. Also you're last question really reeks of the XY problem. What are you trying to do with named variables? The short answer without knowing jack poo poo is to use a Map with the variable names as the Keys, and the Lists as the values.
|
# ? May 18, 2012 23:59 |
|
MEAT TREAT posted:It's you, the dumbo that doesn't use an IDE to auto generate that poo poo and forget it. http://projectlombok.org/slideshow.html
|
# ? May 19, 2012 00:04 |
|
assuming there's no simple tuple in java(?) iirc in you can have public inner classes which might be a handy way to build those one-off return types without polluting your file system like code:
tef posted:http://projectlombok.org/slideshow.html eh no more like typing "rint count" or whatever in IDEA, hitting crtl space -> Generate Accessors and it generate a private int variable called with public accessors guys who are good at IDEA can have 80%+ of their code generated, it's pretty cool to watch code explode out from a few keystrokes skeevy achievements fucked around with this message at 00:34 on May 19, 2012 |
# ? May 19, 2012 00:25 |
|
tef posted:ahahahahahaha
|
# ? May 19, 2012 00:26 |
|
MEAT TREAT posted:Also you're last question really reeks of the XY problem. What are you trying to do with named variables? The short answer without knowing jack poo poo is to use a Map with the variable names as the Keys, and the Lists as the values. So essentially I have this kind of data: code:
code:
|
# ? May 19, 2012 00:56 |
|
tef posted:jesus e: holy poo poo he says he's a feminist in his profile ahahhah Opinion Haver fucked around with this message at 09:37 on May 19, 2012 |
# ? May 19, 2012 09:30 |
|
reverse sexism
|
# ? May 19, 2012 09:43 |
|
|
# ? May 19, 2012 10:08 |
|
is nick donnelly someone is should know/care about, or just some random nerd obn the internet?
|
# ? May 19, 2012 11:51 |
|
just another dickhead
|
# ? May 19, 2012 12:11 |
|
hehhhhhh
|
# ? May 19, 2012 12:13 |
|
http://nodephp.org/
|
# ? May 19, 2012 12:13 |
|
i can tell im developing as a coder because instead of just emptyquoting stuff like that with a "loll" i now take a minute to actually get fuckin' horrified at what the gently caress im looking at
|
# ? May 19, 2012 12:16 |
|
im making my next website in react http://nodephp.org
|
# ? May 19, 2012 12:55 |
|
tef posted:http://nodephp.org/ no. no..
|
# ? May 19, 2012 13:20 |
|
my stepdads beer posted:no. no.. YES. YES.
|
# ? May 19, 2012 13:39 |
|
personally I can't wait for this node fever to reach java, and someone ports the 'reactor' to the java including a nice big old xml file for establishing the services
|
# ? May 19, 2012 13:39 |
|
Server running at http://127.0.0.1:1337
|
# ? May 19, 2012 13:47 |
|
Internaut! posted:tef how on a scale of 1-10 how much do you sneer at domain specific languages implemented in lisp dialects lisp would be a good language if there was some way to use it without turning into an rear end in a top hat. I think it might have something to do with metaprogramming, i'm not sure. probably something about how instead of writing in a language other people can use, lisp users are encouraged to write their own language only they can use. yadda yadda yadda. lisp — the best way to show *exactly* how clever you are to all those other programmers.
|
# ? May 19, 2012 13:53 |
|
I guess that may count as 10 on sneering, but it is more of a 'why would you go and do a thing'
|
# ? May 19, 2012 13:57 |
|
tef posted:lisp would be a good language if there was some way to use it without turning into an rear end in a top hat. I think it might have something to do with metaprogramming, i'm not sure. i guess i need to start writing some macros
|
# ? May 19, 2012 14:37 |
|
tef posted:I guess that may count as 10 on sneering, but it is more of a 'why would you go and do a thing' consulting dollars, presumably big ones I'm flipping through this book on DSLs for kicks and the author with a straight face is relaying how his company built a DSL for trading where traders would enter trades ala the following: code:
that said small macros to handle tedious poo poo like that regex switch statement I mentioned earlier seems like ownage but let me try debugging a few and get back to you skeevy achievements fucked around with this message at 15:43 on May 19, 2012 |
# ? May 19, 2012 15:21 |
|
DSL joke
|
# ? May 19, 2012 15:41 |
|
tef posted:http://nodephp.org/ noooo these people aren't even supposed to like php
|
# ? May 19, 2012 15:49 |
|
Tiny Bug Child posted:noooo people aren't even supposed to like php
|
# ? May 19, 2012 15:57 |
|
Internaut! posted:consulting dollars, presumably big ones it is more of the 'rubyist' look ma I made a dsl *inside* a general purpose language that gets me. it isn't a real without coming over all spolsky, one of the few bits of terminology he nailed was 'leaky abstractions'. I am yet to see a so-called "Embedded DSL" in practice that didn't demand knowledge of the host language, especially when debugging it. quote:I'm flipping through this book on DSLs for kicks and the author with a straight face is relaying how his company built a DSL for trading where traders would enter trades ala the following: DSLs are often hailed as a silver bullet of programming, wherein you can get people to write programs, in programming languages, without learning how to program. I don't get it myself. I'm a big believer in having a language with enough syntax to get by, and extending it through libraries, over a language where you grow it through adding new semantics/syntax. If you'll excuse a poor linguistic metaphor - I would rather use a language with a small grammar and a rich vocabulary, even if some constructs are clunky, than a language with a rich grammar. It is less cognitive overhead for us poor slobs who have to maintain code. quote:can you imagine any possible problems with this approach to entering trades versus doing so in a custom written and tightly controlled guy I don't think those are necessarily the only option, but really, the advantages of using a text format come from the variety of tools available - source control is the obvious one. Still, we do use big and fancy gui programs to write big and fancy text programs. They aren't incompatible. quote:that said small macros to handle tedious poo poo like that regex switch statement I mentioned earlier seems like ownage but let me try debugging a few and get back to you The problem is that this compounds. not to sound like a broken window, but metaprogramming is rather moreish. You will find that each and every library has just a few macros, here and there and the complexity adds up considerably. Every file you open can have its own different ideas on flow control, syntax and structure. This is the crux of the "lisp makes you an rear end in a top hat" problem. Without discipline and self control, programmers are free to run wild with the power tools across the code base. It makes it easy for the person writing the program to explain things, and terrible for anyone else editing the file. Metaprogramming is an antisocial activity, a toolsmithing desire to change the language to suit your needs, burdening others with your inability to explain what you want in simpler terms.
|
# ? May 19, 2012 16:02 |
|
there are too many programming languages imo
|
# ? May 19, 2012 16:02 |
|
rotor posted:there are too many programming languages imo there aren't enough different ones. most of them are just the same language over and over again.
|
# ? May 19, 2012 16:04 |
|
Tiny Bug Child posted:noooo these people aren't even supposed to like php it's u
|
# ? May 19, 2012 16:05 |
|
software download On 2012-01-27 at 10:55 I would like to express my gratitude for your kindness supporting women who really want help with this question. Your special commitment to passing the message all over was particularly significant and have specifically made most people much like me to reach their aims. Your entire helpful instruction entails so much a person like me and still more to my colleagues. Warm regards; from all of us. I google it and found a very useful article. A code sample would be very helpful.
|
# ? May 19, 2012 16:09 |
|
tef posted:I'm a big believer in having a language with enough syntax to get by, and extending it through libraries, over a language where you grow it through adding new semantics/syntax. If you'll excuse a poor linguistic metaphor - I would rather use a language with a small grammar and a rich vocabulary, even if some constructs are clunky, than a language with a rich grammar. It is less cognitive overhead for us poor slobs who have to maintain code. the best argument for java i've ever seen
|
# ? May 19, 2012 16:10 |
|
trex eaterofcadrs posted:the best argument for java i've ever seen java isn't too bad the script has issues though
|
# ? May 19, 2012 16:12 |
|
tef posted:there aren't enough different ones. i dunno. you've got c, prolog, shell, ocaml, erlang, forth ... i'm not sure how much more different stuff you need but yeah, i guess my complaint is that, like, why do we need perl, ruby AND python? or java, c# AND obj-c? the free market of ideas just doesn't work.
|
# ? May 19, 2012 16:17 |
|
trex eaterofcadrs posted:the best argument for java i've ever seen java would be better if they'd known how people use it now compared to how they designed it. (c.f arrays vs arraylist, primitives vs objects, final, synchronized etc) (from what I have seen, c# is a better attempt at java with hindsight)
|
# ? May 19, 2012 16:17 |
|
tef posted:Metaprogramming is an antisocial activity, a toolsmithing desire to change the language to suit your needs, burdening others with your inability to explain what you want in simpler terms. this is a seriously great quote tho
|
# ? May 19, 2012 16:19 |
|
tef posted:
yep.
|
# ? May 19, 2012 16:20 |
|
rotor posted:i dunno. you've got c, prolog, shell, ocaml, erlang, forth ... i'm not sure how much more different stuff you need the way in which we program and the sorts of programs we have been writing have changed considerably, well considerably enough to warrant exploring new language features and new collections of features quote:but yeah, i guess my complaint is that, like, why do we need perl, ruby AND python? or java, c# AND obj-c? the free market of ideas just doesn't work. there are some massive differences underpinning these, but there is no good reason to support a plethora of languages at a company (google was right )
|
# ? May 19, 2012 16:23 |
|
tef posted:java would be better if they'd known how people use it now compared to how they designed it. for sure, java was made by some pretty loving smart people who were rushed to get their thing out the door and a lot of compromises were made that C# did a better job of handling that said, java is as close to "programmers as replaceable cogs" as i've ever seen a language get; pretty sane defaults, no real wizardry involved, syntax is dead simple, corner cases really aren't bad, jvm fixes a lot of the larger cases of programmer shittiness automatically (with a little help from javac). the standard library is kind of a cluster gently caress but javadoc is really good at allowing you to sift thru the poo poo. every time i go on msdn to look up docs for .NET i cry a little and pray for javadoc
|
# ? May 19, 2012 16:28 |
|
|
# ? May 11, 2024 13:44 |
|
tef posted:there are some massive differences underpinning these i understand that but my point is that they aim at solving the same problems in the same way and if I was Tyrant King Of The Universe i'd kill off all but one and put the development efforts all behind one of them
|
# ? May 19, 2012 16:30 |