« first day (1574 days earlier)      last day (3367 days later) » 

6:00 PM
the "test" means the toplevel expression possible
 
tuples? Yeah, commas define them, parentheses are required where it would otherwise be ambiguous what is tuple and what is another meaning for a comma.
like in a function call func(('tuple',)).
 
In all seriousness, how often do you initialize an empty set compared to an empty dict? I understand the choice.
 
user2555451
<> can't make a set because then {1,2,3} would seem weird. Why not <1,2,3>?
 
DSM
That syntax looks tuplish to my C++ eyes.
 
@iCodez I meant to imply changing the braces used to represent sets entirely
But it was mostly a joke.
 
6:02 PM
but why is *args a list? when it gets its arguments from fn(1,2,3)
 
Trying to puzzle out whether allowing <1,2,3> would create potential ambiguity with the greater/less than operators
 
@MartijnPieters
It seems strange that the comma's would define the data structure ...
wow this is alot of discussion from a relatively simple question :P
 
*args is not a list
 
ahh ... ok your probably right :P I havent checked recently :P
 
Relatively simple topics generate more discussion, because each room member is more likely to be qualified to discuss it.
 
6:05 PM
ahh yeah @AnttiHaapala you are definatly right ... thats a tuple ... bah foot in mouth :P
 
actually I am pretty sure of it
the grammar specification cannot deduce if something is a tuple or not
the parser needs to check from the parse tree again if it has , or not in (foo,)
 
That's an interesting point, it means that foo((1,2,3)) is actually not quite an exception to the rule, it's just nested?
 
so that begs the question is [1,2,3,4] interpretted under the hood as list(tuple((1,2,3,4)))
 
tuple((1,2,3,4)) is uh
a bit odd
 
redundent ... but yeah
 
DSM
6:08 PM
Who knows? Maybe someone typed tuple = max earlier.
 
i thought about tuple([1,2,3,4]) but that didnt seem good either ... anyway I think you all understand what im asking
 
Yeah, yeah
 
testlist_comp: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] )
 
I think all tuples and parenthesis expressions will match this
 
6:09 PM
probably ... grammars make my head explod
 
and there you have "an extra comma is allowed but not necessary"
 
reduce-reduce error
 
cbg
 
atom: ('(' [yield_expr|testlist_comp] ')' |
'[' [testlist_comp] ']' |
'{' [dictorsetmaker] '}' |
NAME | NUMBER | STRING+ | '...' | 'None' | 'True' | 'False')
 
I would expect that [1,2,3,4] doesn't "call" list but is more like an alias to the same "under the hood" implementation?
 
6:13 PM
@puredevotion it's "government open source" which means that if I push hard enough and people do a lot of paperwork it will eventually be made public
 
haha
 
Given my inexperience, maybe s/expect/guess/
 
DSM
@AirThomas: the four constants are loaded and then the BUILD_LIST primitive is called.
 
[1,2,3,4] ofc does not call list
 
hmm joran your method gave me this output.
00 b'31362c0d0a31372c0d0a31382c0d0a31392c0d0a32302c0d0a32312c0d0a32322c0d0a32332c0d0a32342c0d0a32352c0d0a32362c0d0a32372c0d0a32382c0d0a32392c0d0a33302c0d0a33312c0d0a302c0d0a312c0d0a322c0d0a332c0d0a342c0d0a352c0d0a362c0d0a372c0d0a382c0d0a392c0d0a31302c0d0a31312c0d0a31322c0d0a31332c0d0a31342c0d0a31352c0d0a' 00
 
6:15 PM
@davidism I'm really interested in plugin-like sources, but I guess if I google hard enough it shouldn't be too difficult to figure it out.
The include blueprints from a seperate plugins folder should be a good start...
 
it didnt apply the padding to the file, here's the code i used.
anim_1 = (r'res/textures/blocks/fire_0_anim.txt')
with open(anim_1, 'rb') as anim_1_:
anim_1_read = anim_1_.read()
anim_1_hex = binascii.hexlify(anim_1_read)
anim_1_len = len(anim_1_read)
print (("fire_0 animation length is %s") % (anim_1_len))
anim_1_write = (" 00 ".join(str(anim_1_hex) .split())).join(["00 "," 00"])
print (anim_1_write)
 
