question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API naming review for LG & Expression

See original GitHub issue

API naming revisit for LG & Expression since it’s going to RC.

Meeting notes from LG sync up:

LG

  • rename LGFile class to LG
  • rename SimpleMultipleLanguageGenerator to MultiLanguageLG
    • move MultiLanguageLG to LG package
    • MultiLanguageLG will not implement IGenerator
    • update the interface to accept a locale instead of turnContext so that it don’t depends on bot.builder package
    • implement a default fallback policy (en-us => en => “”)
  • move ActivityFactory into MessageFactory with a new method FromObject
    • Message/ActivityFactory will not depends on LG package
  • rename EvaluateTemplate method to Evaluate
    • rename Evaluate method to EvaluateText
  • let LGParser accept an expressionEngine

Expression

  • rename ExpressionEngine to ExpressionParser (hint: rename Expresion.g4 with ExpressionAntlr.g4 to avoid conflict)
  • (NOT VALID ANYMORE) move expression builder functions out of expression class itself

others

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Danieladucommented, Feb 27, 2020

name EvaluateText would be confused with evaluate LG file string content.

I was actually very interested at options 3, we could possible do the evaluation natively in expression, by have LG evaluator only inject functions and form a customized expression engine, do you think that’s possible?

Agree with this proposal. So we can put all expression/escape recognization work into expression library.

0reactions
cleemullinscommented, Mar 9, 2020

spoke with @tomlm, and:

yeah, we met, decided on anew names and I’m applying them right now probably an hour or so out, unless I run into issues

Read more comments on GitHub >

github_iconTop Results From Across the Web

Naming conventions | Cloud APIs
Names chosen should describe the API concept clearly (for example: instance of what?) and distinguish it from other relevant concepts (for example: does...
Read more >
A Systematic Survey on Android API Usage for Data-driven ...
This review investigates mobile usage and sensor data-driven research using AS/US APIs by categorizing the research purposes and the data ...
Read more >
Getting Started with Niagara Framework® Software Manual
The API (Application Programming Interface) defines how software engineers ... Slot name — every slot is identified by a slot name that is ......
Read more >
55'' 500 nits FHD 0.44mm Even Bezel Video Wall
Get information on the LG 55'' 500 nits FHD 0.44mm Even Bezel Video Wall. Find pictures, reviews, and tech specs for the LG...
Read more >
gprofiler2 -- an R package for gene list functional ...
Differential gene expression analysis determines lists of genes that show changes in expression between different conditions, cell types, time ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found