« first day (1857 days earlier)      last day (3095 days later) » 
00:00 - 18:0018:00 - 00:00

12:32 AM
@thefourtheye My friend told me not to get into Chennai. I'm still on my hometown. Think ours is the only district escapes from this heavy rain.
Why don't you come to our district?
 
 
5 hours later…
5:34 AM
cbg
 
5:57 AM
CBG all
@AvinashRaj I am still in chennai :)
 
cbg all
I need to create a separate dictionary in python
[
{'field_id': u'36908'},{'field_name': u'Code'},{'field_value': u'900321'},
{'field_id': u'36909'},{'field_name': u'Description'}, {'field_value': u'TIG 2.4MM TUNGSTEN (EACH ROD)'},
{'field_id': u'36910'}, {'field_name': u'Quantity'}, {'field_value': u'2'},
{'field_id': u'36911'}, {'field_name': u'Price'}, {'field_value': u'21.00'},
{'field_id': u'36912'}, {'field_name': u'Line Total'}, {'field_value': u'42.00'},

{'field_id': u'36908'}, {'field_name': u'Code'}, {'field_value': u'92.01.15.08'},
I needed below Output
[
{'Code':u'900321',
'Description:u'TIG 2.4MM TUNGSTEN (EACH ROD)',
'Quantity':u'2',
'Price':u'21.00',
'Line Total': u'42.00'},

{'Code':u'92.01.15.08',
'Description: u'BINZEL .8MM MIG TIPS MB15',
'Quantity':u'6',
'Price':u'2.60',
'Line Total': u'15.60'}]
how can I sorted it out of my problem?
and above list of dictionary comes dynamically
not the fixed
I need your help ?
 
6:16 AM
I don't know what code you're using to get your current output, I don't know what your current output is, and I don't know what you mean when you say that the list "comes dynamically, not the fixed."
 
I mean dictionary comes dyamically into the list hear list is only one
do u undestand ?
 
No.
 
this is my list of list of dictionary
[
{'field_id': u'36908'},{'field_name': u'Code'},{'field_value': u'900321'},
{'field_id': u'36909'},{'field_name': u'Description'}, {'field_value': u'TIG 2.4MM TUNGSTEN (EACH ROD)'},
{'field_id': u'36910'}, {'field_name': u'Quantity'}, {'field_value': u'2'},
{'field_id': u'36911'}, {'field_name': u'Price'}, {'field_value': u'21.00'},
{'field_id': u'36912'}, {'field_name': u'Line Total'}, {'field_value': u'42.00'},

{'field_id': u'36908'}, {'field_name': u'Code'}, {'field_value': u'92.01.15.08'},
and i want to get my out put based on above list of dictionary
=====================OUT PUT==========================
[
{'Code':u'900321',
'Description:u'TIG 2.4MM TUNGSTEN (EACH ROD)',
'Quantity':u'2',
'Price':u'21.00',
'Line Total': u'42.00'},

{'Code':u'92.01.15.08',
'Description: u'BINZEL .8MM MIG TIPS MB15',
'Quantity':u'6',
'Price':u'2.60',
'Line Total': u'15.60'}]
@TigerhawkT3 just forget about dynamic dictionary
 
That is a list of dictionaries, not a list of lists of dictionaries, as far as I can see. You also still haven't mentioned what code you're using or what output you're currently getting. I don't think I'll be able to help you with this; sorry.
 
6:33 AM
yes that one as list of dictionary
does it possible
?
 
Please don't advertise new questions in chat. Give them a chance to be seen by interested users.
Also, for future questions you might want to include an actual problem statement and a question rather than just a dump of input and desired output, as such questions tend to get closed as off-topic with a custom reason of "because SO is not a coding service."
 
8:02 AM
Hey up all
 
8:36 AM
Yo
 
@TigerhawkT3 I was not show of my Question as Adevertisement , I have send my url because u are not enough to understand my question very well
 
@DaSaDiYaChaiTAnYa yes you did, you linked it there.
And that's besides the point.
By coming to the room and asking your question (with or without linking it) you're asking us to solve it.
 
ohh so sorry about that
 
and it's a new question, meaning it's against the rules.
In fact, by asking us to solve it but not linking the question it's even worse, as someone could spend time and effort to answer it and then the answer isn't written up.
Or, someone else could write an answer while someone in the room is answering it with you in person.
 
okey @Ffisegydd
 
9:00 AM
:)
 
Morning all. And cabbage to those who like it.
 
9:16 AM
Cbg
 
Cabbage!
 
can anyone tell me how to create a incremental filename with cpickle
something similar to this stackoverflow.com/questions/5068461/… but with cpickle
 
@VinodPrime why not just use that solution?
Generate the string and then use it when pickling.
 
not possible with cpickle?
 
9:32 AM
@VinodPrime when you pickle something you typically pass in a file object, yes? Well just create the file object using an incremented string.
I am confident that if you sit down and think through the problem for a minute, you'll see it's a simple solution.
 
ok...thanks :)
 
