Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply #18731 again #19349

Closed
jdemeyer opened this issue Oct 5, 2015 · 13 comments
Closed

Apply #18731 again #19349

jdemeyer opened this issue Oct 5, 2015 · 13 comments

Comments

@jdemeyer
Copy link

jdemeyer commented Oct 5, 2015

Some modifications made in #18731 disappeared in #18748. These should be applied again.

CC: @jhpalmieri

Component: build

Author: Jeroen Demeyer

Branch/Commit: 9258278

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/19349

@jdemeyer jdemeyer added this to the sage-6.10 milestone Oct 5, 2015
@jdemeyer
Copy link
Author

jdemeyer commented Oct 5, 2015

Branch: u/jdemeyer/apply__18731_again

@jdemeyer
Copy link
Author

jdemeyer commented Oct 5, 2015

New commits:

5a0c4b0Better error handling in sage-download-file

@jdemeyer
Copy link
Author

jdemeyer commented Oct 5, 2015

Commit: 5a0c4b0

@jdemeyer

This comment has been minimized.

@vbraun
Copy link
Member

vbraun commented Oct 5, 2015

comment:5

Magic string anti-pattern: https://en.wikipedia.org/wiki/Magic_string

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 5, 2015

Changed commit from 5a0c4b0 to 088fdef

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 5, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

088fdefAvoid magic string

@vbraun
Copy link
Member

vbraun commented Oct 5, 2015

comment:7

Its still a magic string. If somebody were to change the magic value to

fastest_mirror = "http:// fastest mirror"

then the program doesn't work any more. Fragile and difficult to follow.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 5, 2015

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

9258278Avoid magic string

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 5, 2015

Changed commit from 088fdef to 9258278

@jdemeyer
Copy link
Author

jdemeyer commented Oct 5, 2015

comment:9

Better like this?

@vbraun
Copy link
Member

vbraun commented Oct 5, 2015

comment:10

The usual pattern is to throw exceptions that have the error message and catch them at the outermost level. Without relying on any local variable being in scope at the exception handler. But its an improvement, at least.

@vbraun
Copy link
Member

vbraun commented Oct 14, 2015

Changed branch from u/jdemeyer/apply__18731_again to 9258278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants