Slide 1

Slide 1 text

Code Search With Laravel & Sourcegraph https://sourcegraph.com/search

Slide 2

Slide 2 text

Prosper Otemuyiwa Co-founder, Eden Life Developer Advocate, Sourcegraph

Slide 3

Slide 3 text

Question for you! ● How do you currently search for open source code? ● How do you search for private code? ● How do you get code intelligence outside of your local editor?

Slide 4

Slide 4 text

What is Laravel? https://laravel.com

Slide 5

Slide 5 text

Laravel - An artisan’s framework ● A Full Stack PHP Framework ● An API Backend ● A Vibrant and powerful community ● Plethora of developer tools e.g Nova, Cashier, Forge, Envoyer, Valet, Telescope, Scout, Telescope, Sanctum, etc ● Educational Platforms e.g Laracasts.com, dailylaravel.com, laravel.io etc

Slide 6

Slide 6 text

Before we continue...

Slide 7

Slide 7 text

What’s your Sourcegraph Temperature? ● I’ve never heard of it. ● I’ve heard of it but don’t understand it. ● I understand it, but I don’t see how it’s useful. ● I see how it could be fun for senior developers, but not for me. ● It’s becoming more useful for me. ● I use it all the time. ● I could not imagine life without it. ● Seriously, people are living without it? How?

Slide 8

Slide 8 text

Enter code search ... https://sourcegraph.com

Slide 9

Slide 9 text

Sourcegraph - Simple & Advanced Code Search

Slide 10

Slide 10 text

What is Sourcegraph’s Value To You? ● Search over 2.1M open source & public repositories across GitHub & Gitlab. ● Search private code across several repositories ● Precise code intelligence ● Automation of large scale code changes via Batch changes. ● Code monitoring ● Code insights (still in beta)

Slide 11

Slide 11 text

Sourcegraph - Code Search Patterns ● Literal ● Regular expression ● Structural

Slide 12

Slide 12 text

Sourcegraph Search - Literal

Slide 13

Slide 13 text

Sourcegraph Search - Literal

Slide 14

Slide 14 text

Sourcegraph Search - Regular Expression

Slide 15

Slide 15 text

Sourcegraph Search - Regular Expression

Slide 16

Slide 16 text

Sourcegraph Search - Regular Expression

Slide 17

Slide 17 text

Sourcegraph Search - Structural Search

Slide 18

Slide 18 text

Sourcegraph Search - Structural Search

Slide 19

Slide 19 text

Use Cases you’ll love ...

Slide 20

Slide 20 text

Reviewing Pull Request on GitHub - How do I get code intelligence easily?

Slide 21

Slide 21 text

Pull Request on GitHub - Hover information

Slide 22

Slide 22 text

Pull Request on GitHub - Find All References

Slide 23

Slide 23 text

Find Secrets & Vulnerabilities in your codebase

Slide 24

Slide 24 text

Find exact dependencies that may be vulnerable.

Slide 25

Slide 25 text

Find deprecated function calls in your organization’s codebase.

Slide 26

Slide 26 text

Recap: Why you need Sourcegraph? ● Developer velocity - Help all your developers to move fast. With code intelligence & great search, code discovery is a walk in the park. You don’t need to keep cloning repos to effectively search through them! ● Onboarding new developers to a codebase - The faster developers can understand your massive codebase, the better. ● Codebase refactors (batch changes) - as codebase grows, you need to refactor the codebase more intelligently.

Slide 27

Slide 27 text

Sourcegraph Search Parameters Recap

Slide 28

Slide 28 text

Learn more about code search https://learn.sourcegraph.com

Slide 29

Slide 29 text

Sourcegraph Resources! ● learn.sourcegraph.com ● docs.sourcegraph.com ● dev.to/sourcegraph ● about.sourcegraph.com/blog ● info.sourcegraph.com/dev-tool-time ● about.sourcegraph.com/podcast

Slide 30

Slide 30 text

Twitter: @unicodeveloper GitHub: @unicodeveloper Thank You & Please reach out!