Was [i for i in globals().values() if hasattr(i, '__call__')][0] a statement or expression? If it was an expression, why can't I use it with @ as decorator? — Mario 3 hours ago
 
vomits
 
For every arbitrary message length, I can name you a German word that would make it impossible to split the text into parts with that logic. You can’t find a number that’s perfect; if you choose a not-too-small number (e.g. the 140 characters in SMS or Twitter), you can produce very good results but there will still be edge cases. — poke 8 secs ago
 
"why can't I use it with @ as decorator" somewhat reminds this strip dilbert.com/strip/2010-01-13
 
9:58 AM
cbg
 
cabbage Jon
 
10:40 AM
OOOooooo: 7:02 am On FedEx vehicle for delivery - T-shirts are a coming :p
 
11:08 AM
WITH RECURSIVE
  input(sud) AS (
    VALUES('53..7....6..195....98....6.8...6...34..8.3..17...2...6.6....28....419..5....8..79')
  ),
  digits(z, lp) AS (
    VALUES('1', 1)
    UNION ALL SELECT
    CAST(lp+1 AS TEXT), lp+1 FROM digits WHERE lp<9
  ),
  x(s, ind) AS (
    SELECT sud, instr(sud, '.') FROM input
    UNION ALL
    SELECT
      substr(s, 1, ind-1) || z || substr(s, ind+1),
      instr( substr(s, 1, ind-1) || z || substr(s, ind+1), '.' )
     FROM x, digits AS z
    WHERE ind>0
      AND NOT EXISTS (
Wow - SQLite used to solve sudoku - mind blown...
 
cabbage
 
cbg PM
 
Here's a fairly short Python sudoku solver that (kind of) uses Knuth's Algorithm X, but with dicts & sets instead of linked lists: cs.mcgill.ca/~aassaf9/python/sudoku.txt
Oh, and here's the author's explanation: Algorithm X in 30 lines!. :)
 
cel
ah, namedtuples in combination with pickle is really annoying :/
 
I found that article quite helpful when I was trying to understand and implement Algorithm X. I was trying to find a faster way to make big Latin squares, but it turns out that my hand-made algorithm is faster than Algorithm X, especially on larger squares. However, I also used Ali Assaf's Algorithm X code to do a graph colouring program (eg for the 4 colour map problem), and that works quite well.
@cel That's a shame. I've never tried pickling namedtuples. What goes wrong?
 
cel
11:19 AM
I have a parser that basically reads the header of a csv file and then creates a namedtuple template for each line
This works well, but the named tuples for each row do not seem to be picklable anymore.
because python somehow wants to have the template imported
before being able to unpickle
argh, I am annoyed
 
@cel Ah, rightio. That makes sense, considering how pickling works.
 
cel
Is there a dict based built-in container format in Python that allows access via attributes, instead of slicing?
 
CBG all
Looks like mod election is heating up :)
 
11:35 AM
@Cel is using the nt's ._asdict() then pickling that a workable approach?
(or even just a plain tuple... then put it back into a namedtuple?)
 
cel
@JonClements, yes that will definitely work. I am not too happy with it, though.
 
using a tuple guarantees you've got the way to unpickle if you don't have other stuff
 
cel
11:49 AM
`
class TupleWrapper(dict):

def __init__(self, nt):
super().__init__(nt._asdict())

def __getattr__(self, attrib):
try:
return super().__getattr__(attrib)
except AttributeError:
return super().__getitem__(attrib)
`
This should do... really ugly, though
god, why is SO chat formatting so complicated
 
@cel It’s really easy. Paste and CTRL+K.
You can’t mix code and non-code in a single message though.
 
cel
completely off-topic I would say
argh, the wrapper object cannot be pickled either
 
12:30 PM
Morning.
 
12:54 PM
cbg!
 
1:07 PM
@cel exactly - you've just abstracted the same problem you were trying to avoid :p
 
@AvinashRaj Yup, stay away from Chennai for this week. Its horrible :'(
 
Floods?
or am I not up to date.
 
