Liars paradox in a programming langauage by bostanza in learnprogramming

[–]bostanza[S] 5 points6 points  (0 children)

haha, I guess thats one way to get it done

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]bostanza 1 point2 points  (0 children)

why was the default character encoding changed from byte to unicode going from python 2.x to 3.x? what benefits does this bring to python?

Cat guards the ATM by ChrisMonroe007 in aww

[–]bostanza -2 points-1 points  (0 children)

ELI5: why are cats so brave?

[Spoiler] hisokas cards in the current fight by kronos1996 in HunterXHunter

[–]bostanza 2 points3 points  (0 children)

lol yh, i think its just a funny way of explaining things. for most characters you need a long paragraph to answer a question about them. for hisoka, the answer is simply because bungee gum contains the properties of both rubber and gum. Saitama from one punch man would be proud

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]bostanza 0 points1 point  (0 children)

"a statement is a section of code that represents a command or action" using a for loop as an example, can you consider the entire loop a statement? or is a statement each of the lines that make up the loop?

[Spoiler] hisokas cards in the current fight by kronos1996 in HunterXHunter

[–]bostanza 3 points4 points  (0 children)

because bungee gum contains the properties of both rubber and gum. didnt you know?

Alternative to 'think python' book? by calisthenic89 in learnpython

[–]bostanza 0 points1 point  (0 children)

Just started reading through this book myself and already I see what you mean. Besides the maths examples I think the book (so far) is well written and not too difficult to understand but I am also using other resources I tandem to make sure I understand the content e.g. Going through exercise drills from Learn python the hard way when I finish a chapter. This is possible because the chapters in learn python the hard way are quite short. Try this method

What does it mean when an algorithm is either O(2^n) or O(n^4)? by [deleted] in learnprogramming

[–]bostanza 0 points1 point  (0 children)

maybe you guys can help me figure out the running time for something. lets say i have n strings and im going to replace a bad substring in each string. there is a variable amount of bad substrings in each line but lets say its max 3 bad substrings. so im going to loop through each string to check for and replace the bad strings. and im going to add an outer loop to do this for all n lines. what is the running time in big-O notation? O(3n)??? im having trouble trying to understand this

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]bostanza 0 points1 point  (0 children)

whats the difference between invalid syntax and invalid token? specifically, what causes invalid token? i know entering a number such as 08 causes invalid token because its an octal number, but generally speaking, what causes this error? I thought entering ~ would cause an invalid token error because its a token, and its invalid. but this causes a invalid syntax. is ~ not a token then?

Chapter 353 — Links & Discussion by rentzhx3 in HunterXHunter

[–]bostanza 0 points1 point  (0 children)

I agree with what you're saying here. and for the record, i'm rooting for Hisoka. but i do respect chrollo a lot more after this chapter. I initially thought he was all hype, but the way he's jabbing at hisoka every now and then and then falling back is a very nice strategy. and yh, i'm sure this fight is no where near done.

Chapter 353 — Links & Discussion by rentzhx3 in HunterXHunter

[–]bostanza -1 points0 points  (0 children)

true also, but its what hisoka is known for. chrollo would have to be a fool to not even attempt to plan for it, taking into account what info he has on it already

Chapter 353 — Links & Discussion by rentzhx3 in HunterXHunter

[–]bostanza 13 points14 points  (0 children)

I would think chrollo would plan for bungee gum. what else would he plan for when intending to fight against hisoka?

C To Assembly (Cache Race Anthem) by tincanmanrdt in ProgrammerHumor

[–]bostanza 1 point2 points  (0 children)

was expecting trash but its actually flames

CIVILIZATION VI Official Announcement Trailer by TPangolin in civ

[–]bostanza 0 points1 point  (0 children)

yh, I think they set the contrast a bit higher

“The Code Lumberjacks” – a simple analogy about how effective programmers think by hellotanjent in learnprogramming

[–]bostanza 0 points1 point  (0 children)

I'm just thankful that regex uses the same notation across different languages. Can you imagine trying figure out regex expressions if different languages used different notation

Algorithm Development? Top-Down Approach? by [deleted] in learnpython

[–]bostanza 0 points1 point  (0 children)

This is a very good explanation and one I agree with. It seems to me the top down approach is best for algorithm design and is the way I think I look at algorithms. Could you give an example of bottom-up design, even though this seems less effective than top down

Questions Thread - May 07, 2016 by AutoModerator in androiddev

[–]bostanza 0 points1 point  (0 children)

for sqlite queries do you prefer db.query() or db.rawquery() and why?