yes,
atom: ('(' [yield_expr|testlist_comp] ')' |
this is "empty tuple" if neither yield_expr or testlist_comp inside
 
But list(tuple((1,2,3,4))) I would guess builds the tuple first @Joran
 
testlist_comp: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] )
 
user2555451
@JoranBeasley - The commas define a tuple when they are not being used for something else in the language. For example, import os, sys does not make a tuple and neither does [1,2,3]. It is the same for how : makes a slice lst[1:2] and also makes dictionary items {1:2}. Python is just reusing a limited set of keyboard symbols.
 
6:17 PM
this is the rest of "(1,2,3)", "(1 for i in foo)", "(yield from foo)"... crap
 
DSM
>>> dis.dis(lambda: list(tuple((1,2,3,4))))
  1           0 LOAD_GLOBAL              0 (list)
              3 LOAD_GLOBAL              1 (tuple)
              6 LOAD_CONST               5 ((1, 2, 3, 4))
              9 CALL_FUNCTION            1
             12 CALL_FUNCTION            1
             15 RETURN_VALUE
 
the compiler then checks if there is just 1 item and ',' to generate 1 tuple instead of parenthesized expression
blah
 
This is why KS doesn't have tuples at all.
 
but the grammar does not know, even though it could
 
@DSM I should learn how to use dis...
 
6:19 PM
>>> dis.dis(lambda: [1,2,3,4])
  1           0 LOAD_CONST               1 (1)
              3 LOAD_CONST               2 (2)
              6 LOAD_CONST               3 (3)
              9 LOAD_CONST               4 (4)
             12 BUILD_LIST               4
             15 RETURN_VALUE
 
Who the heck upvoted this
 
ofc as it needs to do a new object all the time, vs
>>> dis.dis(lambda: (1,2,3,4))
  1           0 LOAD_CONST               5 ((1, 2, 3, 4))
              3 RETURN_VALUE
 
@Kevin Maybe it reminded them of the Prince of Persia copyright protection
 
Turn to page X of the instruction manual and enter the symbol you see there?
Yeah, seems quite similar :-p
 
Mth word of the Nth line, or whatever it was
They got warm fuzzies and instinctively upvoted
The prosecution has established motive
 
6:23 PM
Googling the book, I think the OP might be quite young. Now I feel bad for the downvote brigade.
 
DSM
I don't approve of moving "syntax error" into SyntaxError in edits. I've seen people write "syntax error" when really it's a NameError, and they think "syntax error" is "a problem with my code".
 
yes
coding club is for python 3
 
@ joran So i removed the bit making the 00 padding from the beginning and it return this error.

anim_1_write = (" 00 ".join(str(anim_1_hex) .split))

Traceback (most recent call last):
File "C:\Users\Death_Dealer\Desktop\Data.py", line 4359, in <module>
anim_1_write = (" 00 ".join(str(anim_1_hex) .split))
TypeError: can only join an iterable
 
20 rep to go......
 
@Death_Dealer, split needs parentheses: split()
 
6:30 PM
@AdamSmith just give 2 your best answers here and I upvote :D
 
@AnttiHaapala Gasp, FRAUD!
:)
 
@Death_Dealer " 00 ".join(anim_1_hex.split())
 
hmm it print but still doesnt apply padding. : /
b'31362c0d0a31372c0d0a31382c0d0a31392c0d0a32302c0d0a32312c0d0a32322c0d0a32332c0d0a32342c0d0a32352c0d0a32362c0d0a32372c0d0a32382c0d0a32392c0d0a33302c0d0a33312c0d0a302c0d0a312c0d0a322c0d0a332c0d0a342c0d0a352c0d0a362c0d0a372c0d0a382c0d0a392c0d0a31302c0d0a31312c0d0a31322c0d0a31332c0d0a31342c0d0a31352c0d0a'
 
done
waaa?
you got dvs?
i upvoted you at 9990 and you got 9994
 
@Death_Dealer, I'm guessing your input string doesn't really look like "31 36 2C 0D 0A" etc, as originally appeared to be the case.
 
6:32 PM
 
See my above message regarding "garbage in, garbage out"
 
I gave him another upvote to put him at 9999 for that cliffhanger feel
 
