Comments (12)
Comment by corona10
Sunday Feb 05, 2017 at 00:00 GMT
@trotterdylan Thank you for great and awesome review. I will try to fix it.
from grumpy.
Comment by corona10
Monday Feb 06, 2017 at 03:59 GMT
@trotterdylan Updated! I fixed codes as you commented. Actually, about using grumpy.File object is not 100% same as you intended. I found the simpler way.
And I add unit test code, but it should be improvement later time. I wish other guys could improve this unit test to check user's input and function's output. Unfortunately, In now time, this is out of my ability.
PTAL
from grumpy.
Comment by corona10
Tuesday Feb 07, 2017 at 04:07 GMT
@trotterdylan A lot of stuff!! I will do it as your comment. Thanks
from grumpy.
Comment by corona10
Thursday Feb 09, 2017 at 22:47 GMT
@trotterdylan Updated!! Please take a look.
from grumpy.
Comment by corona10
Monday Feb 13, 2017 at 20:36 GMT
@trotterdylan Updated. PTAL
from grumpy.
Comment by corona10
Tuesday Feb 14, 2017 at 07:53 GMT
@trotterdylan Updated.
p.s Can I get good materials to know when to use defer
? I'm just using it as finally
statement.
from grumpy.
Comment by trotterdylan
Tuesday Feb 14, 2017 at 20:47 GMT
@corona10 re: defer: It can be used like finally. But, like finally, it's only really useful if there are multiple possible paths for exiting the function or an exception (panic in Go) is raised. In this case, a panic is a fatal error so it doesn't really matter if we close things. The only time it's really important to run some code in the case of panic is if the panic may be handled somewhere (for the most part in the Grumpy code, we assume panic is fatal) or if you need to release some resource even in the event of a panic. Sometimes mutex falls into this category because it can otherwise cause a deadlock if not released. It's also good to guarantee that temp files are cleaned up. But otherwise, the possibility of panic is not usually a good reason to defer.
from grumpy.
Comment by corona10
Thursday Feb 16, 2017 at 01:48 GMT
@trotterdylan Thank you for review and great guide! I updated it and please take a look. Thanks to you, I learned about how Go works.
from grumpy.
Comment by corona10
Friday Feb 17, 2017 at 22:18 GMT
@trotterdylan Updated!! PTAL
from grumpy.
Comment by corona10
Sunday Feb 19, 2017 at 00:44 GMT
@trotterdylan Thank you for reviewing long days :-)
from grumpy.
Comment by pombredanne
Thursday Mar 02, 2017 at 10:42 GMT
@corona10 very nice :)
from grumpy.
Closing as this was imported by mistake. Already closed on google#233
from grumpy.
Related Issues (20)
- Unvendorize python-parser
- Wrong exception AttributeError on `from foo import wrongmember`
- Could not compile on 16.04.5 LTS Xenial Xerus (Was: How to transcompile python code that have logging or psutil libraries imported.) HOT 12
- Update README with new install instructions HOT 3
- Fix the CI: `.../golang/lint/golint expects import "golang.org/x/lint/golint"` HOT 1
- Check stability of `sorted()` code HOT 1
- Include __future__ information on Code, allowing `division` future to be implemented
- Cannot import module `struct`: Is a Golang reserved word
- Need a tutorial for running and transpiling youtube-dl HOT 5
- Python 3 support HOT 7
- I cannot run the binary built from the Go code generated by Grumpc HOT 1
- pip installation "grumpy compile" is not working HOT 3
- 0.3.0 release on pypi HOT 4
- Rebuild tool for automated refactoring HOT 3
- grumpy not found after installed (on Arch Linux) HOT 1
- how to use externs or interop for go code? HOT 5
- how to transpile python project with local modules? HOT 1
- not all go modules works HOT 10
- Support installing grumpy-runtime in editable mode
- Rename grumpy-tools to grumpy-cli
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grumpy.