|
PleasingFungus posted:That's not what 'pass-by-reference' means. pass by reference isn't the same as passing a reference by value.
|
# ¿ May 8, 2013 08:20 |
|
|
# ¿ Apr 29, 2024 20:13 |
|
java is call by value. objects are stored as reference. in a pass by reference language you can write a swap function. actual languages that are pass by ref: perl
|
# ¿ May 8, 2013 08:21 |
|
oh god what am I doing
|
# ¿ May 8, 2013 08:21 |
|
echinopsis posted:tef once recommended me a book on coding, I wonder what it was? it was the practice of programming by kernighan and pike
|
# ¿ May 8, 2013 08:24 |
|
chumpchous posted:my company has been asking me if i want to move over to development full time. it's tempting because i honestly enjoy it a lot more than my real job (editing/coloring), but then i go into cavern of cobol or stack overflow and realize how hilariously underqualified i am to do any kind of real programming work. i have no qualifications to do programming. most programmers have no idea what they are doing. if you can write a for loop, and can count you are doing better than many people i've interviewed. it is much easier to be a programmer if you stop caring about the quality of work you produce. if you get more money and have more fun doing code, just do it and drink yourself into oblivion to deal with the insecurity and ennui
|
# ¿ May 8, 2013 08:26 |
|
Moist von Lipwig posted:i wish i had enough programming knowledge to dig really deep into like assembly it seems like the closer you get to raw silicon the closer you are to pure math/physics/enlightenment how bout this book ? http://www.nand2tetris.org
|
# ¿ May 8, 2013 08:33 |
|
echinopsis posted:can't pointers to pointers to pointers be used for some fancy efficient tricky code? a quine is a neat trick. from google this seems ok http://www.madore.org/~david/computers/quine.html i also found this neat quine in python quine = 'quine = %r\r\nprint quine %% quine' print quine % quine
|
# ¿ May 8, 2013 08:39 |
|
FamDav posted:tef seriously you just need to find something that excites you. i'm dead on the inside. quote:are there no jobs in the uk that you would find stimulating? http://www.theonion.com/articles/find-the-thing-youre-most-passionate-about-then-do,31742/
|
# ¿ May 8, 2013 08:51 |
|
Martytoof posted:every language that isn't c-style looks weird as gently caress python and ruby are quite different underneath, ruby is more like smalltalk, python is like a broken scheme. it's ok to be a little frustrated you can't move from one to the other
|
# ¿ May 9, 2013 10:04 |
|
THC posted:smoke weed every day, https://www.youtube.com/watch?v=kHXaMJ-ED6g smoke weed everyday, smoke smoke weed weed weed, smoke smoke weed smoke weed weed https://www.youtube.com/watch?v=IIIpExVf-5I
|
# ¿ May 9, 2013 10:09 |
|
chumpchous posted:i dunno when i was doing manual labor i was so tired all the time the only thing i could stress about was my job. now i have tons of surpluss energy but no surplus motivation and my job isn't that stressful so instead i stress about how generally unhappy + unhealthy + terrible my life is. hedonistic treadmill. woo
|
# ¿ May 9, 2013 10:30 |
|
FamDav posted:we encounter so much mediocrity in our day to day lives that it infuriates and depresses us that people who do not put in a sincere effort can be rewarded as well or even better than us. we have to accept that our reward for hard work and persistence is the knowledge that we took the more difficult path and succeeded. haha no gently caress that: slack off, get paid
|
# ¿ May 9, 2013 10:33 |
|
gucci void main posted:nothing you learn in college involving c++ is actually of use hth nothing you learned was ever of use sure, but i'm not your poor life choices are transitive
|
# ¿ May 9, 2013 20:01 |
|
prolog
|
# ¿ May 9, 2013 22:21 |
|
noice
|
# ¿ May 9, 2013 23:09 |
|
Ericadia posted:So what specific things in C++ do people hate? Like, name the #1 thing that makes you wish you were dead: as someone who has never really touched c++, but loathes it: despite smarter programmers than me espousing the virtuous nature of generic programming, to me it's still "an octopus made by nailing legs onto a dog". unfortunately, we're still nailing legs to it, and in 20 years time it will be a millipede. nothing will ever be removed from c++, only added atop. c++, as many of its apologists recite, is "pay for what you use", in the sense that if you are punished for exactly how many features of c++ you use. these payments compound. c++ is a way of sacrificing programmers for the holy grail of efficient code. additionally, every company that uses c++ will use a different subset, and if you're lucky, their own homebrew standard library. if i had to pick two languages that were closest in culture to c++, it would be php and lisp. php is ubiquitous, well known, and well established in industry. although some of the design decisions are beyond questionable, php, like c++ won't be going away any time soon. much of the code written in both is unsurprisingly crap, and the languages punish both the ignorant and the knowledgable. lisp in that it's full of smug weenies, hilariously fragmented, with a bloodlust for meta-programming, outdoing each other with clever hacks, torturing the language into a useable one. why write something simple that works at a price of verbosity, when you can write something that superficially looks simple but is implemented in rube-goldberg fashion, at a price of sanity. c++ is like a swiss army knife of power tools. it's impossible to use without harming yourself. really, i feel too dumb to use c++.
|
# ¿ May 10, 2013 01:03 |
|
c++ is a language in which every program is a horror, but you can write efficient horrors if you're a smart-rear end.
|
# ¿ May 10, 2013 01:05 |
|
more like dICK posted:so like most people who rant about c++ not living in jonestown
|
# ¿ May 10, 2013 01:15 |
|
more like dICK posted:I feel like its still 1998 when I see posts like that unfortunately some people I know still maintain code as if it were 1998. we can't all be working on llvm and clang.
|
# ¿ May 10, 2013 01:18 |
|
more like dICK posted:Some programmers I know are severely underpaid and miserable, but that doesn't make it correct to say that all programmers are we're both talking about the games industry ?
|
# ¿ May 10, 2013 01:26 |
|
indent plan
|
# ¿ May 16, 2013 19:00 |
|
you're not forced to handle exceptions though, the whole point is that any line can throw one so you don't have to be explicit which one. checked exceptions are a poor implementation of option types.
|
# ¿ May 16, 2013 20:11 |
|
now shaggar has to argue against making error handling explicit and enforced by the compiler, to a level where you can clearly see where errors are returned and how they are handled. and then make an argument that doing that in a way so broken even microsoft wouldn't touch is better
|
# ¿ May 16, 2013 20:13 |
|
|
# ¿ May 16, 2013 20:13 |
|
oh I forgot shaggar wants checked exceptions and not option types because he's anti union
|
# ¿ May 16, 2013 20:14 |
|
MY NON LOCAL CONTROL FLOW
|
# ¿ May 16, 2013 20:29 |
|
Shaggar posted:checked exceptions ensure that developers deal with them instead of ignoring them. i want to believe
|
# ¿ May 16, 2013 20:30 |
|
even the java library doesn't make effective use of them
|
# ¿ May 16, 2013 20:30 |
|
JewKiller 3000 posted:close thread, a better post than this cannot be made i can't remember who i stole it from either
|
# ¿ May 17, 2013 00:34 |
|
PleasingFungus posted:java question time. my understanding is that, taking advantage of the fact that java strings are immutable, identical strings are stored at the same location in memory. e.g.: they work for comparing memory addresses, so if all your strings have unique locations in memory, yes you can use it to check equality. the assumption that every string you create has only one possible address is not a pleasant one. if you need to check string equality, use equals. if you need to check object identity, use ==. if you're needing to check object identity on strings, you will be better off using an enum to represent your constants, not strings.
|
# ¿ May 21, 2013 20:24 |
|
enums also make great singletons
|
# ¿ May 21, 2013 20:33 |
|
it's ok we all know you're a programmer
|
# ¿ May 23, 2013 12:08 |
|
dur posted:i'm a bad programmer. this is how i'm making an xml file in python my boss did this. he then fixed it by writing another program to read the broken html and try and escape the text he'd forgotten if you can't be arsed to find a library to write xml, at least escape the goddam values you put in i.e code:
|
# ¿ May 28, 2013 18:37 |
|
use wasabi
|
# ¿ May 28, 2013 19:25 |
|
protocoffeescript
|
# ¿ May 28, 2013 21:16 |
|
https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/ConnectionStatus.java#L213
|
# ¿ May 29, 2013 21:28 |
|
aka: all our html templates go in this directory, all our sql goes in another, and then what's left over goes in the last directory
|
# ¿ Jun 3, 2013 05:47 |
|
and curious to see what the thread makes of http://www.stanford.edu/~ouster/cgi-bin/papers/fiz.pdf
|
# ¿ Jun 3, 2013 05:49 |
|
in the facebook screen I had today, I stumbled over the screen question. got the right answer in the end, it was kinda obvious and I felt dumb. they also asked me what my ideal job would be. i said 'destroying capitalism'. i mean what would be the point if only I got to have an ideal job and be free from wage slavery. i said i would settle for destroying timezones and be lauded by programmers for the rest of my life.
|
# ¿ Jun 4, 2013 17:11 |
|
|
# ¿ Apr 29, 2024 20:13 |
|
eliminate all utc offsets
|
# ¿ Jun 4, 2013 19:20 |