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.

Consider dropping the `Shopify` prefix from all classes, interfaces, services, etc.

See original GitHub issue

Prefixing every single object in this library with Shopify can make things grossly verbose. For v4 I’m considering removing all of those prefixes, so e.g. ShopifySharp.ShopifyShop would just become ShopifySharp.Shop. C# namespace should already prevent most name conflicts, and for everything else developers can just use namespaces or aliases.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
alecteccommented, Mar 8, 2017

Both are good points. I’m personally anti-prefix but also understand the name clashing is going to happen. For coders using the SS library, you could resort to using an alias directive such as using ShopifyOrder = ShopifySharp.Order or vice versa.

0reactions
nozzlegearcommented, May 15, 2017

Shopify prefixes have been dropped in the 4.0 branch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developer changelog - Shopify.dev
Shopify's developer changelog documents all changes to Shopify's platform. Find the latest news and learn about new platform opportunities.
Read more >
Shopify: How to Change Order Number Format // Add Prefix ...
In this Shopify tutorial, Nick shows how to edit the order number format by adding a prefix and a suffix. By default, order...
Read more >
5 Powerful Web Developer Tools that Increase Productivity
Use these five lesser known web developer tools to increase your development productivity without sacrificing the quality of your work.
Read more >
Implement better environment variables management for ...
https://shopify.dev/beta/hydrogen/framework/secrets If a dev wants to ... As Node environment variables with a HYDROGEN_ prefix (e.g. ...
Read more >
Give me /events, not webhooks
We'd often get requests to retry all failed webhooks in a time period. ... use of no-code glue services like Zapier, IFTTT, Cyclr,...
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