1:23 PM
@DJanssens Its Chennai
 
:/
 
cel
@JonClements, I ended up with the wrapper but a custom serialization using __getstate__ and __setstate__ which simply transform everything into a dict
 
@cel aren't you glad it just took 5 minutes :)
 
cel
now this is extremely ugly, but it seems to work for now
Haha, I am more frustrated that a simple namedtuple is so hard to serialize
and I fiddled some global variables into my script. Multiprocessing is fun! :D
 
today I am trying to create a mapping between all tuples that contain only 1,2, or 3; and RGB color space. ex. (1,) is red, (2,) is green, (3,) is blue, (1,2) is yellow, (1,2,3,2,1,2,3,2,1,2,3,1,2,3,1,2,3,1,2,3,1) is desaturated orangish brown.
Those colors are just an example. I don't actually know what each of those tuples map to.
Right now my only requirements are 1) "similar looking" tuples should map to similar colors, and 2) every color is mapped to a tuple
although I can ignore the second requirement if the result looks good
 
1:41 PM
"desaturated orangish brown" - I have a feeling that's not going to be on Dulux's most popular colour list...
 
It will when I'm through with it >:-)
 
user559633
baby with flu after indian food brown
 
Maybe I'll just map them to colors with maximum saturation and value. Then I only need one dimension if I use HSV colors
Then it's only a matter of converting each tuple to an integer between 0 and 1
 
user559633
why are you representing colors this way?
 
I have a half-formed idea for a fractal visualization that is more or less a tree whose branches each split into three children. Each branch is uniquely identified by a tuple as described above, and I want to render each one with a unique color and hopefully get something interesting looking
 
user559633
1:49 PM
oh, i get it, that's cool
 
Maybe if I do something like hue = sum(v / 2**i for v,i in enumerate(seq, 1))...
or would it be 3**i.
 
2:01 PM
Morning cbg.
 
Proof of concept looks good - time to apply it to the actual thing I want to apply it to. Also I need to write that thing.
 
Whoa that's cool
 
I would prefer for the root node to not have the same color as its left child, and its left child's left child, etc
Maybe I can do something about that...
 
@Kevin Maybe not max saturation and value - that can end up looking a bit garish, especially if you end up with big areas of unrelated colours near each other. But I guess it works ok for things like fractal trees where the colours are spread out and on a predominantly neutral background.
Here's an Apollonian gasket produced by a GTK2 program I wrote a few years ago:
 
cbg
 
2:07 PM
@PM2Ring I'm a little concerned about my actual visualization, where sibling branches won't necessarily be next to one another. It may end up being an unreadable riot of color.
That's a nice gasket :-)
I want to do something similar where different levels have different value. Maybe I'll keep saturation constant at some reasonable level
 
Thanks!
 
Hey guys, what would you recommend as a best practice/ general rule of thumb for logging in python?
 
@GLaDOS Use the builtin logging module.
 
anything else you recommend? or a nice article to read before doing that?
 
If your program crashes and you can't figure out why, you didn't have enough logging. If your program produces a gigabyte of log files every hour, you have too much.
 
2:11 PM
@Kevin or have a lot of problems to fix? :p
 
cabbage
 
that seems about right.
just wanted to make sure I'm in tune with the general approach to do that
 
Hmm, how best to map (0, infinity) to (0,1)...
 
by the way, if you remember the huffman trees I did a long while ago, thanks for the help
 
Here's one with stroked circles on a black background, so it can get away with full sat & val.
 
2:15 PM
@PM2Ring nice image :)
 
user559633
To add on to logging: only log verbosely on stuff that you plan on reading/addressing
 
I guess 1 - (1 / (x+1)) will do...
 
Hmm this is awkward - for debugging I'm implementing a "repr" function now. However my task is a "tree" structure, so one of the things is: "parent_node=%r" % (self.parent)
But now the whole tree is printed XD
 
I'm surprised that doesn't loop forever. Wouldn't the parent also print its children, which also print their parent, etc?
 
4
Q: function for $f: [0,\infty) \to (0,1]$?

MichaelI'm using R to plot some data and I'd like to transform a distance variable with $[0,\infty)$ to a transparency parameter that accepts inputs $[0,1$]. I'd like $0$ distance to map to $1$ and increasing distances to map to decreasing numbers asymptotically approaching $0$. It's been a while since...