This also teaches an important lesson about accepting help from strangers on the Internet: don't say "wow, thanks for all your help :-)" before you actually test the code to confirm that it does what you need ;-)
 
@Death_Dealer .... not posting your real input will get you no-where ... it will also annoy people trying to help you
 
@joran my input is a file.
 
6:33 PM
it clearly does not look like what you posted
 
@AdamSmith you're in a downvote spree eh?
 
i posted this..anim_1 = (r'res/textures/blocks/fire_0_anim.txt'), pluss the rest of the code above.
 
do this for me print(repr(open("my_file.txt").read(50)))
 
do i need to post the contents of the txt also?
 
user559633
6:35 PM
unexpected accepts are the best
 
@Death_Dealer no you posted how do I change "a0 b1 33" to "a0 00 b1 00 33" ... you clearly do not have spaces seperating your input
or something like that
no just print the repr
and paste it here
 
cbg! to all!
 
the .join() method worked but it split the bytes values and applyed padding inbetween the values like this "a0 b1 33" "00 a 00 0 00 b 00 1 00 3 00 3"
 
user2555451
cbg @KasraAD.
 
6:39 PM
@joran im sorry but im not sure what you mean but i dont have spaces in my input. there are clearly three spaces in the example you wrote. and its fairly identical to my example question.
 
Are we still talking about this question?
1 hour ago, by Death_Dealer
How would i go about using .join() to fill a string with null hex value's (padding)
"39 89 5c 89"
to
"00 39 00 89 00 5c 00 89 00"
 
I see 9994
 
if the next thing you post isnt the repr of your input im just gonna go and give up on helping you ...
 
because those look like spaces to me...
 
A multiple-choice question where the Nth answer is "none of the above" and the N+1th answer is "all of the above"... and "all of the above" is correct -__-
I am starting to question whether this site is truly "The ultimate place for testing what you have learned"
 
6:41 PM
@AdamSmith wtf
 
@AirThomas heh sounds dodgy
 
@JoranBeasley Same site that prompted the tuple discussion
 
@AirThomas Reminds me of my any(all( construction yesterday
 
@AdamSmith did you hit the reputation recalculation url?
stackoverflow.com/reputation
 
Im curiouse how all and none are both true ... unless maybe its empty
 
6:42 PM
** rep today: 245
** rep this week (2015-02-01 - 2015-02-07): 531
** rep this month (2015-02-01 - 2015-02-28): 531
** rep this quarter (2015-01-01 - 2015-03-31): 1343
** rep this year (2015-01-01 - 2015-12-31): 1343
** rep from bonuses: 100
** total rep 9994 :)
 
DSM
Working with a bytestring which looks like b'31362c0d0a31372c0d0a31382c0d0a31392` doesn't make much sense. That's a bytestring whose bytes are ascii hex representations, which suggests some deep confusion about the difference between bytestrings, strings, bytes, hex representations, and possibly a few other things.
 
I'm rep-capped I think
 
Maybe "all of the above" and "none of the above" are meta-answers, and each one implicitly means "(all | none) of the above non-meta answers"
 
@DSM he called hexilify on his original byte string i think
 
6:42 PM
In which case, it doesn't matter which one is listed first.
 
@AdamSmith !
 
@AdamSmith aha, so you are! congrats
 
I think you'll overtake me, I lost all interest as soon as I hit 10k :-|
 
@AdamSmith loool :D:D
 
@davidism see also, me at 2k
 
user2555451
6:43 PM
Man, now you got to wait till tomorrow for the 10k. Unless you get an accept of course.
 
me too
@AdamSmith actually,
 
I almost regret not having my edits reviewed any more. Keeps you honest.
 
@davidism Come on, you only need to double your rep to get, uh, whatever it is you get at 20k. Doesn't that sound great?
 
DSM
@JoranBeasley: blek.
 
@AirThomas I could have sworn you had more rep than that.
 
6:44 PM
when you get over 10k, you will want NOT to see all that deleted crap
 
im new XD i dont even know what a repr is, jesus. the supplyed answer's havnt given me the output i want so i asked some other questions here. go ahead and be annoyed and dislike me or whatever.
 
I'm still in the honeymoon period where I think it's funny.
 
@davidism I might have given that impression based on having higher privs on some other sites.
 
@Death_Dealer Learn Python the Hardest Way: kicked
 
But even there, it's because they're in beta and the thresholds are lower
 
6:45 PM
@Death_Dealer Understandable that you don't know about repr, but it's not necessary to know for the purposes of the exercise. We only wanted you to execute the code print(repr(open("my_file.txt").read(50))) and tell us what it says.
 
@Kevin I think someone kicked him
 
Theoretically, this could be done by a user that doesn't know what repr or print or open or read does.
 
@Death_Dealer see what @Kevin wrote
 
Okay, that was a little mean, but a lot funny
 
I told you exactly the code I wanted you to run (replacing my_file.txt with your actual input file)
 
DSM
6:47 PM
If all we want to do is add 0 bytes to a bytestring, why are we using hex as an intermediary? So confusing..
 
@Kevin ok i can do that, easyly thanks foe explaining that.
 
I told you that a while ago
I really want to help... honestly ... but before you can run you gotta crawl man
 
@Death_Dealer This has nothing to do with learning Python, but you might give a better impression if you tried to type more deliberately, such as capitalizing "I".
 
-5
Q: Python Basics number guessing game - SyntaxError

JamesTMPPython Basics Level 1 by Chris Roffey - page 51 - the number guessing game. Typed it up word for word - returns a SyntaxError every time.

 
It's all about communication!
 
6:48 PM
really tried to find that page 51
I tried everything short of actually buying the book
but no
 
where are you getting that input file? @davidism meh none of us are english majors
:P
 
@AnttiHaapala I admire your dedication :-)
 
