Hopp til hovedinnhold

Innhold om Frontend

Totalt 322 innlegg

Side 9 av 22

Sprinkle, Sprinkle, Little Card

Frontend
Artikkel (4 min)
Fra Ida Marie Vestgøte Bosch
20.12.2020

I work on the internal applications in Bekk, including a front page that shows key information about employees and the company. One of the sections shows upcoming birthdays, so you can congratulate your colleagues on their big day. But something was missing. You know, that little extra that tends to light up people’s faces. How about some confetti bursting out the top of your head? 🎉

4 steps for the getting your React code ready for Christmas

Frontend
Artikkel (9 min)
Fra Nora Futsæter
20.12.2020

🎶 It's beginning to look at lot like Christmas...🎶 You have put up your favorite decorations, candle lights are sparkling in the windows and Christmas cookies are baking in the oven making a nostalgic scent. You can almost feel the Christmas spirit. But, wait a minute, what's that ruining this perfect Christmas feeling? Is it dirty react code?! There are “this”, a looong render method and even “classes” all over the place. With only four days left it's probably time to do some proper refactoring of your react code. Here are four steps which I have recognized to help me get going. It's time to roll up your sleeves.

How to force-refresh your app every once in a while

Frontend
Artikkel (4 min)
Fra Kristofer Selbekk
19.12.2020

Let's talk about TEA - The Elm Architecture!

Frontend
Artikkel (5 min)
Fra Anonym
19.12.2020

Elm and other functional programming languages might look weird and scary to newcomers. Once you get to know them, however, functional languages becomes very clear and satisfying to work with Let's look at the MVU - Model, View, Update - architecture. The architecture is also known as TEA - The Elm Architecture - but is useful in other languages as well

Debounce and throttle

Frontend
Artikkel (5 min)
Fra Eirik Luka
19.12.2020

Ever wanted to implement a search as-you-type? What about transforming something while the user is scrolling. Just add an event listener for this works, but it can really impact the browser performance. Fetching from the server on every keypress isn't just unnecessary, it may also be hard on your server. This can be solved by two functions, debounce and throttle. Let's have a look at the difference between the two and how they can be implemented

Strict mode

Frontend
Artikkel (5 min)
Fra Henrik Hermansen
18.12.2020

After years of disagreements about the long awaited next version of ECMAScript, on December 3, 2009, the 5th edition was finally released. A full 10 years after the previous version. With it came a lot of security improvements, one of which is known as "strict mode".

Rebuild static pages on-demand with incremental static regeneration

Frontend
Artikkel (9 min)
Fra Ole Anders Stokker
18.12.2020

Building static pages with React is a great way to improve the experience of a website. But how do they work, and how can you still get the static pages to change when your data changes?

The Builder Pattern

Frontend
Artikkel (5 min)
Fra Aksel Wester
18.12.2020

Elm doesn't have a concept of required and optional arguments. Every function takes all the arguments they specify, no more, no less. But sometimes we want to be able to specify only some arguments to a function, and use default values for the rest. The builder pattern is one solution to that challenge.

A Tale of a React Newbie

Frontend
Artikkel (5 min)
Fra Tora Seim Gunstad
17.12.2020

My name is Tora, and I started working at Bekk this fall as a new React developer with a fresh Computer Science degree. I would like to share my journey into this new and exciting world with you!

Greater type safety with opaque types!

Frontend
Artikkel (4 min)
Fra Vetle Bu Solgård
17.12.2020

It may become tedious to always check if a value in your records is on the supposed format. To be absolutely certain that a value correctly represents a property in your records, we can use opaque types!

Six Ways To Level Up Your JavaScript

Frontend
Artikkel (5 min)
Fra Erik Wendel
17.12.2020

You’ve done your fair share of JavaScript. You’ve shipped production code for years. You’re definitely no noob, nor a true expert. What’s the next step? How to find a learning path towards JavaScript mastery that actually motivates you to reach the next level? This article presents six alternative routes forward.

Let It Snow with Perlin Noise in p5.js

Frontend
Artikkel (19 min)
Fra Anders Larsen
16.12.2020

Wintertime has always struck me as somewhat offset from the holiday season. The weather gets cold and dark, but snow seems to be in its primetime around January and February, at least here in Oslo. As a result, people around the world may have to resort to simply dreaming of a white Christmas. But regardless of where you live and the level of crystalline precipitation thereabouts, we have the technology to make it snow right now! In your browser at least.

Maintainable React components with Typescript

Frontend
Artikkel (4 min)
Fra Joakim Gyllenskepp
16.12.2020

I often find myself coming into code bases that I haven't worked with before to fix a bug or add some new feature. This is honestly more often that not quite challenging.

A Bunch of Nothing

Frontend
Artikkel (3 min)
Fra Gaute Berge
16.12.2020

One of the great advantages of Elm is its strong runtime guarantees, and one important technique it uses to achieve this is using data types such as Maybe and Result to handle errors, instead of having values like null or undefined in the language. These structures are very nice to work with, but if you don't know the tools at your disposal, they can be tricky.

Wrap up your CSS with Stitches!

Frontend
Artikkel (4 min)
Fra Geir Sagberg
15.12.2020

Have you ever struggled with CSS? Have you found it hard to structure a large CSS codebase, even when using methodologies like BEM or OOCSS? Have you tried using CSS-in-JS solutions, but struggled with the setup or lack of typing? Or maybe you've used Tailwind, but find the initial bundle size intimidating, or the tooling to reduce it too complex? Stitches is a new CSS-in-JS library from Modulz and Christian Alfoni, creator of Cerebral and Overmind. It promises "Near-zero runtime, server-side rendering, multi-variant support, and best-in-class developer experience." We'll take a look at what this means, and how Stitches compares to existing CSS-in-JS solutions like Styled Components, Emotion and Material UI.