Articles in category Development

Development

How we implemented SWR in a project and why we loved it

Why SWR? Recently, we had the opportunity at SDH to develop a project using React with support from Redux/Toolkit. Thing is, though data was kept and fetched in the store, there was no caching mechanism implemented in the app.  And holding dozens of responses in the state is not my idea of a cool idea. Whatever the case, it soon got a little too easy to get lost in all those state slices, despite the use of Toolkit.    What’s more, it had zero influence on the backend at that point. With those iceberg-sized chunks of data drifting about, some requests took an eternity to resolve.  And since the UI’s application consisted of long item lists with few CRUD operations,  it soon became clear that some form of cache would come in pretty handy just about then. So the choice fell to SWR - a library made by the developers of Vercel (also of Next.js fame).
Kamil Polok
09 June 2021
6 min read

Development

Is QA required for early project planning?

There are many factors that determine the success of a project and one of these is the establishment of a sound project plan in that project’s preliminary stages. Which is why more and more team members are getting involved earlier on. And it’s not just analysts, but developers and QA Engineers too. Indeed, with every team member having a unique mindset informed by different competences and experiences, this will bring varying and valuable perspectives to any given business requirement. The appropriate time for involving QA in the project depends on the client and the software development methodology that is adopted. In Agile methodology, a tester’s work will begin at a certain point in the software life-cycle and elsewhere in the waterfall methodology. Much depends on the client's decision and budget, and though QA’s initial involvement is associated with additional costs, there are still several reasons why it can prove profitable.
Magdalena Śledź
28 May 2021
6 min read

Development

How to generate PDF from HTML in React / Node.js app

Generating PDF from HTML would seem a rather simple action requiring little time and effort. However the reality is somewhat different, and finding the best solution can often be challenging. Let’s consider this hypothetical scenario: We have a React App through which we’d like to create a PDF either from the entire page or just in part. Our PDF document could contain charts, tables, images and/or plain text and should be structured without cuts or overlappings. We also want a button on the page allowing us to save our document. In this article, I will walk you through some different solutions whilst outlining the pros and cons of each. We will start with the simplest method then graduate to the most complex.
Eugene Zolotarenko
20 May 2021
6 min read