rdnewman / loba Goto Github PK
View Code? Open in Web Editor NEWEasy tracing for debugging. Handy methods for adding trace lines to output or Rails logs.
License: MIT License
Easy tracing for debugging. Handy methods for adding trace lines to output or Rails logs.
License: MIT License
Current module technique may not be appropriate. Perhaps self.ts
instead of Loba::ts
? Research best practices around modules.
instead of just puts
. Might allow more consistent use in non-Rails apps that use the logger too. Since this is not expected to be used in production, integration with app's standard logging is probably overkill.
loba check
quick grep of loba commands in source code base (helpful for seeing if left in)loba clear
quick removal of loba commands in source code base (just wipe all diagnostics out when done)These will affect how environment notes are written...
Once satisfied of readiness, release gem on RubyGems for public use.
Running ruby-prof shows that binding.of_caller
is relatively expensive (though performance isn't overall that bad).
Could perhaps amend Loba::Internal::Value.phrases
to pass a common binding.of_caller
object to calls in Loba::Internal::Value::ValueHelper
which may reduce some of the overhead in initializing its objects. Overall, this could cut the time in Loba.val
perhaps by 50%, though could perhaps make the code a bit more complicated to follow.
Shouldn't it be able to work the same as Loba::ts
?
to temporarily disable logged notices.
Redundant use of Object#to_s
in interpolation.
https://codeclimate.com/github/rdnewman/loba/lib/loba.rb#issue_5689b01133dc3f00010638c7
How much drag does Loba::ts
and Loba::val
introduce? Especially important if left in production code but could skew ts
results if a large percentage of diff is overhead.
There's a syntax challenge when the method name is namespaced?
There is a sample snippet in the main readme that uses a plain ol' Ruby class. Make sure everything works as advertised.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.