@Death_Dealer where do you get that input file ?
it is not formated in a very friendly way to work with...
 
My dad was an English major, so by Lamarckian inheritance, I must also be an English major.
 
@JoranBeasley I never suggest that as the only reason, but when you have nothing else going for your basic questions, at least seeming to care enough to speak well helps.
 
DSM
6:50 PM
Or at least a little more English than the norm.
 
@joran I cant stress enough how gratefull i am to you guys for helping me but im new t coding and this site. Gotta give a little lee way here, im learning the internel regulations of this site the hard way: /
 
I spellt evrythign worng
:P\
 
> I can't stress enough how grateful I am to you guys for helping me, but I'm new to coding and this site. Have to give a little leeway here, I'm learning the internal regulations of this site the hard way.
 
@joran im getting it from "res/textures/blocks/fire_0_anim.txt" off my desktop.
 
@Death_Dealer its ok you dont need to apologize ... what you do need to do is run that code and post what it resultss in
 
6:52 PM
Incidentally, I'm considering writing a user script that deletes the space between the end of a sentence and its punctuation.
 
Just trying to figure out if I need to special-case ignore code blocks.
 
@iCodez Quick: someone lob me a softball question so I can FGITW it and get an accept ;)
 
codecs.decode(txt,"hex") is python3 for txt.decode("hex") yeah?
 
user2555451
Maybe go to the tag. That has the lowest hanging fruit.
 
DSM
6:54 PM
232 MB to compile one tex file.. :-/
 
@iCodez I've also searched for [python3] -[python] since most people only follow . Then you answer and retag to include . Bwahahaha
 
print(repr(open("res/textures/blocks/fire_0_anim.txt").read(50)))
Ok this prints.
" '16,\n17,\n18,\n19,\n20,\n21,\n22,\n23,\n24,\n25,\n26,\n27,\n28' "
 
TIL what input does. ...ew.
Is it really just eval(raw_input)?
Or is that an oversimplification
 
DSM
Not any more!
 
6:56 PM
2.x 2.x 2.x 2.x shhhhh
 
16,\n17. Can't say that's what I expected.
 
DSM
After this operation, 558 MB of additional disk space will be used. Added to the 232 MB from before, that's 790 MB.
 
yeah that is not at all what I was expecting ... so how is this becoming a60c43... ?
 
@kevin That is exactly what it printed.
 
6:58 PM
@Death_Dealer we belive you we just dont understand how you got your other string
 
code runs on python 2 and python 3, though it uses input()...
 
I'm guessing there are some additional steps going on between reading the file and trying to do the 00 padding operation thing we've been advising on
 
user2555451
@AirThomas - That's what the docs say: "Equivalent to eval(raw_input(prompt))."
 
