|
the last time we had a fizzbuzz thread and everyone was writing their fizzbuzzes i started writing one up that used spring aop and then realized it wasnt funny
|
# ? Apr 25, 2014 20:24 |
|
|
# ? May 9, 2024 21:09 |
|
answer fizz buzzes in machine code and don't tell them which machine
|
# ? Apr 25, 2014 20:24 |
|
USSMICHELLEBACHMAN posted:i'm also so loving bad at doing programming questions on the spot jesus i once hosed up a for loop for array reversal on a whiteboard because i couldn't remember if it should be i < length or i <= length
|
# ? Apr 25, 2014 20:25 |
|
half the beauty in fizzbuzz is it also filters out smartarses who refuse to play the game
|
# ? Apr 25, 2014 20:28 |
|
speaking of, torpedo'd myself with a recruiter yesterday by showing less-than-absolute enthusiasm for the position. lesson learnt.
|
# ? Apr 25, 2014 20:28 |
|
USSMICHELLEBACHMAN posted:i'm also so loving bad at doing programming questions on the spot jesus one of the textbooks im working through at the moment is How to Solve It: Modern Heuristics which is great with this kind of stuff. bit time intensive but if you feel it's a weakness of yours s worth a read
|
# ? Apr 25, 2014 20:32 |
|
woah
|
# ? Apr 25, 2014 20:35 |
|
did someone do a LOLCODE fizzbuzz solution?
|
# ? Apr 25, 2014 20:41 |
|
coffeetable posted:speaking of, torpedo'd myself with a recruiter yesterday by showing less-than-absolute enthusiasm for the position. lesson learnt. same but accidentally picking up a recruiter cold call and hanging up on him when he asked me how much i made in my position as a CJ at [chain store] then laying in bed for an hour hyperventilating uhhh maybe i should go to a therapist instead of sh/sc
|
# ? Apr 25, 2014 21:20 |
|
Luigi Thirty posted:same but accidentally picking up a recruiter cold call and hanging up on him when he asked me how much i made in my position as a CJ at [chain store] that's p funny
|
# ? Apr 25, 2014 21:21 |
|
in college, I applied for a poo poo tier CJ job got a call a few weeks later at around 8-9am asking if i wanted to go in for an interview. Responded with "I think i'm busy on all days". Took me an entire week before realizing what I did.
|
# ? Apr 25, 2014 21:25 |
|
perhaps it's just because it's late but i'm having trouble with some physics behaviour in my latest sisyphean attempt at a game. it's in haskell but this particular question is language independent. so the idea is that you have a sword in somebody's hand which i've, to start with, modelled as code:
i.e. their hand can go up and (no horizontal movement) and can angle their wrist. the sword starts horizontal but can be flicked up and down which is what i can't get working. actually applying the impulse to angle the sword away from the centreline is fine, i just add a constant to wristAngleV but then I want the sword to slow down and stop at a 45 degree (ish) angle before returning back to its resting position. so far I have (in some kind of OO-like pseudocode) code:
yes I know Euler integration is poo poo, no I don't care
|
# ? Apr 25, 2014 23:08 |
|
well i dont know what ur problem is there atomD but it reminds me that i really want to start doing more stuff with haskell.
|
# ? Apr 25, 2014 23:15 |
|
sooo in this bitcode:
except this bit code:
|
# ? Apr 25, 2014 23:29 |
|
yeah the flipping thing won't work because you're not flipping the wristAngle and i don't think you need it since the formula should always push your wrist towards 0 degrees
|
# ? Apr 26, 2014 20:58 |
|
USSMICHELLEBACHMAN posted:i'm also so loving bad at doing programming questions on the spot jesus i had an interview the other day and when i started describing a search implementation he jsut told me to use a library method instead. really want to work there
|
# ? Apr 26, 2014 21:04 |
|
I rewrote it using the simple pendulum equation[1] and added a drag term (i.e. a force proportional to negative angular velocity) and it works, feels nice and fluid without waving back and forth for 10 minutes. Now to get mouse movement to control it then my JO simulator will be nearly complete! [1]: http://en.wikipedia.org/wiki/Pendulum_(mathematics)
|
# ? Apr 26, 2014 21:50 |
|
AlsoD posted:perhaps it's just because it's late but i'm having trouble with some physics behaviour in my latest sisyphean attempt at a game. it's in haskell but this particular question is language independent. just let the engine do it sheesh
|
# ? Apr 27, 2014 02:39 |
|
coffeetable posted:speaking of, torpedo'd myself with a recruiter yesterday by showing less-than-absolute enthusiasm for the position. lesson learnt. i been working with a recruiter lately looking to relocate and they sent me an "opportunity" to work for a conservative lobbying group i start on monday
|
# ? Apr 27, 2014 02:51 |
|
lol jk
|
# ? Apr 27, 2014 02:51 |
|
i would love to work for some republicans i bet they are the best
|
# ? Apr 27, 2014 05:33 |
|
AWWNAW posted:i been working with a recruiter lately looking to relocate and they sent me an "opportunity" to work for a conservative lobbying group being a republican lobbyist is hilarious because you are actively working against your interests. there was a article about cutting lobbyists something it was a good article.
|
# ? Apr 27, 2014 05:48 |
|
why isnt sctp used as a replacement for tcp? is it just the barriers of trying to adopt new protocols on the internet
|
# ? Apr 27, 2014 20:16 |
|
Because the Internets routers will drop it. Thus Google made SPDY which is pretty much SCTP in user space.
|
# ? Apr 27, 2014 20:21 |
|
Valeyard posted:why isnt sctp used as a replacement for tcp? that and
|
# ? Apr 27, 2014 20:23 |
|
MrMoo posted:Because the Internets routers will drop it. Thus Google made SPDY which is pretty much SCTP in user space. it's not the routers, it's the nats and firewalls. which makes it even harder to fix because that's end user owned equipment. the transport layer is pretty much locked to tcp/udp
|
# ? Apr 28, 2014 07:08 |
|
can't newer routers just slowly seed in alternative transport layers with fallback to tcp/udp
|
# ? Apr 28, 2014 07:29 |
|
that would require effort which is money and that is antithetical to consumer hardware design
|
# ? Apr 28, 2014 07:34 |
|
https://www.youtube.com/watch?v=JEpsKnWZrJ8&t=80s
|
# ? Apr 30, 2014 00:16 |
|
MeruFM posted:can't newer routers just slowly seed in alternative transport layers with fallback to tcp/udp maybe once IPv6 is there
|
# ? Apr 30, 2014 00:52 |
|
why does google hate linode. is it jelly of their ipv6 rollout?
|
# ? Apr 30, 2014 00:59 |
|
MononcQc posted:maybe once IPv6 is there lol if you think NAT is ever going away, network janitors believe its for security now no packets can be trusted without forms in triplicate
|
# ? Apr 30, 2014 01:19 |
|
gonna do some dickin about in haskell this weekend as a break from c++. alsod/xml/famdav/i forget the other yospos haskelitists are: what're some particularly good examples of haskell libraries in terms of coding style n architecture?
|
# ? May 1, 2014 11:20 |
|
coffeetable posted:gonna do some dickin about in haskell this weekend as a break from c++. alsod/xml/famdav/i forget the other yospos haskelitists are: what're some particularly good examples of haskell libraries in terms of coding style n architecture? lens the containers library shows common architecture patterns in nontrivial projects (consideration of strictness, cpp macros, repeated use of "go patterns" instead of naive recursion, even some fusion via RULE pragmas iirc) anything by released Brian O'Sullivan is probably good blog: http://www.serpentine.com/blog/ github: https://github.com/bos?tab=repositories hackage: http://hackage.haskell.org/user/BryanOSullivan the vector package is a prime example of heavy pointer/ffi use if you want to learn about that specifically seriously though ekmett does take care to have nice code iirc so you might want to check that out afterwards (even if it does sometimes go off the deep end in terms of abstraction) gonadic io fucked around with this message at 12:30 on May 1, 2014 |
# ? May 1, 2014 12:21 |
|
the quintessential "go pattern" iscode:
code:
code:
gonadic io fucked around with this message at 12:37 on May 1, 2014 |
# ? May 1, 2014 12:26 |
|
never heard it called a go pattern cool
|
# ? May 1, 2014 15:01 |
|
AlsoD posted:lens code:
|
# ? May 1, 2014 16:33 |
|
i find reading haskell so hard at the moment with all the pattern matching and lack of function brackets maybe one day it'll be easier
|
# ? May 1, 2014 16:36 |
|
i'm fairly certain if i wasn't a dumb idiot i'd be confident enough to call haskell unreadable but i am so i just have to think it
|
# ? May 1, 2014 16:37 |
|
|
# ? May 9, 2024 21:09 |
|
you did pick the example in which two nested binary trees are probed, i don't think there's any language where needing to account for 12 or so different cases would be anything other than a whole load of code.pointsofdata posted:i find reading haskell so hard at the moment with all the pattern matching and lack of function brackets everybody says the same thing and it will come in time, it helps that you can never have pattern matching in the same place as function application and vice versa - pattern matching always is in a function definition (between its name and "=") or in a lambda (between "\" and "->")
|
# ? May 1, 2014 16:41 |