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.

[Discussion] We should start implementing class based module

See original GitHub issue

Hey Mohit here,

I think it’s high time that we should start writing our scripts in the form of class so that the user can directly import the script and use it instead of running the whole file.

I know that it will take time to shift to this pattern but we should start it in near future as it will be required as codebase will increase.

for example:

import abc_script from RottenScript

abc_script(rows = 2, ....)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
HarshCaspercommented, Jul 22, 2020

That is a brilliant suggestion here @mohitacecode

I saw a similar proposal from @Sanketwable who has worked a lot on integrating Go Scripts with this Project. I would love to see a proposal coming up to be able to achieve this.

1reaction
vybhav72954commented, Oct 15, 2020

@HarshCasper WHy don’t we modify the guidelines a bit? That for experienced programmers, they can already start using of Object-based programming. This way in the future if we try to implement this idea, it would be easier for us. Moreover, we can link a script in the guidelines as well which follows a similar approach, this was we can also give them a static demo of how a script shld look like.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Classroom Discussions Module Facilitator Guide - TN.gov
The goal of this module is to provide you with the knowledge, tools, and resources that will help you implement practices around classroom...
Read more >
Examples of Module Structures - Vanderbilt University
Let's look at a few examples of how to structure an online course module. There is no perfect module structure, and even when...
Read more >
Module Templates vs Module Classes - Emerson Exchange 365
I am looking for users out there that have opinions on class based modules vs module templates and if anyone out there has...
Read more >
Discussions - Eberly Center - Carnegie Mellon University
What questions will I pose to spark or guide discussion? to encourage deeper analysis? Will I open the discussion to the entire class...
Read more >
Online Course Module Structure
Even when courses are designed and taught by the same person, they will typically use a somewhat different module structure based on the...
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