René's URL Explorer Experiment


Title: Misleading example [Factory Pattern] · Issue #52 · zoltantothcom/Design-Patterns-JavaScript · GitHub

Open Graph Title: Misleading example [Factory Pattern] · Issue #52 · zoltantothcom/Design-Patterns-JavaScript

X Title: Misleading example [Factory Pattern] · Issue #52 · zoltantothcom/Design-Patterns-JavaScript

Description: The example of factory pattern is misleading. Although the definition says, Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses. ...

Open Graph Description: The example of factory pattern is misleading. Although the definition says, Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a c...

X Description: The example of factory pattern is misleading. Although the definition says, Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a c...

Opengraph URL: https://github.com/zoltantothcom/Design-Patterns-JavaScript/issues/52

X: @github

direct link

Domain: Github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Misleading example [Factory Pattern]","articleBody":"The example of [factory pattern](http://designpatternsgame.com/patterns/factory) is misleading. Although the definition says, \r\n\r\n\u003e Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.\r\n\r\nBut the example doesn't use any subclasses at all. Whereas, [Addy Osmani's example](https://addyosmani.com/resources/essentialjsdesignpatterns/book/#factorypatternjavascript) explains it pretty well.","author":{"url":"https://github.com/kshirish","@type":"Person","name":"kshirish"},"datePublished":"2019-04-29T06:58:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/52/Design-Patterns-JavaScript/issues/52"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e82db60a-77e8-5536-ed51-7f91f0eaee3b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D94:10EC7:43B445:5CDC13:6A626E68
html-safe-nonce82b1cab2e38c24e141433e6ca36f242fabdaeee853c15ffc0e277d1f08104cd6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDk0OjEwRUM3OjQzQjQ0NTo1Q0RDMTM6NkE2MjZFNjgiLCJ2aXNpdG9yX2lkIjoiNDAyNjQ0NzM1NTQ4MzE1NjA3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca2f62c56d8d6afd8b08f2bf87bc9f89b45cbf30e983ac47caffba64452cf148a
hovercard-subject-tagissue:438173461
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/zoltantothcom/Design-Patterns-JavaScript/52/issue_layout
twitter:imagehttps://opengraph.githubassets.com/945556bcdbd96433c695b2603be5750c0d36ef3e444417229ca4745344856b90/zoltantothcom/Design-Patterns-JavaScript/issues/52
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/945556bcdbd96433c695b2603be5750c0d36ef3e444417229ca4745344856b90/zoltantothcom/Design-Patterns-JavaScript/issues/52
og:image:altThe example of factory pattern is misleading. Although the definition says, Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekshirish
hostnamegithub.com
expected-hostnamegithub.com
None19769ef9d383a84eeab48bb9b309078c20f4532b73eae2f9713b18406513e0ad
turbo-cache-controlno-preview
go-importgithub.com/zoltantothcom/Design-Patterns-JavaScript git https://github.com/zoltantothcom/Design-Patterns-JavaScript.git
octolytics-dimension-user_id248356
octolytics-dimension-user_loginzoltantothcom
octolytics-dimension-repository_id166296001
octolytics-dimension-repository_nwozoltantothcom/Design-Patterns-JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id166296001
octolytics-dimension-repository_network_root_nwozoltantothcom/Design-Patterns-JavaScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release76dc6b11f13eaeec1329217c9f16c262ade27a1e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/zoltantothcom/Design-Patterns-JavaScript/issues/52#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fzoltantothcom%2FDesign-Patterns-JavaScript%2Fissues%2F52
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fzoltantothcom%2FDesign-Patterns-JavaScript%2Fissues%2F52
Sign up https://Github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=zoltantothcom%2FDesign-Patterns-JavaScript
Reloadhttps://Github.com/zoltantothcom/Design-Patterns-JavaScript/issues/52
Reloadhttps://Github.com/zoltantothcom/Design-Patterns-JavaScript/issues/52
Reloadhttps://Github.com/zoltantothcom/Design-Patterns-JavaScript/issues/52
zoltantothcom https://Github.com/zoltantothcom
Design-Patterns-JavaScripthttps://Github.com/zoltantothcom/Design-Patterns-JavaScript
Notifications https://Github.com/login?return_to=%2Fzoltantothcom%2FDesign-Patterns-JavaScript
Fork 35 https://Github.com/login?return_to=%2Fzoltantothcom%2FDesign-Patterns-JavaScript
Star 606 https://Github.com/login?return_to=%2Fzoltantothcom%2FDesign-Patterns-JavaScript
Code https://Github.com/zoltantothcom/Design-Patterns-JavaScript
Issues 2 https://Github.com/zoltantothcom/Design-Patterns-JavaScript/issues
Pull requests 47 https://Github.com/zoltantothcom/Design-Patterns-JavaScript/pulls
Actions https://Github.com/zoltantothcom/Design-Patterns-JavaScript/actions
Projects https://Github.com/zoltantothcom/Design-Patterns-JavaScript/projects
Security and quality 0 https://Github.com/zoltantothcom/Design-Patterns-JavaScript/security
Insights https://Github.com/zoltantothcom/Design-Patterns-JavaScript/pulse
Code https://Github.com/zoltantothcom/Design-Patterns-JavaScript
Issues https://Github.com/zoltantothcom/Design-Patterns-JavaScript/issues
Pull requests https://Github.com/zoltantothcom/Design-Patterns-JavaScript/pulls
Actions https://Github.com/zoltantothcom/Design-Patterns-JavaScript/actions
Projects https://Github.com/zoltantothcom/Design-Patterns-JavaScript/projects
Security and quality https://Github.com/zoltantothcom/Design-Patterns-JavaScript/security
Insights https://Github.com/zoltantothcom/Design-Patterns-JavaScript/pulse
Misleading example [Factory Pattern]https://Github.com/zoltantothcom/Design-Patterns-JavaScript/issues/52#top
https://github.com/kshirish
kshirishhttps://github.com/kshirish
on Apr 29, 2019https://github.com/zoltantothcom/Design-Patterns-JavaScript/issues/52#issue-438173461
factory patternhttp://designpatternsgame.com/patterns/factory
Addy Osmani's examplehttps://addyosmani.com/resources/essentialjsdesignpatterns/book/#factorypatternjavascript
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.