@joran i hexlifed the fle.
 
Whoops. Ask a stupid question, get a link to the docs.
 
6:59 PM
anim_1_read = anim_1_.read()
anim_1_hex = binascii.hexlify(anim_1_read)
dont do that
anim_1_read = "\x00".join(list(anim_1_.read() ))
should work to interpolate "00" between the bytes
then you can hexlify it
if you want
 
DSM
@Joran: but it looks like the file itself is basically just a text list of numbers, not bytes, so I'm pretty sure the OP is confused about the goal here (whatever that be.)
 
@DSM I agree
 
@joran I was just writting that:) (hexlify afterwards) thanks ill give that a shot.
 
@Death_Dealer what are you actually trying to do here?
 
-5
Q: Python Basics number guessing game - SyntaxError

JamesTMPPython Basics Level 1 by Chris Roffey - page 51 - the number guessing game. Typed it up word for word - returns a SyntaxError every time.

 
7:01 PM
as @DSM points out this data does not look like raw binary
 
He appears to be trying to open some kind of animation... texture... file... thing.
 
Run the code on Python 3.4.2 and it works
 
im reverse engineering a file type for a game on PS3. Im implementing custom animation with this.
Minecraft:)
 
but its just a sequential range of numbers .... maybe thats the frame to skip to
 
thats the amount of frames in the animation
-
 
7:03 PM
@Death_Dealer I dont think you are going to be able to get this to work ... it seems like you are missing some pieces of the puzzle that makes minecraft animations work
(unfortunately I doubt I can help you with that)
 
@Ffisegydd droid gravity not suspended at least :D
 
it works, already been tested^_^
 
interpollating null bytes I can help with
but I dont think thats all there is to it
 
Specifications for the file format may have already been reverse-engineered. There's a lot of dedicated Minecraft fans with tech backgrounds.
 
anyway afk ... cofee run
I made some mods a few years ago
 
7:05 PM
i have all the other variable taken care of, thats why im trying to hexlify and get the animation byte length.
 
and its why I hate java now
 
DSM
One day, when I'm old and wise, I may understand why it makes sense to want to insert a null byte between the ascii digit "6" and a comma, and between that comma and a newline. That day is far from today.
 
@DSM lol yeah I would have to agree
 
@AdamSmith Whats the problem with your repo????
 
Hey man, if it works it works.
 
7:05 PM
Im the creator of "3D-Craft" and lead developer at "Elite Electronics" for mincraft ps3^_^
 
@KasraAD I'm rep capped -- you can only get 200 rep per day from answer upvotes
 
hmmm no comment
 
^
 
im still a noob:P you guys have helped alot. ill give you guys credit for sure:)
 
And I'm the God-king of KevinScript. It's p. sweet being the top dog of your own project.
 
7:06 PM
Im going for coffee before my brain melts
 
@Kevin candidly: is KevinScript actually a thing, or is it just a running joke?
 
@AdamSmith :( So you need to wait!
 
its a real thing
 
It's a real thing. There's a link in my SO profile :-)
 
he's writing
 
7:07 PM
Version 0.1 available to download and run!
 
@Joran Do you have any published mods?
 
naw I published one a loooooonnnng time ago but im sure its not published anymore and totally broken
 
Back in the early days of Minecraft, I published a hacked client that let you fly around the map. Worked pretty well until they closed the loophole a year later.
 
It was dumb .... it just built stairs down to the bedrock
 
You know what would be great in Minecraft, is stairs that toggle to become a slide. Like those trick/trap stairs you used to see in old cartoons.
 
7:09 PM
My killer feature was "airplane" style ascent/descent. You'd just move in whatever direction you looked. All my competitors had elevator style "hold X to move directly up" controls, which wasn't nearly as cinematic.
 
We have a sopython room server. Kevin built a castle, I built a little town, and then everyone quit.
 
Ya ive gotten the PS3 version stripped down to nothing but .swf's and found out the game is nothing but Action ScriptXD
 
what
?
 
I'm using it to slowly write a Python client. It will never be finished.
 
Im not that great with java, i coded 3d meshs for TP and stuff, its on the forum still.
 
7:10 PM
isnt it java? did they change to swf for consoles? that seems very strange
and not hacky at all :rolleyes:
 
