« first day (980 days earlier)      last day (3036 days later) » 

11:00 PM
Lots of new people lately.
 
I had a question for @Quill...how important do you think PEP8 is?
 
Very.
 
@Hosch250 It's at 100 now.
 
It really helps with readability.
@Mast Good.
 
@TanMath I agree with @Hosch250 it's very important. In Python, it's one of the most important rules.
Although I've seen companies relieving themselves of the 80 character limit.
 
11:01 PM
I don't agree with everything, but for most of it, I do.
 
That ^^
 
Also, I don't think it is too bad if just a couple rules are broken, but your code is clear and readable.
 
@Quill didn't make a big deal about my code not being in PEP8 format...
 
And the parts I don't agree with there are other parties who do. If I want my code to be readable for them as well, I'll still comply with the full PEP8.
 
Only PEP8 fanatics would complain at that point.
 
11:02 PM
@Hosch250 you sure? cause in the h Bar they were making a big deal my code is not in PEP8...
 
And new users are often given the benefit of the doubt. Unless you want to be scrutinized fully.
We can and will do that.
@TanMath h Bar?
 
@TanMath Depends how many, and which, rules were broken.
@Mast Physics chat, I think.
 
yes... physics chat
@Hosch250 they were making a big deal about the import *
 
Oh, yes, that's quite bad practice.
 
Yeah, you should only import what you need.
 
@TanMath That's not a CR question.
 
@Mast that is the code we are discussing but...
 
@Hosch250 Or at least import x as y, so you don't pollute the namespace.
 
If you have a good reason, like you would literally have to import every module anyway, you should make a note of it.
 
here is the question if you really need it:
1
Q: Open quantum system modelling

TanMathI have been working for a long time now on modelling an open quantum system using the Lindblad Equation. The Hamiltonian is the following: However, two other matrices are added to the Hamiltonian. One of them has all the diagonal terms equal to -33.3333i and everything else zero. Another is a ...

 
11:05 PM
At that point, though, you should probably split the file up.
 
Oh, yea, 3 counts of import *
 
@TanMath correctly following PEP8 is a given in Python for most people, but I figured you'd rather hear about the how to work on the massive execution time rather than syntax
 
That would instantly raise red flags here.
 
@Quill i know.. but see hereL
 
@TanMath however, in future, to check your code against PEP8 for most but not all of the PEP8 points, you can use PEP8Online
 
11:06 PM
@TanMath Closed as off-topic.
 
@Mast i know, so?
 
@TanMath That makes it explicitly off-topic at Code Review
You make it work, we'll scrutinize it.
 
in The h Bar, yesterday, by DanielSank
A few other notes, @TanMath the code doesn't even adhere to basic python style guidelines. Many experienced (i.e. potentially helpful to you) programmers won't even begin to look at code that doesn't adhere to basic style rules.
@Mast I KNOW!
 
@TanMath And that's where they're wrong for Code Review. We'll take awful code, as long as it runs.
Runs as intended.
If it doesn't work as intended, we don't do it.
It doesn't have to be pretty, but it does have to work.
 
@Mast so it is not a big deal here?
 
11:09 PM
@TanMath As long as it runs.
 
ok...
 
There are a couple of 'how to post a good question' questions on our meta as well.
11
A: Checklist for how to write a good Code Review question

Simon ForsbergSimon's Guide for posting a good question There are a lot of questions that appear on Code Review, and all questions are fighting for reviewer attention. This is a non-exhaustive list of items that I am looking for in a Code Review question when determining whether or not I should review it and ...

41
Q: How to get the best value out of Code Review - Asking Questions

rolfl I have a project I am working on, and I would like some, or all of it reviewed, how can I ask for this review on Code Review in a way that produces the best possible value? This is not about a question being on-topic, or off topic. Rather, this is about making on-topic questions great qu...

 
@Mast we had a large conversation on this yesterday
 
Etcetera.
 
It seems that DanielSank won't help until I fix the PEP8 or something...
 
11:10 PM
Search PEP8 on Google and read it
 
And he doesn't believe the problem with the code is the physics
 
@Quill That's not constructive.
@TanMath If you make it work, we'll make it shine.
 
But you need to make it work.
 
