Newport Marine Detailing now available on iOS

I’ve been coding for about two years but I really didn’t get into web and iOS app development until last year. I’m entirely self taught and last month I launched my first app in the Apple Store, here is how I did it.

I began to learn how to code by watching YouTube tutorials. When I knew that I wanted to become a “real” developer I decided to invest in myself and bought Michael Hartl’s Ruby on Rails Tutorial and later on purchased his Learn Enough To Be Dangerous courses. …

I read somewhere that programmers begin to lose concentration and productivity when their files exceed ~120 lines. Dart is a statically typed language that tends to eat up a lot of space, making API calls to your backend can become a bit of a hassle if you don’t organize yourself properly.

The first thing I like to do is create a BaseAPI class to store all of the URLs my app will be requesting:

static var rootUrl = "https://localhost:3000/"
var usersPath = rootUrl + "users"
// More Urls

By defining root as a static var we do two…

Viruses are fascinating because they blur the boundaries between life and death, they are self replicating yet considered to not be alive because they don’t have a metabolism. Viruses are also a lot like computer hackers, a computer hacker hijacks the host network for her own purposes while viruses hijack the cellular machinery of other organisms to replicate themselves.

An idea is a perspective on reality. Ideas are a lot like viruses without us humans they wouldn’t exist. They replicate by hopping from person to person and eventually from culture to culture. …

There are times when my mind gets out of control. My mind tackles problems I am having in my life by thinking about them over and over again. This constantly occurs and it takes months or years for my mind to stop engaging in self destructive habitual rumination. The classical definition of insanity is doing the same thing and expecting different results, my Default Mode Network did not get this memo.

Sometimes I will replay events in my head. Other times I start engaging in catastrophic thinking were everything I would never want to happen ends up happening. …

I am building an app to schedule appointments to a boat detailing service. I created a class called Boat which stores the boats name, length and location. Boat objects are passed into various widgets as a parameter of boat. The initial final cost of a service will vary based on the length of the boat. I decided to store the cost in state because it will change depending on the various options a user selects.

I ran into a problem when trying to set the initial cost in proportion to the boat length that is being passed down to the…

In America there is a certain set of opinions that the totalitarian left expect everybody not have. Phrases like “You are privileged” or “You don’t get it because you are white” are used to argue without actually addressing the merits of a given conjecture. Rather than carefully considering what someone else is saying these people dismiss and discredit opposing arguments.

These arguments are nothing short of being racist. For one they assume broad generalized claims that certain groups of people do not have an intellectual capacity to understand reality solely because they belong to a certain group. Although these tactics…

Yesterday I glanced at the TV and saw that the political melodrama of America’s nonexistent race war has permeated sports entertainment. A segment on ESPN was accusing the NFL of being a “systematically racist” institution. The evidence for these accusations were “lack of diversity” in front office and head coaching positions. Is it reasonable to suggest that an athletic organization dominated by African Americans who are making millions of dollars is an instrument of “oppression” and “white supremacy” ?

The contemporary public discourse on Americas race relations is due almost entirely to the illusory truth effect. When something is repeated…

Not North Korean Hackers
Not North Korean Hackers
Not North Korean Hackers

“No man is invincible, and therefore no man can fully understand that which would make him invincible.”

— Miyamoto Mushashi, The Book Of Five Rings

One of the primary justifications for transitioning into a communist society is summarized as “AI will steal all of our jobs”. The demand for increasing government paternalism (UBI, welfare, Social Security, regulations etc.) is fueled by collective catastrophizing and nominal economic pessimism. As the narrative goes if the the political class doesn’t adopt communism our society and way of life will collapse.

Economist are “predicting” that self driving vehicles will soon be a possibility, which…

Time to create the front end of our mobile application 🤖. Learning Flutter UI by hand is kind of hard, feel free to consult my git repo:

Inside of MyApp add the initialRoute and the Create route:

class MyApp extends StatelessWidget {
// This widget is the root of your application.
Widget build(BuildContext context) {
return MaterialApp(
title: 'Rails CRUD API',
theme: ThemeData(
primarySwatch: Colors.deepOrange,
visualDensity: VisualDensity.adaptivePlatformDensity,
initialRoute: '/',
routes: {
'/create': (context) => Create(),
home: Home(),

Routing in flutter is a lot like traditional web page routing. In the code above we…

A powerful combo

OK welcome back, congrats on making it this far! In this post we are going to enable a create action in our Rails Item Controller. Then we are going to switch over to Flutter were we will be creating our Request class to handle all of our communication with the API.

Let us begin!

In Rails head over to app/controllers/v1/items and type in

#POST /v1/items
def create
@item =
render json: @item
render error: {error: 'Unable to create item' }, status: :bad_request

This is our create action, when an http POST request…

Corey Gardner


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store