Open in app

Sign In

Write

Sign In

Ben Dunjay
Ben Dunjay

61 Followers

Home

About

Nov 9, 2021

RSpec Shared Examples and Shared Context

Slowly developing your knowledge in software engineering should be a methodical process. Learning to refactor and DRY out your code is one of those processes where the more knowledge you have the easier it becomes. Shared examples and shared context will allow you to keep your specs DRY, even when…

Rspec

3 min read

RSpec Shared Examples and Shared Context
RSpec Shared Examples and Shared Context
Rspec

3 min read


Published in The Startup

·Feb 16, 2021

Rails-Money Gem and to_f

Recently I came across an interesting problem that involved using the to_f method and the problems it can bring, especially when dealing with monetary values. My problem involved the inexact arithmetic used in to_f in Ruby, adding three numbers together, and comparing them against a single total number. If the…

Ruby

5 min read

Recently I came across an interesting problem that involved using the to_f method and the problems…
Recently I came across an interesting problem that involved using the to_f method and the problems…
Ruby

5 min read


Jan 3, 2021

RSpec and FactoryBot

This is aimed at anyone recently taking up RSpec testing for Ruby. I am always looking for ways to refactor my code, a standard rule for programmers. But you can stare at code for so long and sometimes not see what you can change without potentially being exposed to a…

Rspec

4 min read

RSpec and FactoryBot
RSpec and FactoryBot
Rspec

4 min read


Published in The Startup

·Dec 2, 2020

Creating Rails methods with SQL: Part II

So in my last blog, I built the basics of creating a database, dropping a database, creating an instance of your class, and saving that instance to the database. Now I want to move on to some more methods. …

Rails

5 min read

Creating Rails methods with SQL: Part II
Creating Rails methods with SQL: Part II
Rails

5 min read


Published in The Startup

·Dec 1, 2020

Creating Inbuilt Rails Methods With SQL

I decided that although I loved Rails and Ruby, you could build a perfectly simple API or Rails application without understanding too much of what is going on in the background. For instance, after doing my Bootcamp, I knew that the Create action from CRUD essentially bundled the new and…

Sql

7 min read

Creating Inbuilt Rails Methods With SQL
Creating Inbuilt Rails Methods With SQL
Sql

7 min read


Published in Level Up Coding

·Nov 16, 2020

FizzBuzz in Ruby — Following TDD

During a final stage interview recently, I was asked towards the end of my technical test if I knew FizzBuzz and if I could please implement some code to write a successful FizzBuzz script! The review of my take-home showed that I could write tests, but didn’t show my thinking…

Rspec

6 min read

FizzBuzz in Ruby — Following TDD
FizzBuzz in Ruby — Following TDD
Rspec

6 min read


Published in The Startup

·Nov 9, 2020

Ruby — Inheritance and Module

Recently I have been looking more and more into plain old Ruby, no Rails framework, just trying to better understand the language behind it. Having built projects using pure Ruby and Rails, I have come to find I have some questions about what goes where. Which is good. …

Ruby

5 min read

Ruby — Inheritance and Module
Ruby — Inheritance and Module
Ruby

5 min read


Published in Level Up Coding

·Nov 2, 2020

Ruby Methods New to Me

I have taken a bit of a step back on blogs for front-end and React-based projects/skills to also focus on Ruby. After doing a take-home exam a week ago, I realised I was adept enough at making my own RoR project but creating a Regex, plain Ruby setup from nothing……

Ruby

6 min read

Ruby Methods New to Me
Ruby Methods New to Me
Ruby

6 min read


Published in The Startup

·Oct 26, 2020

Counter App to Learn Redux With Hooks

I almost felt guilty not doing camel casing for the title! Having based my last blog around the basics of setting up a redux project, I wanted to build a simple app with this blog to showcase a full example of Redux, including the use of Redux Thunk. …

Reactjs

8 min read

Counter App to Learn Redux With Hooks
Counter App to Learn Redux With Hooks
Reactjs

8 min read


Published in The Startup

·Oct 19, 2020

Understanding Redux

This is a slight diversion on what my next blog was meant to be about. Context API and testing it with Jest + Enzyme. Why? …

Redux

5 min read

Understanding Redux
Understanding Redux
Redux

5 min read

Ben Dunjay

Ben Dunjay

61 Followers

Currently concentrating on Ruby!

Following
  • Konstantinos Patronas

    Konstantinos Patronas

  • John Gruber

    John Gruber

  • Harsha Vardhan

    Harsha Vardhan

  • Trey Huffine

    Trey Huffine

  • Adao Natalino

    Adao Natalino

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech