|
horse mans posted:you don't have it because there's no way to diagnose it dont you only have impostor syndrome if youre actually good at something
|
# ¿ May 7, 2013 23:09 |
|
|
# ¿ Apr 29, 2024 22:54 |
|
echinopsis posted:can't pointers to pointers to pointers be used for some fancy efficient tricky code? pointers to pointers could be useful if for some reason you want to pass a pointer through an algorithm which modifies it. i would discourage you from doing this. The simplest form of a quine is having a string version of the program with a blank spot where the stringified version ought to be. The body of the program just outputs that stringified version twice, once without quotes and once with quotes in the correct spot. FamDav fucked around with this message at 08:38 on May 8, 2013 |
# ¿ May 8, 2013 08:30 |
|
tef posted:i have no qualifications to do programming. most programmers have no idea what they are doing. tef seriously you just need to find something that excites you. are there no jobs in the uk that you would find stimulating?
|
# ¿ May 8, 2013 08:40 |
|
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. only then will you find happiness and comfort.
|
# ¿ May 9, 2013 07:25 |
|
Zlodo posted:this, this a million times c++ is the lisp of imperative programming languages, and that makes it awesome
|
# ¿ May 9, 2013 23:54 |
|
Orbi posted:dumb c++ question: can i overload extraction/inserion operators for fstream as well as for regular iostreams? yes FamDav fucked around with this message at 06:22 on May 10, 2013 |
# ¿ May 10, 2013 05:32 |
|
gucci void main posted:it's not really that weird after about an hour. just read stephen kochan's programming in objective c book, as it's basically the bible for the language. it's not too hard to learn, the real difficulty is in getting used to using the cocoa framework as objc itself is completely useless without it. this is probably the least offensive post sulk has made in months
|
# ¿ May 11, 2013 17:10 |
|
The easiest way to learn vim is to learn enough to move around, insert, and delete. Then whenever something annoys you assume there is a better way and google for it.
|
# ¿ May 13, 2013 02:56 |
|
i ski in winter and go to concerts a lot you broken people
|
# ¿ May 14, 2013 19:35 |
|
Wouldn't you rather either instead of option.
|
# ¿ May 16, 2013 20:21 |
|
if you job a computer these are the representations of numbers you should know 1) binary 2) 2-adic 3) some kind of arbitrary-precision type 3) IEEE floats/doubles 4) church numerals
|
# ¿ Jun 9, 2013 17:22 |
|
prefect posted:is this a religious thing, or was there some guy named church who thought them up? nah its encoding numbers in lambda calculus. i made my list in order of importance btw
|
# ¿ Jun 9, 2013 17:57 |
|
nrook posted:wait, what's the difference between p-adic numbers and p-ary numbers except that you get cool algebraic properties from p being a prime 2's complement is just restricting 2-adic integers to a finite number of bits and considering the leftmost bit infinitely many repetitions of that bit. edit: which sounds like a really douchey thing to say but really those are the rules, its how it works, blah blah blah Ronald Raiden posted:I feel like floating point should be higher on the list. Its probs more important than arbitrary precision, since for a lot of common applications arbitrary precision doesn't matter and floating point math is a thing computers do better. Like graphics and poo poo. probably FamDav fucked around with this message at 19:05 on Jun 9, 2013 |
# ¿ Jun 9, 2013 18:46 |
|
http://www.madore.org/~david/math/padics.pdf is a paper
|
# ¿ Jun 9, 2013 19:52 |
|
if you do any kind of scientific computing or graphics work, knowing how to write numerically stable code makes you less awful. and church numerals are: 0 = \x.\f.x 1 = \x.\f.f x 2 = \x.\f.f (f x) etc.
|
# ¿ Jun 10, 2013 00:20 |
|
Bloody posted:what the gently caress is this how about they are an embedding of the integers into the lambda calculus using the properties of function application lets describe the number N as the result of N applications of a function f to a value x. so 0 = λf.λx.x 1 = λf.λx.f x 2 = λf.λx.f (f x) i even looked up the lambda symbol so it looks nice lets write another function λa.λb.λf.λx.a f (b f x), which is plus. this works because if a is f applied A times and b is f applied B times, then this applies f A+B times. wow, whoa we can write multiply by λa.λb.λf.λx.a (b f) x because this is the application of b (which is the application of f B times) A times i leave exponentiation and subtraction as an exercise to the reader
|
# ¿ Jun 10, 2013 01:15 |
|
The correct answer is to make a blog post about it and throw it up on Hn.
|
# ¿ Jun 10, 2013 16:57 |
|
why are they talking about syntax highlighting in terms of colors when you want to talk about groups of lexemes. and isn't it basically parens keywords numbers strings operators? i guess you could split it into exposed identifiers vs internal, lol
|
# ¿ Jun 14, 2013 04:55 |
|
Nomnom Cookie posted:perl can parse differently depending on BEGIN blocks. the one proof i've seen relied on conditionally defining a sub in a begin block. thats not so bad compared to c++. c++ is undecidable except that the standard requires compilers to limit template expansion depth. you have to either be ok with using ambiguous parses for syntax highlighting or you have to instrument the compiler template expansion has nothing to do with syntax highlighting. that just makes c++ compilation undecidable. while c++ has some wonky context sensitive issues (object instantiation vs function declaration), there's really nothing worse about highlighting it than python or haskell. also, what more do people want out of syntax highlighting?
|
# ¿ Jun 16, 2013 03:59 |
|
Zlodo posted:this is exactly the kind of thing where people tend to go "lol c++" because #include whereas the real problem is the awful architecture with everything and the kitchen sink stuffed into some base class i thought this was the one where they implemented intrusive linked lists but nopeeee
|
# ¿ Jun 18, 2013 01:11 |
|
i honestly just like vim more than i like other text editors and i get irl pissy if i cant do every single vim command i use when editing text
|
# ¿ Jun 24, 2013 16:27 |
|
Symbolic Butt posted:I don't do that but I know what you're saying, it's like this silly guy here: https://www.youtube.com/watch?v=YhqsjUUHj6g i skimmed but he basically set up a vimrc and has a couple of plugins. guy doesnt even have fugitive/git-gutter on there
|
# ¿ Jun 24, 2013 17:00 |
|
oh then lol. i was put in charge of the default vimrc for work and it amounts to the syntax highlighting/indenting/stuff on tabs to spaces so you dont gently caress up our bespoke codebase comma leader double-j for exiting insert mode semicolon to colon unmap arrows and if people get bored and want help then i show them how to set up vundle and go hog wild.
|
# ¿ Jun 24, 2013 17:12 |
|
It's like when they teach kids to ski without poles - if you never give them a crutch then they'll never learn to use it.
|
# ¿ Jun 24, 2013 17:21 |
|
Werthog 95 posted:post ur vimrc there's a vim thread in the CoC. but sure code:
FamDav fucked around with this message at 17:44 on Jun 24, 2013 |
# ¿ Jun 24, 2013 17:41 |
|
Symbolic Butt posted:be consistent, use au or autocmd, not both i probably just copied those from configs for a plugin. also extra letters means extra time means closer to death
|
# ¿ Jun 24, 2013 19:08 |
|
Werthog 95 posted:hey idiots just install the vim plugin for ur ide and ur set i actually really hate these because they dont have full support for all vim commands and its like why reimplement what is already perfect i do use vs for c# and id probably use idea for java if i coded java.
|
# ¿ Jun 25, 2013 01:24 |
|
whenever someone is having compiler issues in CoC and they mention they're using vs i just roll my eyes into the back of my head and imagine i'm on a beach
|
# ¿ Jun 26, 2013 01:28 |
|
I really like jj to ESC, and I globally remap capslock to ctrl because i'd like to have a functional pinky when im 40 and smashing on yalls kids in they college years
|
# ¿ Jun 27, 2013 14:03 |
|
OBAMA BIN LinkedIn posted:i think this every time i debug boost code and thinking about how people even code like that didnt tts work for that boost consultancy or whatever
|
# ¿ Jun 27, 2013 17:44 |
|
rip tts
|
# ¿ Jun 27, 2013 17:50 |
|
Nomnom Cookie posted:it even has language support for maps (that's a computer scientist way of saying "hash table" for you p-langers) so if you're coming from a bad language you can just dive right in and poo poo out code like nobody's business a) what language implements an associative container and calls it an hash table instead of a map? b) all hash tables are maps, but not all maps are hash tables c) i was curious what go's underlying implementation for map is and the spec doesnt even give algorithmic complexity for its operations. thanks rob.
|
# ¿ Jun 28, 2013 15:20 |
|
why cant they put that in their spec? i realize that the implementation of their map type is changing every day but i would appreciate it if i could just go read through the spec and have a general understanding of the performance characteristics of basic types.
|
# ¿ Jun 28, 2013 15:39 |
|
tef posted:because it might be a property of the implementation, rather than the design
|
# ¿ Jun 28, 2013 17:01 |
|
Can't you just use prolog
|
# ¿ Jul 24, 2013 17:21 |
|
just a butt posted:I probably should have read the PL thread before post post posting cause they were literally talking bout cucumber which was what I was thinking about green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke green as a cuke
|
# ¿ Jul 25, 2013 16:00 |
|
gently caress all of you
|
# ¿ Jul 25, 2013 21:21 |
|
Slaughterhouse-Ive posted:i've dashed the hopes of many a self-proclaimed java expert with an h1-b by asking about type erasure lol they probably sewing nikes now yospos bicth
|
# ¿ Jul 26, 2013 07:33 |
|
Lisp is a homo lang
|
# ¿ Jul 29, 2013 00:48 |
|
|
# ¿ Apr 29, 2024 22:54 |
|
if i did it i would use c so i could just goto theEnd.
|
# ¿ Jul 30, 2013 18:07 |