@Kevin nah it's not a "true" tree datastructure in that sense. As I don't need to go "down" at all.
(It's a simulation of satellites in orbits)
 
2:21 PM
e^-x works too, although it goes up to 1 faster than my current equation
 
Well to me that would be "more simplistic" (and hence easier to understand). The derivative is easy
 
True. I'll see if I can twiddle it to get the growth rate I desire. Also I have to figure out what growth rate I desire.
 
@Kevin Well on the other hand - fast reduction to zero can be a killer requirement when talking about computers. - They have limited accuracy, especially since the exponential part is not a floating point in itself.
 
@paul23 You could create a second function def representation(self, depth) that creates a string representation of itself, but only includes a string representation of its parent if depth is greater than zero. Then in __repr__ you could call representation with a reasonable depth value (say, 3)
Or even 1 if you only want to see the node's immediate parent and nothing farther up
 
@Kevin Actually I'm going for "0" and using the string/unique name of the parent.
 
2:32 PM
That'll do as well.
One of the few features of IDEs I pine for, is the ability to pause a program and hover over an item to see its attributes, each of which can be hovered over, etc
 
Already too many things to display (problem also for the constructor, I need 15 arguments in the constructor to fully describe an object)
 
@Kevin PyCharm comes pretty close to that.
 
@MorganThrapp Though given python's nature it's easy to confuse pycharm
Using pycharm myself though, quite happy with it. (Got it for free due to still studying)
 
@paul23 Huh, I haven't had that happen. It used to get a little wonky with debugging threaded stuff, but 5.0 seems to have fixed it.
I also haven't worked with overly nested structures, so it's possible I just haven't hit any of the cases where it gets confused.
 
Well especially the IDE starts to "not see" the type after "some time". Where it would give a correct type hint and constructor arguments initially, but when returning later to the line it can't see to find it even when retyping the line. Haven't had to do any real serious debugging in python.
 
2:51 PM
morning
 
cbg
 
user559633
hey!
 
... jude - take a sad song and make it better?
 
user559633
i'd never make a Monkees reference.
 
Unit tests are so annoying :\
 
user559633
3:01 PM
then don't do them :)
 
To the intern they shall go!
 
Test nothing. Chaos reigns.
 
@corvid stop being an intern? :p
 
user559633
unless the person writing the unit tests really cares, it's a waste of time anyway
 
I have an intern, it's pretty great. Like having a thrall to my programming laziness
I just want tests on generic inserts and updates to test my autovalue generation and schema validation
 
3:07 PM
"Unit testing, eh? I'll delegate to the intern". Corvid writes out his request on a note, which he puts into a canister and inserts into the pneumatic tube delivery system to the right of his monitor.
The canister flies down through the corporate accounts payable department, the sub-basement, the sewer system, the nearby lake. then down through the rock, past buried pirate treasure, a dinosaur skeleton, a lava tube, into darkness. Then - thump! A canister arrives at the pneumatic tube arrival slot to the left of corvid's monitor. He opens it and reads the note. "Unit testing, eh?"...
 
It's very Brasil.
 
Brazil -> Terry Gilliam -> Monty Python -> Python. So I'm only four degrees of separation away from being on topic :-P
 
plot twist: I am intern
 
@Kevin That's actually pretty close compared to our normal conversation.
 
Just gotta pull yourself up by your bootstraps and you'll be promoted in no time.
 
3:37 PM
So much unit test hate...tsk tsk. Be one with the TDD.
 
I still don't get how to stub out stuff :\
 
i am the intern
i am one with the TDD
 
pff
how can I prevent programs of writing to appdata?
and make sure they stay in their program files folder?
 
3:53 PM
I don't think you can, at least not without breaking the app.
 
user559633
@corvid if python there's Mock and other stub stuff for you available
 
(I'm assuming you're talking about an existing app).
 
user559633
@paul23 install linux. problem solved. other problems created
 
Well about any program is doing that
 
Create a virtual environment and run the program in the virtual environment
 
3:54 PM
run it in docker
 
Well my goal is to save my ssd
 
user559633
run it in a docker in the cloud
 
why are you worried about your ssd
 
Oh, don't worry about it then.
 
I only wish to have frequently used programs to write to my SSD
 
user559633
3:54 PM
because it's already only one letter away from sad!!!
 
Modern SSD's will last for a very long time.
 
Now suddenly league of legends wrote about 5 gb to the ssd.
 
it doesnt matter
 
user559633
oh, so not python related.
 
(to localappdata)
 
3:54 PM
not for consumer grade
 
My laptop's ssd is 128gb
meant to be only OS install + things such as github
 
youre worried about the wrong things
 
user559633
 __
/  \        _________________
|  |       /                 \
@  @       | It looks        |
|| ||      | like you        |
|| ||   <--| are looking     |
|\_/|      | for superuser   |
\___/      \_________________/
 
@SebastianWozny ? Well I do kind of see already 60% of my ssd used within 3 months.
And 0% of the main hard drive
 
user559633
Hey, guess what, quit it
 
3:56 PM
well its not 80% so you're fine
 
DSM
Morning cabbage, all.
 
user559633
cbg dsm
 
@corvid Get familiar with mock. If you are using Python 2, it doesn't come bundled, but you can just pip install it and you're good to go.
 
Got my variable-parameter fractal visualizer working :-)
 
