Comments (7)
I would suggest to implement this as a Bean.
from scripts.
Can you give a short example how you would use this then from JS?
from scripts.
Basically no difference to what you suggested. The only point about it is that it would be implemented in Java such that it can be used from all script repositories.
from scripts.
The problem with a Java only solution (i.e. bean) is that we can't use destructuring. This means we would need to use something like:
const Logger = Bean(...);
const log = Logger.create("Zelda");
...
// later on
log.info("Start task x");
...
from scripts.
I do not see a problem with this syntax. Actually, I prefer logger.info
and logger.debug
over just info
and debug
because it makes clear that both belongs to logging.
from scripts.
I'm fine either way.
@qparis, @ImperatorS79, @Zemogiter do you have any preferences?
from scripts.
I prefer the first approach for the same reasons as stated in the OP.
from scripts.
Related Issues (20)
- Update "Total War: ROME 2" script
- Update "Tom Clancy's Rainbow Six 3 : Raven Shield" script HOT 4
- Update "Lego Rock Raiders" script
- "Resource" vs "Downloader" HOT 15
- Epic Games Launcher not working
- Support for Lutris's scripts HOT 19
- Can't login into Steam if virtual desktop is enabled HOT 5
- Are you the one who wrote the scripts for PlayOnLinux for "Microsoft Office 2010" and "Microsoft Office 2013"? HOT 1
- Flatpak PlayOnLinux MSOffice2010 script master branch not working. HOT 1
- Far cry wrong image format
- Cannot install Notepad++ HOT 1
- Add support for dungeon defenders HOT 1
- GitHub actions JSDoc update HOT 4
- mspatcha download link broken HOT 1
- Microsoft office fails to install. HOT 8
- Add Crossfire
- Phoenicis doesn't work on Mac because sortVersions fails to parse json. HOT 10
- verbs checksum mismatch!!! HOT 3
- Game Road Rash installation leads to a Java error HOT 1
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 scripts.