|
Posting Principle posted:should i actually make an effort to learn scala if you expect to work in a java shop ever again, yeah probably worth it
|
# ? Oct 9, 2013 22:05 |
|
|
# ? May 26, 2024 18:04 |
|
people don't use scala irl. java shops use java or c#
|
# ? Oct 9, 2013 22:11 |
|
i'm not sure i want to work in a java shop
|
# ? Oct 9, 2013 22:11 |
|
Tiny Bug Child posted:someone posted this a couple pages back, it is hilarious and taught me as much about scala as i will ever need to know i just don't really agree with him about most of his points, he's a disingenuous trollin' motherfucker, but now that three people have posted the link i guess i gotta address them
lastly, all his complaints about sbt are true, and then some. sbt is a hopeless, indefensible crock of poo poo and it never fails to anger me Notorious b.s.d. fucked around with this message at 22:17 on Oct 9, 2013 |
# ? Oct 9, 2013 22:14 |
|
code:
|
# ? Oct 9, 2013 22:42 |
|
Pie Colony posted:
my intuition says it shouldn't compile, or barring that should return -1. python agrees with the latter. funy code.
|
# ? Oct 9, 2013 22:46 |
|
Bloody posted:cool 14 page """standard""" utf-8 is like 12, and it p much is the best
|
# ? Oct 9, 2013 22:53 |
|
trex eaterofcadrs posted:utf-8 is like 12, and it p much is the best the unicode standard is 692 pages utf-8 can be simple/concise specifically because the foundational material is longwinded/careful/explicit
|
# ? Oct 9, 2013 22:54 |
|
Notorious b.s.d. posted:the unicode standard is 692 pages well it's kind of similar json based on the ecmascript spec, at 243 pages
|
# ? Oct 9, 2013 22:57 |
|
trex eaterofcadrs posted:well it's kind of similar 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
|
# ? Oct 9, 2013 23:01 |
fuckin love my pretend standards (rfc)
|
|
# ? Oct 9, 2013 23:12 |
|
Notorious b.s.d. posted:json is a bad spec might be true but "it works"
|
# ? Oct 9, 2013 23:23 |
|
MononcQc posted:New JSON standard is out. if it was well-specified then it would be "too big"
|
# ? Oct 10, 2013 00:48 |
|
Pie Colony posted:
murder whoever wrote it
|
# ? Oct 10, 2013 00:51 |
|
Pie Colony posted:
this makes me think of throwing an exception in a destructor
|
# ? Oct 10, 2013 01:02 |
|
Notorious b.s.d. posted:hate to break it to you: python is one of the slowest languages ever cython takes care of some of that, i got a 10x improvement on a thing a while ago just by changing py to pyx and importing the thing a little differently
|
# ? Oct 10, 2013 01:25 |
|
Pie Colony posted:
Issue a warning, before anything else
|
# ? Oct 10, 2013 03:06 |
|
prematurely exiting a finally block is heinous abuse of a language and should be illegal My Ideal Programming Language would disallow exits from finally and also disallow catch blocks. this is what rust and go do iirc
|
# ? Oct 10, 2013 03:36 |
|
Pie Colony posted:
Use c++ with RAII and smugly goad others over the terseness of c++.
|
# ? Oct 10, 2013 04:29 |
|
Tokamak posted:Use c++ I don't even need to read the rest of your sentence
|
# ? Oct 10, 2013 04:35 |
|
Pie Colony posted:
make the author feel ashamed
|
# ? Oct 10, 2013 04:59 |
|
it should crash. "for (;" should never be valid
|
# ? Oct 10, 2013 06:26 |
|
Tiny Bug Child posted:it should crash. "for (;" should never be valid
|
# ? Oct 10, 2013 06:33 |
|
Tiny Bug Child posted:it should crash. "for (;" should never be valid http://ideone.com/uzXv8r
|
# ? Oct 10, 2013 06:48 |
|
PrBacterio posted:huh what the hell why not, thats the most comfortable idiom for an endless loop in c(++) so why shouldnt I use it (except because no one should ever use c++ at all, but thats a topic of its own) goto LABEL if you want to be smug otherwise yeah for(; is the norm for C
|
# ? Oct 10, 2013 06:51 |
|
PrBacterio posted:huh what the hell why not, thats the most comfortable idiom for an endless loop in c(++) so why shouldnt I use it (except because no one should ever use c++ at all, but thats a topic of its own) ever heard of syntactic sugar, its what those cool haskeller kids are always going on about. no point putting conditions in your for-loop, if you don't want them to ever be satisfied. same goes with c++'s powerful operator overloading feature
|
# ? Oct 10, 2013 06:52 |
|
MononcQc posted:New JSON standard is out. wtf? the json standard was supposed to be fixed. i maintain three and a half different json parsers i don't have time to fix them
|
# ? Oct 10, 2013 06:54 |
|
a little late butSocracheese posted:i have a dumb programming question. has anyone messed with neural network things before? You could implement a simple single layer perceptron network. Perceptrons have well documented problems (they're p bad), but are an approachable place to start. In this case you could:
Check out this case where two dudes attempt to solve sudoku. One guy attempts to solve it using "agile" methods and gets bogged down in how to represent the data and writing tests. The other guy (Norvig ) just writes some constraints and a solver.
|
# ? Oct 10, 2013 08:06 |
|
Notorious b.s.d. posted:no one can craft correct programs in c++ and since every other language is directly or indirectly implemented in c++ (or c) it means that no language implementation is correct, and therefore that no program in any language is correct
|
# ? Oct 10, 2013 08:59 |
|
still no trailing commas allowed in json, trash standard
|
# ? Oct 10, 2013 10:18 |
PrBacterio posted:(except because no one should ever use c++ at all, but thats a topic of its own) elaborate
|
|
# ? Oct 10, 2013 11:38 |
|
OBAMA BIN LinkedIn posted:elaborate this is how you sort in c++ and c++ people think that this is worth showing off: shrughes posted:clock() returns approximate processor time used by the program, not waiting time. And you didn't even count transfer times. Also, my CPUs are faster than your GPU.
|
# ? Oct 10, 2013 14:03 |
|
isn't timsort in c++ stdlib? it is in java. ofc if you took out the reinvented wheels 90% of c++ code would cease to exist
|
# ? Oct 10, 2013 14:06 |
who cares
|
|
# ? Oct 10, 2013 14:09 |
oh no people writing code in a good language, how awful
|
|
# ? Oct 10, 2013 14:09 |
|
Cocoa Crispies posted:this is how you sort in c++ and c++ people think that this is worth showing off: no it isn't std::sort is how you sort in c++
|
# ? Oct 10, 2013 14:12 |
|
i would like to do something meaningful with my waking life and not spend half of it recreating algorithms already better implemented by my betters. these libraries work well enough for my purposes and i don't need to flip out about the few percentage points i could gain by tripling this project's maintenance burden -- idk but definitely not a c++ programmer
|
# ? Oct 10, 2013 14:13 |
|
Nomnom Cookie posted:i would like to do something meaningful with my waking life and not spend half of it recreating algorithms already better implemented by my betters. these libraries work well enough for my purposes and i don't need to flip out about the few percentage points i could gain by tripling this project's maintenance burden i havent met any single c++ programmer arguing against using the stl in ages
|
# ? Oct 10, 2013 14:15 |
|
Zlodo posted:i havent met any single c++ programmer arguing against using the stl in ages thats because experienced c++ programmers have a personal library of hacked up containers they c+p into every project
|
# ? Oct 10, 2013 14:17 |
|
|
# ? May 26, 2024 18:04 |
|
its better because it doesn't copy. just dont use the value after adding it ez pz
|
# ? Oct 10, 2013 14:18 |