user559633
That's incredible.
 
4:02 PM
Oooo, nice. That's pretty.
 
wow
 
I think I will put up a gist in a minute, if anyone wants to play with the sliders
 
I'd definitely be interested.
 
DSM
Me too. I was distracted for a moment remembering Sabrina Lloyd, but I'm back now.
 
Here it is. Requires geometry.py.
Almost certainly 2.7 only. Pretty sure I used weird tuple unpacking that's illegal in 3.X
 
DSM
4:07 PM
Hmm. Seems stalled for me.
 
3.x also doesn't seem to have tkSimpleDialog.
 
Uh oh. I might have gotten too fancy with the threading.
It draws a lot of squares and Tkinter isn't very fast so all the rendering happens in a coroutine, at about 100 primitives per second on my machine
 
DSM
Doesn't seem to be using any cpu for me. Should add I add some prints to find out where it's paused?
 
Yeah. The inside of DrawRoutine.run seems like a likely place to start.
Possibly the problem is too many threads, since a new one gets instantiated every time you move the slider, and also whenever the sliders' positions are set programatically
 
DSM
Not getting past the poly call in run, let's see why..
 
4:11 PM
So it fires off 12-24 threads before the window even appears, with all but one never progressing past the first release_and_wait call
 
DSM
Never returning from the first create_line.
 
I forget, are you on Mac?
 
DSM
Nope, ubuntu.
 
Perhaps it's implementation dependent whether you can call canvas.create_X outside of the main thread
 
DSM
(2.7) dsm@winter:~/coding/kevin_fractal$ python fractal.py
starting run..
in while d
about to poly
(Point(400.0, 400.0), Point(5.68434188608e-14, 400.0), {'fill': '#000000'})
(<Tkinter.Canvas instance at 0x7f6237d33b90>, <type 'instance'>)
about to call create_line..
 
4:14 PM
I could push the calls to the main thread if I used a Queue...
It would be a bit ugly design-wise though
("drop in the ocean..." thinks the peanut gallery)
 
cbg
 
Let's see... What's the syntax for functools.partial again...
 
user559633
partial(obj, var)
 
Thanks :-)
 
user559633
:)
 
4:22 PM
@DSM, try this one. Now the create_line commands get executed in the main thread, which hopefully will appease Tk.
"Works on my machine" approved
It's always interesting to have a valid reason for double parentheses: drawRoutine.pending_calls.get()()
 
DSM
Hooray! This one works. In fact, it even works under pypy for added speed!
 
Whoops, I regressed back to the version that flickers when you move the slider. Updated again.
Desired features for v2:
- remove useless "cancel" button from export pop-up
- 3.X support
- color/BW toggle
- "draw squares only at depth `___`" option
- toggle to draw branches in random order (while still being BFS)
I wonder if I could do "save as BMP" without any external libraries.
 
4:37 PM
I'm sure you could, but do you have that kind of dedication for header-writing tedium?
 
I did once as a young'un
Looks like I can save as .ps but not .bmp. So it goes.
(Ideally I would prefer png, but I knew that was out of the question)
 
omg
I solved my problem
After like a week
I feel so stupid, I had instead of M = E - e*sin(E); M = E + e*sin(E)
 
Hello.
 
Such a silly stupid mistake
 
DSM
Sign errors are always going to be with us. Why are you playing with orbits?
 
4:46 PM
Cause kerbal space program
Oh and I'm studying aerospace engineering.
 
DSM
Ah.
 
wait....you have to perform calculations in kerbal space program?
it's that involved?
 
I always just winged it.
 
@idjaw I don't like overengineering. You should optimize your satellites.
 
I never played it, I'm just impressed that it actually allows for that kind of involvement
Which also means I should stay away...I can see myself getting overly involved in a game like that.
 