He had a like 3 hour execution time so he couldn't debug, and thanks to @Phrancis he got it down quite a bit
 
11:11 PM
Perhaps with the work of SO, but we don't do in broken code.
 
Can an RO move this to Maths Is Hard please
 
Don't.
It's about what's on-topic on this site and what is not.
Site business.
 
yeah... we should have been talking in Maths is hard
 
Anyway, I was just about to leave.
 
@Mast I disagree... It is mainly about my code... Maths is hard is the room for hard...
@Mast bye then!
 
11:13 PM
If you got your code working, feel free to ping me. It looks interesting.
 
Catch ya later @Mast \o
 
@Mast sure!
 
@Quill Hah, nobody catches me.
4
 
Because you're the gingerbread man?
 
@Quill what is your experience with physics...
 
11:18 PM
I'm back for a short time.
 
@Quill no, an OutOfMemoryException
or StackOverflowException. Either can't be caught
 
or CodeReviewException? lol
If it were then it would be more topical for the 2nd... :P
 
Personal reminder for @JeroenVannevel: FOSDEM! :D
To all others: Evening!
 
I've been getting my chrome reminders of it on a weekly basis
I've set the next reminder for tomorrow
 
Haha, I thought so, just wanted to make sure :D
 
11:28 PM
bah, I just had an off by one error...
 
Just my guess...
 
@Gustavo6046 Brainfuck? Nah. Java/Groovy
 
I am feeling bad for those that didn't use Brainf*ck just because of the name :/
 
I'm feeling happy for them.
2
 
Fun fact: I never used Brainf*ck so the statement I just said shouldn't be starred.
 
11:37 PM
It's pretty cool, good for studying stacks if you don't know much about them, I guess
 
Fun fact: I knew you never had used Brainf*ck.
 
^^ I guess
 
If you would have tried to do even a simple thing in Brainfuck, such as printing "Hello World!", you would have understood.
 
so many overwhelming fun facts
 
Did I miss the fun fact fest?
@Quill Good for studying stacks? I'm not sure about that...
 
11:41 PM
well better than nothing
or maybe not, actually
it is brainfuck after all
 
hello
is this part of CodeReview?
 
-1
Q: Exchanging substrings

HackerDragonHow do you replace a substring of one variable with a substring of another variable in java? ` for (intCount = 0; intCount < intlength; intCount++){ strSubstring = strHidden.substring(intCount2, intCount2 + 1); strword2 = strWord[intRand].substring (intCount2, intCount2 + 1)...

 
Hi @Beko. Yep
 
Thx. I have a question to ask. Let me explain
 
Go ahead :)
 
11:52 PM
I'm currently in some kind of dip, not knowing what to do, so instead of doing nothing I decided to program a Tic Tac Toe game and see it through
I kind of have an idea of where I want to go
- start with pvp
- add artificial intelligence
- make a GUI
- refine the design, etc
as for the question
 
Sounds like a solid plan
 
I'd like to have my code reviewd after each step ...
is it OK to provide the code in form of a .zip?
 
Well, CodeReview is aimed for reviewing code that works.
I believe you can still review after each step and provide a link to the previous question you made in each iteration to keep track.
However perhaps @SimonForsberg better confirms that
I wouldn't use a .zip
 
hmm ok
I thought the text might get too long
 
You should try to show as much of the code as possible. You might add a github page for extra information.
 
11:56 PM
ok, I guess I'll have to learn to use github as well then
 
That's definitely not time wasted ;)
GIT is awesome
and extremely useful.
 
Should I use it from the console, or from Eclipse?
 
BTW, this seems to be the rule: Your question must contain code that is already working correctly, and the relevant code sections must be embedded in the question. Please avoid stripping out key details that may be relevant to the review.
 
Ok, thanks. That's good to know
 
You can use both. Eclipse normally has some fancy/easy way to do it if you manage to setup the plugin
 
11:58 PM
So basically I'll have to provide it all :D
 
I'm used to doing it in the console.
 
I should probably learn that first
 
If you got 15 spare minutes, you can learn git ;)
 
Yeah, I'll get right into it
Thanks for your help
 

« first day (980 days earlier)      last day (3036 days later) »