René's URL Explorer Experiment


Title: Code Refactoring based on SOLID Principles · Issue #6 · flyworker/java-workshop · GitHub

Open Graph Title: Code Refactoring based on SOLID Principles · Issue #6 · flyworker/java-workshop

X Title: Code Refactoring based on SOLID Principles · Issue #6 · flyworker/java-workshop

Description: Hi developers I was looking through your code and found some SOLID principles that were being violated, here are my suggestions on how to fix it: In Cloud.java, the interface had too many responsibilities, so it's better if you separate ...

Open Graph Description: Hi developers I was looking through your code and found some SOLID principles that were being violated, here are my suggestions on how to fix it: In Cloud.java, the interface had too many responsib...

X Description: Hi developers I was looking through your code and found some SOLID principles that were being violated, here are my suggestions on how to fix it: In Cloud.java, the interface had too many responsib...

Opengraph URL: https://github.com/flyworker/java-workshop/issues/6

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Code Refactoring based on SOLID Principles","articleBody":"Hi developers\r\nI was looking through your code and found some SOLID principles that were being violated, here are my suggestions on how to fix it: \r\n\r\nIn Cloud.java, the interface had too many responsibilities, so it's better if you separate each responsibility in one interface on its own: \r\n`public interface Loggin {\r\n    public boolean login(String userName, String password);\r\n}`\r\n\r\n`public interface Upload {\r\n    public void upload(String file); \r\n}`\r\n\r\n`public interface Download {\r\n    public String download(String file);\r\n}`\r\n\r\nLeaving Cloud just handeling the files, like this: \r\n`public interface Cloud {\r\n    public void listFiles();\r\n}`\r\n\r\nNow in Fly.java, interface that implements Bird, the main issue is Penguin causing the method fly() throw an error, since penguins cannot fly, instead I suggest the next model: \r\n\r\nUML Diagram\r\n![image](https://github.com/user-attachments/assets/d042df40-ae3b-48d8-b983-525c92486ab2)\r\n\r\nAnd finally in CaoCloaud.java you're using a direct object of CloudImp, taking advantage of the interfaces i suggested to creat in the problem with Cloud, we can fix it using your own class AbstractClouad.java and the interfaces, adding a new interface for FastDownload, something like this: \r\n\r\nUML Diagram \r\n![image](https://github.com/user-attachments/assets/eb644bf0-1ecc-4c03-b326-90e8131c028f)\r\n\r\nThat would be all, thanks for reading and I hope this helps a little :)\r\n\r\n\r\n","author":{"url":"https://github.com/eimmy-o","@type":"Person","name":"eimmy-o"},"datePublished":"2024-11-12T22:59:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6/java-workshop/issues/6"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:13b1c866-a731-fac8-a9c7-2e3aa4b8fc7a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAD0E:23810A:9D1BD7:C9E1B3:69923855
html-safe-nonce6cf747b06763f820c6b11e32f123de24d4143f9aeb61d09b252764173eb4dc2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDBFOjIzODEwQTo5RDFCRDc6QzlFMUIzOjY5OTIzODU1IiwidmlzaXRvcl9pZCI6IjE2ODY5MzU5MDAwNTM5NzcxNzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8892b99850c188bab020e3c3751f8c2f2f6608347806df42116623fe66bd4e76
hovercard-subject-tagissue:2653568408
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/flyworker/java-workshop/6/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5fdb257bb0882f583bd736b34e7423b5593be896fac40aafd0e94d2a8d7cb2e3/flyworker/java-workshop/issues/6
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5fdb257bb0882f583bd736b34e7423b5593be896fac40aafd0e94d2a8d7cb2e3/flyworker/java-workshop/issues/6
og:image:altHi developers I was looking through your code and found some SOLID principles that were being violated, here are my suggestions on how to fix it: In Cloud.java, the interface had too many responsib...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeimmy-o
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/flyworker/java-workshop git https://github.com/flyworker/java-workshop.git
octolytics-dimension-user_id8363795
octolytics-dimension-user_loginflyworker
octolytics-dimension-repository_id100090200
octolytics-dimension-repository_nwoflyworker/java-workshop
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id100090200
octolytics-dimension-repository_network_root_nwoflyworker/java-workshop
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
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/flyworker/java-workshop/issues/6#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fflyworker%2Fjava-workshop%2Fissues%2F6
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fflyworker%2Fjava-workshop%2Fissues%2F6
Sign up https://patch-diff.githubusercontent.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=flyworker%2Fjava-workshop
Reloadhttps://patch-diff.githubusercontent.com/flyworker/java-workshop/issues/6
Reloadhttps://patch-diff.githubusercontent.com/flyworker/java-workshop/issues/6
Reloadhttps://patch-diff.githubusercontent.com/flyworker/java-workshop/issues/6
flyworker https://patch-diff.githubusercontent.com/flyworker
java-workshophttps://patch-diff.githubusercontent.com/flyworker/java-workshop
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fflyworker%2Fjava-workshop
Fork 12 https://patch-diff.githubusercontent.com/login?return_to=%2Fflyworker%2Fjava-workshop
Star 13 https://patch-diff.githubusercontent.com/login?return_to=%2Fflyworker%2Fjava-workshop
Code https://patch-diff.githubusercontent.com/flyworker/java-workshop
Issues 7 https://patch-diff.githubusercontent.com/flyworker/java-workshop/issues
Pull requests 0 https://patch-diff.githubusercontent.com/flyworker/java-workshop/pulls
Actions https://patch-diff.githubusercontent.com/flyworker/java-workshop/actions
Projects 0 https://patch-diff.githubusercontent.com/flyworker/java-workshop/projects
Security 0 https://patch-diff.githubusercontent.com/flyworker/java-workshop/security
Insights https://patch-diff.githubusercontent.com/flyworker/java-workshop/pulse
Code https://patch-diff.githubusercontent.com/flyworker/java-workshop
Issues https://patch-diff.githubusercontent.com/flyworker/java-workshop/issues
Pull requests https://patch-diff.githubusercontent.com/flyworker/java-workshop/pulls
Actions https://patch-diff.githubusercontent.com/flyworker/java-workshop/actions
Projects https://patch-diff.githubusercontent.com/flyworker/java-workshop/projects
Security https://patch-diff.githubusercontent.com/flyworker/java-workshop/security
Insights https://patch-diff.githubusercontent.com/flyworker/java-workshop/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/flyworker/java-workshop/issues/6
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/flyworker/java-workshop/issues/6
Code Refactoring based on SOLID Principleshttps://patch-diff.githubusercontent.com/flyworker/java-workshop/issues/6#top
https://github.com/eimmy-o
https://github.com/eimmy-o
eimmy-ohttps://github.com/eimmy-o
on Nov 12, 2024https://github.com/flyworker/java-workshop/issues/6#issue-2653568408
https://private-user-images.githubusercontent.com/173615381/385493090-d042df40-ae3b-48d8-b983-525c92486ab2.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzExOTA2NTcsIm5iZiI6MTc3MTE5MDM1NywicGF0aCI6Ii8xNzM2MTUzODEvMzg1NDkzMDkwLWQwNDJkZjQwLWFlM2ItNDhkOC1iOTgzLTUyNWM5MjQ4NmFiMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDIxNVQyMTE5MTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZmQzM2JhOGIyOWI5YmEyY2Q5MzZiNDY5YThhMmVjMTc3MjNhZDRiMmRjOWYyMDhkMzQzZDY2ZTFhN2NjMDQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.B2QDBR9Ueit9GMI5v0xpO2ZOKwQspxIx-66fIh2U92c
https://private-user-images.githubusercontent.com/173615381/385493702-eb644bf0-1ecc-4c03-b326-90e8131c028f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzExOTA2NTcsIm5iZiI6MTc3MTE5MDM1NywicGF0aCI6Ii8xNzM2MTUzODEvMzg1NDkzNzAyLWViNjQ0YmYwLTFlY2MtNGMwMy1iMzI2LTkwZTgxMzFjMDI4Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDIxNVQyMTE5MTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01OTEzNzUxOTJjZDk3ZjVhNGQ5ZTEyMDI1NGM5MTg2MmI4YmU2NWUyNmExYzM3NWM1YmQ1Mzk5MzczYjE4OGY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Ji9g97vXCg9QrUEVFUJ1xvJ8Dpmk0sboTJh9r61_jPc
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.