4:49 PM
I've now calculated exactly how much time a satellite is in an eclipse around a planet. That way I can also calculate the minimum amount of batteries - and by getting the inverse I can also calculate the amount of solar cells I need.
 
stop it...you're not helping my staying away from the game.
 
Honest question: Does the number of batteries affect orbit time?
I do not know the speed/mass/gravity,altitude formula, and can't even guess if they would affect each other.
 
@QuestionC Nope, since M2 << M1 (satellite is consider to be 0 mass when calculating the orbit)
 
Let's see, the pendulum swings.... something as the mass changes. I know that's a thing.
 
argh..there's a free demo!!
:P
 
4:52 PM
This is in real life also very much true (pressure of solar radiation creates more deviation for example - by a factor 1000).
But in KSP it's actually "true" since it is also only a model
Meh demo is bad nowadays :P
Anyway, I just find calculating fun - making my studies a bit more practical
 
I have a friend who recently got into Kerbal in a big way. It's surprisingly addictive for the right people.
He's not a gamer at all or anything. Type of dude who would spend his weekends fuzz testing routers or something.
 
cbg Robert, haven't seen you on here in a little while. Cheers.
 
bwaah bob stole my cbg
 
5:00 PM
Yoink!
 
I thought you were replying to Robert's cbg! :) haha Hello @AnttiHaapala ! :)
 
Yes, new job is busy
 
cbg @idjaw, @RobertGrant
 
@AnttiHaapala cbg sir
 
I'm delaying the inevitable task I have to complete in PHP....I guess I should just buckle down and get through it so it's over with as quickly as possible. :)
 
5:03 PM
I could never get into KSP myself.
 
user559633
rec.sopython.social :(
 
^^good point
 
Rbrb :)
 
Pretty awesome video of someone's journey in to transitioning from a role in finance to engineering.

https://www.youtube.com/watch?v=XC-Im_kRPxM&feature=youtu.be
 
I didn't really 'get' KSP until I seriously tried orbit. After that the game becomes a nice series of big challenges. It's kind of like one of those idle progress games, but you're not idle.
 
5:36 PM
Hi all.
 
Hi Paulo
 
@Paulo welcome!
 
I may need to do JS today. Keep me in your thoughts.
 
@vaultah I'm cheering for you in the election.
 
I've started writing node apps. Not bad so far.
 
5:41 PM
Unfortunately it is hard to dodge JS, since it is everywhere.
 
Due to vaultah's blank avatar, submitting the vote form without making a selection counts as a vote for him, as does not voting at all.
The dev team is aware of this issue and will repair it "real soon now"
 
A vote for vaultah is a vote for ____
 
user559633
the third person from SOPython to be a general moderator
 
Hm, I'm not sure if this git submodule is working or not... how would you be able to tell?
 
Shouldn't we update the sopython website to include the sopython team?
 
5:43 PM
the .gitmodules has it, but when I run my application it does not find it
 
@PauloScardine thank you, I really appreciate it
 
@BhargavRao ... "a clear white avatar!"? :p
 
/me just finished the stupid automated code golf test from codility.com for a job interview.
 
code golf as a test of ability is a couple steps up from fizzbuzz at least
still well within "you will never need to do this when you actually have the job", but at least you can have some fun with it
 
the problem with codility is that it is automated.
 
5:51 PM
@JonClements Hehe, I meant blank :D
 
I would not mind some code golfing if I was interacting with the interviewer.
It is kind of disrespectful to be judged by a robot because it implies their time is more valuable than mine.
 
@PauloScardine from an employer's point of view though - it filters out the crap first... so the suitable candidates and employer get more/better time to get a feel for each other
 
Devil's advocate: when the number of applicants grows large, it becomes difficult to give each one the time they deserve.
An automated fizzbuzz test will filter out the 90% of applicants that put down Microsoft Word under "programming experience"
 
hmm can I sum a generator without making it first a datastructure?
 
user559633
Consider an awful code-screen experience as an insight into how the company operates.
 
5:57 PM
@paul23 Yeah, pretty sure
>>> g = (i for i in range(10))
>>> g
<generator object <genexpr> at 0x00000000029512D0>
>>> sum(g)
45
Yep
And ofc the inline version sum(i for i in range(10)) works as well
 
@tristan you nailed it.
 
user559633
If they really think they have so many applicants that they would rather false-negative than take 30 minutes to screen, then you're either talking with a company that has code-quizzing better figured out than Google or a company that is going to have a very shallow candidate pool in the immediate future.
 
00:00 - 18:0018:00 - 00:00

« first day (1857 days earlier)      last day (3095 days later) »