|
Johnny Cache Hit posted:adult programmers no such thing
|
# ? Jan 8, 2014 15:37 |
|
|
# ? May 13, 2024 08:48 |
|
gucci void main posted:go fmt is cool but unfortunately go has the ugliest syntax of just about any language ever designed so no level of formatting can truly help it lol C++, java/c#, Erlang, lisp
|
# ? Jan 8, 2014 15:52 |
|
gucci void main posted:go has the ugliest syntax of just about any language ever designed what now i want to know what language you think has the prettiest syntax
|
# ? Jan 8, 2014 16:19 |
|
I don't think I remember go syntax, but I cant imagine its worse than perl
|
# ? Jan 8, 2014 16:19 |
|
face me sulk i want to mock whatever language you say has the prettiest syntax
|
# ? Jan 8, 2014 20:13 |
|
Do people actually use Go yet, or is it still Yet Another Google Project that Linux nerds are going gaga over because Ken Thompson or whoever is/was involved?
|
# ? Jan 8, 2014 20:40 |
|
Doc Block posted:Do people actually use Go yet, or is it still Yet Another Google Project that Linux nerds are going gaga over because Ken Thompson or whoever is/was involved? people love to claim that google is using it for serious infrastructure and services internally
|
# ? Jan 8, 2014 22:28 |
|
http://golang.org/doc/faq#Is_Google_using_go_internally It does the insane job of serving chrome binaries.
|
# ? Jan 8, 2014 22:29 |
|
a custom server written in a custom language, to serve files from a custom filesystem over http. google is the most nih place in the universe
|
# ? Jan 9, 2014 01:04 |
|
Doc Block posted:Do people actually use Go yet, or is it still Yet Another Google Project that Linux nerds are going gaga over because Ken Thompson or whoever is/was involved? pretty sure its already abandoned.
|
# ? Jan 9, 2014 01:16 |
|
Nomnom Cookie posted:a custom server written in a custom language, to serve files from a custom filesystem over http. google is the most nih place in the universe if you're using their browser, they'll talk to it using SPDY instead of http
|
# ? Jan 9, 2014 04:58 |
Johnny Cache Hit posted:what elixir or c#
|
|
# ? Jan 9, 2014 05:11 |
|
i like haskell
|
# ? Jan 9, 2014 05:15 |
|
gotta say, using spaces for function application seems nicer than any other alternative i've seen. plus it lets you use partial application really easily to do stuff likecode:
|
# ? Jan 9, 2014 15:01 |
|
Elixir's spaces for function application, combined with its eager evaluation, and its use of different namespaces for closures and literal functions can be confusing. I wouldn't consider it to have a neat syntax, or at the very least, not the best semantics around so far. So for example, the pipe operator (|>) allows to transform something like f(g(a,1),2,3) into a |> g(1) |> f(2,3), or with spaces: a |> g 1 |> f 2,3 . That's fine. Now if g is instead a closure, then it works a bit like lisps-2 and you need a different syntax: f(g.(a,1),2,3), and a |> g.(1) |> f 2,3 (closures do not allow the parens-less calling syntax). Similarly to standard lisp-2 shenanigans, you can have both g() and g.() calls happening and referring to two different functions within the same scope. The former refers to the literal 'g' function, while the latter refers to the closure within the 'g' variable. Here's where it gets fun with spaces for function application. Let's say I use this g combo and use it in an expression such as g |> something(x). It isn't clear whether I just called g() and passed its result to something(_, x), or if I passed in the variable itself. Then the |> macro has problems of its own, namely that it's impossible to call a function and use its result in a pipe sequence: g |> (f()) isn't valid as far as I know. Elixir has nice-looking syntax, but warts hiding around it, and you have to be careful about it. I remember finding a bug with its pattern matching assignment/reassignment where poo poo was left unspecified: x = 3 {x, ^x} = {5,5} It was undefined whether the pattern matching would take place left-to-right or not, and whether the re-assignment of 'x' would take place before its fixed matching on a previous value (^x). In one case the expression works, in the other, it fails and errors out. I think this has now been specified into the language, but you just know there's plenty of that stuff lurking in. I know I would instantly remove the parens-free calls given how confusing it is in Elixir. E: just asked José Valim. The variable is always prefered in g |> f, and nullary function calls will only happen if there is no scope ambiguity. MononcQc fucked around with this message at 15:57 on Jan 9, 2014 |
# ? Jan 9, 2014 15:37 |
|
Johnny Cache Hit posted:what c# syntax is pretty loving great
|
# ? Jan 9, 2014 15:48 |
|
USSMICHELLEBACHMAN posted:haskell
|
# ? Jan 9, 2014 15:55 |
|
elixir blows erlang blows your mom blows
|
# ? Jan 9, 2014 21:39 |
|
Mr SuperAwesome posted:c# syntax is pretty loving great shaggar was right
|
# ? Jan 10, 2014 08:22 |
|
~Coxy posted:shaggar was right
|
# ? Jan 10, 2014 08:54 |
|
Mr SuperAwesome posted:c# syntax is pretty loving great seriously c# is really pretty when written well oddly java has almost the same syntax but it's different enough some mental block kicks in and my eyes slide right the gently caress off the screen. i literally can't pay attention to a java code review in summation the line between beauty and the grotesque is thin
|
# ? Jan 10, 2014 09:07 |
|
ye i agree gently caress java lol
|
# ? Jan 10, 2014 14:23 |
|
Monkeyseesaw posted:seriously c# is really pretty when written well f# is basically a nicer c# in every way possible
|
# ? Jan 10, 2014 14:32 |
|
java and c# are pretty much the same, but VS defaults to all man style so that's why c# code looks better by default
|
# ? Jan 10, 2014 15:32 |
|
also, properties
|
# ? Jan 10, 2014 15:33 |
|
realtalk why cant i just do something likecode:
|
# ? Jan 10, 2014 15:43 |
|
that's not really any different from private int butts; or public int butts; what you really want is public int Butts { get; set; }
|
# ? Jan 10, 2014 15:50 |
|
Java code:
lombok rules EDIT: to be clear it generates appropriate bean methods. if its final it only does the getter.
|
# ? Jan 10, 2014 15:51 |
|
that's all pretty gross compared 2 c# properties.
|
# ? Jan 10, 2014 15:56 |
|
Shaggar posted:that's all pretty gross compared 2 c# properties. yes but ill take what i can get
|
# ? Jan 10, 2014 16:15 |
|
Shaggar posted:that's all pretty gross compared 2 c# properties. Sorry shaggar, but lombok loving rules when you're making stupid little bean classes that are really just structs. It adds the getters, setters, constructors, equals, hashcode and toString all for you with that one annotation.
|
# ? Jan 10, 2014 16:28 |
|
Hard NOP Life posted:Sorry shaggar, but lombok loving rules when you're making stupid little bean classes that are really just structs. It adds the getters, setters, constructors, equals, hashcode and toString all for you with that one annotation. lombok looks pretty cool. how does that sort of stuff work in java, is it doing the work at compile time, or using reflection/proxies?
|
# ? Jan 10, 2014 16:33 |
|
yo check it there's a sales on computer books about computers http://www.amazon.com/s/ref=amb_lin...rd_i=7299114011 can someone who knows about this poo poo tell me if there's a referral in that link cuz someone sent it out to the whole engineering dept and now i wonder if he's making mad bucks off of us
|
# ? Jan 10, 2014 16:37 |
|
it does it during compilation so the compiled code is as if you wrote the getters/setters/etc.. you're self. I don't like the smell of it.
|
# ? Jan 10, 2014 16:38 |
|
thats really cool then. i might use it
|
# ? Jan 10, 2014 16:41 |
|
actually i'm going to look at the code for it to see how it works, because that is more interesting than using it really.
|
# ? Jan 10, 2014 16:42 |
|
like that's something i'd rather have the ide do for me in realtime. eclipse can already generate that stuff for you, but you have to tell it to manually. so if you could flag a class somehow so eclipse auto generated stuff when you made changes to fields that would be better. that way you're checking in the real code which would be way easier for people who don't know about whatever special compiler thing ur using.
|
# ? Jan 10, 2014 16:44 |
|
y do u bother with getter and setter methods if there's no logic in them u could just use the public field directly
|
# ? Jan 10, 2014 23:45 |
|
i like haskell guards a lotcode:
|
# ? Jan 10, 2014 23:51 |
|
|
# ? May 13, 2024 08:48 |
|
C# is kinda nice in some ways but using getset syntactic sugar as the reason is p bad
|
# ? Jan 10, 2014 23:51 |