PC Minecraft is all in Java, yeah. I think the PS3 version is a total rewrite.
 
Minecraft computers-within-computers are as impressive as they are useless
 
well, the client can be anything, just has to talk to the server
 
(very and very)
 
ok really goind on coffee run
 
7:11 PM
ya its .swf in the console version. packed into a modified .arc file.
 
DSM
And the full texlive distribution takes another 2GB. Good grief.
 
@AirThomas I agree they are totallyu awesome ... even if ti takes a minute or two to calculate 6*4
 
hacky? whats that?
 
Poorly written; likely to fall apart with the simplest change
 
DSM
Or a type of cough, which starts and stops.
 
7:13 PM
Or a sport played on ice.
 
DSM
Heh.
 
Or a name brand footbag
 
user2555451
Using globals()['name'] = val and thinking you're smart for avoiding exec.
 
Ah, ive been decrypting this file type for some time now. My script can make a functional tp with custom animation in about 3 seconds. thanks to all the help stackoverflow has provided.
 
Ok, the jargon file defines "hack" as "1. n. Originally, a quick job that produces what is needed, but not well." which doesn't necessarily imply "fragile" the way my definition did.
 
DSM
7:14 PM
There are times I inject that way, mostly when I'm setting up things for interactive use in an IPython environment.
 
Theoretically, code could be both hacky and robust
 
@Kevin Yes. It's just not expected.
 
hmm interesting, this has reached the robust side of the scale. Most of the structure of the pack is being replaced with new info.
 
It's like getting hit by lightning and finding a winning lottery ticket in the ambulance
 
The scripts my coworkers use are often iterative hacks, in that they started out as hacks, and people kept adding hacks until the output seemed right
 
user2555451
7:17 PM
I think that was how Java was created...
 
s/Java/PHP/
 
Yes thats exactly what ive done:) alot of trial and error. personally its been worth it.
 
or your-language-peeve-of-choice
 
DSM
I officially added Java to my Careers dislikes the other day.
 
Sounds like the entire code base at my work. Ahahahahaha! ha ha ha. heh...
:-(
 
DSM
7:18 PM
PHP was the other.
 
As fun as it is to grouse about hacked-together code, Getting Things Done is usually better than Not That
 
cbgg
@DSM why the java hate?
 
My personal hurdle to get over is that frigging perfectionism gene
 
there are plenty of programming languages to hate more
 
I need to get more things done with hacky code
 
7:19 PM
Java is a language where "the more you know about it the less you hate it", C++ and PHP are the opposite
 
I figured out a while ago that perfectionism is just an excuse for fear, hesitation, uncertainty, etc. but I have yet to internalize that discovery and Get More Things Done
But to that end, rbrb for a while
 
this is actually the first script ive ever written if you guys could'nt tellXD its 9000 lines and climbing. i didnt know how to use for loops when i started. I will have to go back and clean stuff up. still runs almost instantaneously, without error^_^
 
DSM
@AirThomas: rhubarb!
 
Man, I do this for a living and I don't have the patience to write a 9000 line project.
 
I'm always really disappointed that I lost all my programming work from when I was a kid. All those Game Maker projects from middle school that I never finished. Somehow I lost the directory with everything in it.
I had some really nifty games too.
 
7:24 PM
I miss the Minesweeper AI I wrote in high school :-(
Kevin's bot high score on expert: 13 seconds
 
ya it took me weeksXD then i found out i could have written it in about 500 lines with for loopsXD noob fail..
 
I was pretty well organized from the start somehow, all my projects were under one folder, had a bunch of common scripts I would copy over, etc. No version control though, and my backups were to external hard drives.
 
52 upvotes and no one pointed out that 'print_function' in __future__ does not actually work... should be hasattr('print_function', __future__)Antti Haapala 48 secs ago
 
DSM
tst
 
Optimizing my TI-83+ Snake game loop from O(n) to O(1) complexity was probably my greatest early triumph.
 
7:25 PM
@Kevin re-write it in KevinScript :P
 
Oh yeah, I had a bunch of cool TI-83 programs too. :(
 
Initially, whenever the snake moved, it had to use pixel-getting to follow the body to the tail so it could remove a segment and add it to the head. So the longer your snake was, the slower the game ran.
 
from my highschool times, I still have this platform jumping game written in turbopascal...
 
Ya i use mediafire as a backup for my code, that way i dont loose anything. still got my stuff from way back in the minetest days:)
 
DSM
@AnttiHaapala: or in vars(__future__).
 
7:26 PM
back then I couldn't decide whether to write everything in English or Finnish, and I used 2 space indents, and no comments
 
@Death_Dealer stop that, use bitbucket or github
 
But wait, says younger me, what if I kept a reference to the tail in addition to the head? Thus spawning a much faster algorithm.
 
@davidism I just tried to upvote this comment and couldn't find the arrow.
 
@davidism is that bad or something?
 
It's better than nothing, but worse than github :-)
 
7:28 PM
@Death_Dealer Learning to use source control is a big step towards treating programming as a profession instead of a hobby.
 
DSM
@AnttiHaapala: hey, wait -- hasattr('print_function', __future__) won't work either.
That's backwards.
 
lol :D
 
@AdamSmith well, you can still treat it as a hobby ;)
 
see
the guy did need 52 upvotes :D
and I didnt get any upvotes on my comment :d
 
DSM
To be fair, it was wrong. :-)
 
