|
Malcolm XML posted:there's a lot of dumb tricks in the itertools documentation yeah and it's dumb as all hell, why the gently caress are they putting code in the documentation instead of just ... in the module, so you can use it without having to copy-paste from the documentation?! "batteries included* * light bulbs sold separately"
|
# ? Nov 30, 2015 22:52 |
|
|
# ? May 22, 2024 17:31 |
|
MononcQc posted:What kind of aptitude test? Like "are you skilled enough" tests or "what's your personality type" tests? both are terrible but for various reasons. the last test I did was full on logic and problem solving and I just barely failed the programmer cutoff but not the DevOps cutoff (heh), this one seems to be personality + some logic but it's still creepy the working together I can understand but the whole process when I have an existing job is weird, it feels like "taking time off to go do another job" is some sort of weird betrayal and ugh gently caress the entire job hunting spiel
|
# ? Dec 1, 2015 02:05 |
|
Soricidus posted:yeah and it's dumb as all hell, why the gently caress are they putting code in the documentation instead of just ... in the module, so you can use it without having to copy-paste from the documentation?!
|
# ? Dec 1, 2015 02:08 |
|
ahmeni posted:the working together I can understand but the whole process when I have an existing job is weird, it feels like "taking time off to go do another job" is some sort of weird betrayal and ugh gently caress the entire job hunting spiel yeah definitely. Usually companies that do that do understand they're gonna be cutting themselves off of anyone in any sort of precarious position or who doesn't have a job with lots of flex time. They assume it's worth losing plenty of great candidates for more certainty with those that will accept to spend their time there. They should at the very least cover expenses, and if they're any nice, offer some form of compensation/contract for the trial period.
|
# ? Dec 1, 2015 02:08 |
|
MononcQc posted:
I think this is the best approach. Python provides defaultdicts which get around the awkwardness of having to check whether a dict key is defined. The constructor for defaultdict will automatically substitute in an empty element of the type that is passed each time a new key is referenced. Python code:
|
# ? Dec 1, 2015 03:47 |
|
How implement monads in python
|
# ? Dec 1, 2015 05:02 |
|
Merdifex posted:How implement monads in python ok Python code:
|
# ? Dec 1, 2015 05:03 |
|
Notorious R.I.M. posted:I think this is the best approach. Python provides defaultdicts which get around the awkwardness of having to check whether a dict key is defined. The constructor for defaultdict will automatically substitute in an empty element of the type that is passed each time a new key is referenced. default dicts are probably one of my most used things recently, though usually if im working with someone newer to python i'll use the .setdefault behaviour to be explicit
|
# ? Dec 1, 2015 05:06 |
|
Don't forget dict.get()'s optional default return value if you're pulling crap out of a dict instead of inserting it.
|
# ? Dec 1, 2015 05:45 |
|
ahmeni posted:default dicts are probably one of my most used things recently, though usually if im working with someone newer to python i'll use the .setdefault behaviour to be explicit Similarly to dict.get, there's also: Python code:
|
# ? Dec 1, 2015 05:58 |
fart simpson posted:pythonic monadic
|
|
# ? Dec 1, 2015 09:01 |
|
i found it on google, i didn't write it
|
# ? Dec 1, 2015 09:06 |
still cool tho
|
|
# ? Dec 1, 2015 09:11 |
|
Thanks for recommending Racket as a scripting language. It's perfect for me. I want to use Clojure there, but the boot times are awful. Racket is super fast and I can save them as text files. Now I can stop writing poo poo in Ruby because "well i guess some of my other scripts are already Ruby".
|
# ? Dec 1, 2015 09:54 |
|
ugh what the gently caress are all those capital letters and commas doing in that post
|
# ? Dec 1, 2015 09:58 |
|
lol my ~/bin dir has about equal proportions .sh, .pl and .rb, with a couple .py and .jar for seasoning
|
# ? Dec 1, 2015 10:01 |
|
good job standardizing
|
# ? Dec 1, 2015 13:47 |
|
i pretty much never use dictionaries
|
# ? Dec 1, 2015 13:47 |
|
Bloody posted:i pretty much never use dictionaries what do you use instead?
|
# ? Dec 1, 2015 14:09 |
|
wikis
|
# ? Dec 1, 2015 14:22 |
|
Blinkz0rz posted:what do you use instead? lists I guess? idk I don't work with much data in a key Value format I guess
|
# ? Dec 1, 2015 14:43 |
|
i use Properties
|
# ? Dec 1, 2015 18:13 |
|
MALE SHOEGAZE posted:wikis a global scope dictionary that ANY process can edit
|
# ? Dec 1, 2015 18:23 |
|
Barnyard Protein posted:a global scope dictionary that ANY process can edit only well respected, upstanding processes with a history of making well received edits in narrower scopes can edit
|
# ? Dec 1, 2015 18:27 |
|
Barnyard Protein posted:a global scope dictionary that ANY process can edit isn't that how mumps works
|
# ? Dec 1, 2015 18:33 |
|
GrumpyDoctor posted:isn't that how mumps works Kinda. "Globals" are arrays (actually b-trees) that are written to persistent storage. You can map globals to particular namespaces to lock them down to only processes running in those namespaces, or you can have them be truly global. Only an rear end in a top hat would use them to store global mutable state, which means that everyone does that of course. MUMPS globals are intended to be used as the "database" part of the platform, but since they're the only complex data structure available obviously they get repurposed for all sorts of poo poo. So really, they're kinda like a file that is world-modifiable by default but can have permissions applied to them.
|
# ? Dec 1, 2015 19:15 |
|
is there a mumps to javascript compiler yet
|
# ? Dec 1, 2015 19:31 |
|
Internet Janitor posted:It's a K5 limitation, I'm afraid. Many things have been aggressively simplified compared to K4. gah, i hope there are some really good payoffs in k5, because going to zero good k implementations even counting proprietary ones would be very depressing i get tempted to write an implementation myself now and then. i wrote a pretty substantial semantics specification for q a number of years back, which we used to do a jvm-based db subset in a clean-room fashion, but i rather suspect i wouldn't quite make it through a complete implementation
|
# ? Dec 1, 2015 19:37 |
|
Soricidus posted:is there a mumps to javascript compiler yet no but we have an xml library for MUMPS internally. it's bad.
|
# ? Dec 1, 2015 20:00 |
|
LeftistMuslimObama posted:no but we have an xml library for MUMPS internally. it's bad.
|
# ? Dec 1, 2015 20:34 |
|
Ya, imagine dealing with xml purely by parsing it as text input.
|
# ? Dec 1, 2015 20:53 |
|
alright, i did it: http://forums.somethingawful.com/showthread.php?threadid=3754012 can't really go much worse than my forth thread did.
|
# ? Dec 1, 2015 21:19 |
|
LeftistMuslimObama posted:persistent storage
|
# ? Dec 1, 2015 21:26 |
Internet Janitor posted:alright, i did it: http://forums.somethingawful.com/showthread.php?threadid=3754012 Cool! Good OP.
|
|
# ? Dec 1, 2015 22:37 |
|
I assume this is because the phrase is redundant? I just meant "disk" vs "in memory".
|
# ? Dec 1, 2015 23:21 |
|
LeftistMuslimObama posted:I assume this is because the phrase is redundant? I just meant "disk" vs "in memory". maybe he means nothing is truly persistent and life is meaningless
|
# ? Dec 2, 2015 02:46 |
|
no, my current headaches are all around writing to persistent storage there's internal flash, external flash, internal can be sent down the pipeline while external needs to be paged back in, and all this is on a cortex M4 without those fancy things like a "file system" so i'm trying my darnedest to not write a full fledged FS so LMO, as way down in the muck of MUMPS as you are, there's still a layer of abstraction you're able to rely on that I cant MeruFM posted:maybe he means nothing is truly persistent and life is meaningless
|
# ? Dec 2, 2015 02:51 |
|
there's a zillion lightweight file systems for embedded systems do you have like 2 bytes of ram or something
|
# ? Dec 2, 2015 03:12 |
|
suffix posted:there's a zillion lightweight file systems for embedded systems still prob enough for the lightestweight fatfs
|
# ? Dec 2, 2015 03:45 |
|
|
# ? May 22, 2024 17:31 |
|
at 2 bytes, the sam becomes the ram
|
# ? Dec 2, 2015 03:50 |