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.

Issues on introduction to project

See original GitHub issue

It is great project, this is very cool that it has so many abilities, though common use of factories usually is simple, like:

factory.define('post', Post, {
    title: 'Втащили по клюву!',
    rate: 2
});

And when you look at readme - it looks overcomplicated I think, many people may stop at this point and then try to look for alternatives.

It would be more friendly to have first example simple - to show, that it is really proper tool for factories. (Programmer would use ORM itself for populating database, if he wouldn’t look for simplicity)

Like here - first example shows only essentials: https://mochajs.org/ And reader understands - that’s easy tool for testing.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
simonexmachinacommented, Mar 6, 2017

Okay, thanks for the reminder. Have done.

1reaction
simonexmachinacommented, Jan 22, 2016

Yes, it’s the ObjectAdapter. It uses var post = new Post(), post.save() and post.destroy().

var Post = function() {};
Post.prototype.save = function() {};
Post.prototype.destroy = function() {};

factory.define('post', Post);
factory.setAdapter(new factory.ObjectAdapter());
Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Common Project Management Challenges - Monday.com
With projects, some struggles are more common than others, including issues regarding scope, budget, communication, and more.
Read more >
Introduction to the 8 Biggest Project Problems - TruStory FM
Project Problem 8: Project Managers are Passive · Project Problem 7: Changes are Not Controlled · Project Problem 6: Responsibility is Unclear.
Read more >
9 Project Management Challenges and How to Overcome ...
Another common project management challenge is the lack of clear project goals and misalignment between goals and core business objectives. This ...
Read more >
Resolving four key issues facing the project management ...
The key issues facing today's project management community revolve around: 1) Ensuring Project Success, 2) Preventing Project Failures, 3) Enhancing Project ...
Read more >
10 Project Management Challenges and How to Conquer Them
Poor communication can lead to significant project management problems. Project managers must provide direction at every step of the project, so ...
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