7:29 PM
@Antti maybe you should just edit the answer?
I upvoted the corrected comment
 
@AdamSmith I see what you mean. i never thought of myself as "professional" or anything with my code. i literally was on codecademy learning my first bit of python like 2 months agoXD
 
@DSM hey, the guy got 52 upvotes with an answer that was wrong :D
@Death_Dealer good, now that you've graduated, don't look back, that site is pretty horrible :D
 
DSM
Okay, time for some Friday svarga. Lunchtime rhubarb for all!
 
Ya.. i dont use it anymore. i still struggle sometimes: / im getting better tho. ive been told by a friend of mine that codes that my stuff i clean so at least i got that going for me:)
 
@DSM A three-month callback? That's impressive.
 
7:36 PM
@AnttiHaapala I'm actually partial to codecademy. I think it teaches a great breadth of knowledge. My only complaint is a lack of teaching on best practices and "How else could you approach this problem" thoughts.
@AnttiHaapala and (like most online programming courses) the stuff is out of date. Last I checked they don't have support for Python3 yet
 
yes, that is what I mean - it does teach lots of stuff... but many of the coding examples are a bit off...
 
@Adam Smith they do python 3, thats where i learned the stuff i know.
 
tip = 15 /100
Oops, try again. It looks like tip is set to 0 intead of 0.15.
@Death_Dealer they don't do python 3
or I am blind
 
back....
they didnt have the donuts I like
 
as a beginner to coding, the site helped me get a grasp on what coding is. The only complaint i have was it cant apply the lessons to an applicable project. The application of the knowledge i obtained there was very difficult.
@AnttiHaapala i didnt learn any 2.X syntax from there. everything i learned works flawlessly in IDLE.
 
7:41 PM
@corvid you finish
 
yes but 15 / 100 is 0.15 not 0 in python 3
 
@JoranBeasley pretty close, needed to fix one PUT request, but time limit came
 
it specifically teaches python 2.5 subset of things
they are not the best practice to teach to any new learner of python since 2008 or so :D
 
It helped me learn the basics, ill give it that. Other than that its garbage i agree.
 
@AnttiHaapala FIVE! SIX! SEVEN! EIGHT!
 
7:45 PM
@corvid when do you hear back?
 
@JoranBeasley not entirely sure, I feel like I submitted a pretty decent chunk of code
 
@AdamSmith you don't really have other things to do than see my chat msg edits :D
 
Must take them a while to review something like that
 
did you provide very clear instructions on launching it and what not? or a link to a running instance?
they may be more interested in function at first and if its overly painful to setup they might not even look at the code
and hopefully you made it very discoverable in terms of UI/UX
 
yeah it's pretty generic interface, easy to set up. Included a setup.py script and everything
 
7:51 PM
how many lines of python? hopefully not many... :P I think most of the work was supposed to be angular
 
probably around 120 lines of python, python is really condensed anyway
 
hopefully you went for more readable over shorter where possible :P
 
tbh flask-restless did almost all the work
 

« first day (1574 days earlier)      last day (3367 days later) »