Filip Wojciechowski

@filipcodes

Project based. Impressionable. Coding (JavaScript/TypeScript, Go). Books.

Vrijeme pridruživanja: srpanj 2018.

Tweetovi

Blokirali ste korisnika/cu @filipcodes

Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @filipcodes

  1. prije 4 sata

    My experience with taught me this: if your language has a popular code formatting tool - use it, and use it *with the default settings*. The benefits of a single code formatting standard trump any subjective aesthetic preference in that regard.

    Poništi
  2. 29. sij

    A super simple testrunner for . Just run it in the root of a Go project and it will automatically run tests for a package when one of the ".go" files in that package has been modified. Yeah, I know, no tests (yet)... 🤷

    Poništi
  3. 20. sij

    Part 2 of my series about building servers in . This post is all about dataloaders.

    Poništi
  4. proslijedio/la je Tweet
    4. ruj 2019.

    Top Tip: the first line of every unit test should be t.Parallel(). If that doesn't work in your package, fixing it will uncover and resolve a lot of design errors.

    Prikaži ovu nit
    Poništi
  5. 16. sij
    Poništi
  6. 14. sij

    I started using optional *Config structs in constructor functions. When config is nil the default values are used; a defined config enables customization of the instance (to pass a mocked dependency for testing, etc.). Are there other good approaches to achieve this?

    Poništi
  7. proslijedio/la je Tweet
    7. sij

    Join the first 2020 Golang Warsaw meetup on 15.01. We have two talks on Go developement in the CloudNative environment, unique Golang-10th-anniversary pins for attendees, and JetBrains licenses for good questions. Looking forward to seeing you all!

    Poništi
  8. 5. sij

    I just published Let’s Build a Server: Part 1 in on Medium:

    Poništi
  9. 4. sij

    The first in a planned series of posts about building a server in using code generation approach and - gqlgen by to generate the server - sqlc by to generate the database code.

    Poništi
  10. proslijedio/la je Tweet
    20. pro 2019.

    Did you know that json.NewDecoder(reader).Decode(&v) is inherently wrong in ? Me neither.

    Poništi
  11. 20. pro 2019.

    Part 4: Testing x testing database CRUD x testing resolvers x testing dataloaders x testing middleware

    Prikaži ovu nit
    Poništi
  12. 20. pro 2019.

    Part 3: Authentication/Authorization x User schema/queries/resolvers x authentication x add auth mutations/queries to the GQL schema x wire up the new resolvers x issue token pair (access/refresh) x validating tokens x gqlgen directives configuration x authentication middleware

    Prikaži ovu nit
    Poništi
  13. 20. pro 2019.

    Part 2: Dataloaders x what are dataloaders and why do we need them? x workflow x dataloader logic x one-to-many queries (two directions?) x many-to-many queries x dataloader interface x dataloader middleware

    Prikaži ovu nit
    Poništi
  14. 20. pro 2019.

    Part 1: Generation of a basic GraphQL API x project setup x graphql schema x generating resolvers () x schema change workflow x database queries x generating db code () x database interface x wiring up the resolvers x configuring the server x building an executable

    Prikaži ovu nit
    Poništi
  15. 20. pro 2019.

    I'll hopefully have some more free time during holidays so I'm planning to do some writing -- a series of blog posts about building servers in . Here's the rough plan:

    Prikaži ovu nit
    Poništi
  16. 17. pro 2019.

    example server built using this approach (work in progress), I will write a blog post about it soon:

    Prikaži ovu nit
    Poništi
  17. 17. pro 2019.

    My new favorite way to write servers in : 1. generate resolvers from graphql schema using 2. generate database code from sql schema/queries using 3. generate dataloaders (if needed) using 4. Write some glue code. Code generation FTW! 🚀

    Prikaži ovu nit
    Poništi
  18. 13. pro 2019.

    Halcyon Theme for by is really, really excellent.

    Poništi
  19. 11. pro 2019.

    This will likely be obvious to experienced gophers, but it took me some time to figure out, so I wrote a blog post about it -- how to implement a random ticker in . Comments and criticisms are welcome - I'm still learning!

    Poništi
  20. 8. stu 2019.

    Cool trick -- add this to your config file for customized cursor shapes in different modes. This setting makes it more intuitive to track what mode you're currently in.

    Poništi

Čini se da učitavanje traje već neko vrijeme.

Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.

    Možda bi vam se svidjelo i ovo:

    ·