marvanni (@martinnewman) 's Twitter Profile
marvanni

@martinnewman

- Fullstack webdev - Working on my bachelor software engineering

ID: 1677999560927354880

calendar_today09-07-2023 11:14:21

497 Tweet

19 Followers

74 Following

marvanni (@martinnewman) 's Twitter Profile Photo

Besides TDD-ing a remote API implementation, I really like to have a console command for every API call I implement. This gives me an easy way to inspect api calls on production later on. #laravel #php #programming

Besides TDD-ing a remote API implementation, I really like to have a console command for every API call I implement.

This gives me an easy way to inspect api calls on production later on.

#laravel #php #programming
marvanni (@martinnewman) 's Twitter Profile Photo

var vs let in Swift... So let in Swift is what const is in Javascript... Better remind that one 😅 🎉 I just finished Day 1 of the #100DaysOfSwiftUI at hackingwithswift.com/100/swiftui/1 via Paul Hudson tt

var vs let in Swift...

So let in Swift is what const is in Javascript...

Better remind that one 😅

🎉 I just finished Day 1 of the #100DaysOfSwiftUI at hackingwithswift.com/100/swiftui/1 via <a href="/twostraws/">Paul Hudson</a> tt
marvanni (@martinnewman) 's Twitter Profile Photo

Ok, I am not supposed to rush it, but some stuff is pretty basic if you have some experience.. Sorry i combines lessons, so I can keep up with my colleague who is on day 32...😅 🎉 I just finished Day 2 of the #100DaysOfSwiftUI at hackingwithswift.com/100/swiftui/2 via Paul Hudson

marvanni (@martinnewman) 's Twitter Profile Photo

In Swift, Dictionaries are arrays with defined keys. Just like associative arrays in PHP. Dictionaries always have a default value, to prevent code from breaking. This is indeed one of the reasons In PHP I almost never access values by array keys directly, but prefer objects

In Swift, Dictionaries are arrays with defined keys.

Just like associative arrays in PHP.

Dictionaries always have a default value, to prevent code from breaking.

This is indeed one of the reasons In PHP I almost never access values by array keys directly, but prefer objects
marvanni (@martinnewman) 's Twitter Profile Photo

Sets in Swift Sets differ from arrays: - Sets can not contain duplicates - Sets does not have an order You can create a Set from an array. Sets will remove duplicate values. You can use set.append() to add an item to a set. Running set.contains() is much faster than running

Sets in Swift

Sets differ from arrays:
- Sets can not contain duplicates
- Sets does not have an order

You can create a Set from an array.
Sets will remove duplicate values.

You can use set.append() to add an item to a set.

Running set.contains() is much faster than running
marvanni (@martinnewman) 's Twitter Profile Photo

Enums in Swfit Enumns(enumerations) makes sure you use the right value for a certain type. This prevents from assigning invalid values to a variable. For example, September is not a valid weekday, but this code is perfectly valid: var weekday = "Monday" weekday = "September"

Enums in Swfit

Enumns(enumerations) makes sure you use the right value for a certain type.

This prevents from assigning invalid values to a variable.

For example, September is not a valid weekday, but this code is perfectly valid:

var weekday = "Monday"
weekday = "September"
marvanni (@martinnewman) 's Twitter Profile Photo

So far so good! Of course it helps a lot when you have some coding experience under you belt. So far the code looks pretty clean. Feels like python with a flavor of javascript with a better implementation or types. 🎉 I just finished Day 3 of the #100DaysOfSwiftUI at

marvanni (@martinnewman) 's Twitter Profile Photo

I think we need a final final keyword to prevent removing final from php classes in vendor packages. Proof me wrong! #php

marvanni (@martinnewman) 's Twitter Profile Photo

Not all duplication is bad Not all duplication is bad Not all duplication is bad Not all duplication is bad Not all duplication is bad Not all duplication is bad Not all duplication is bad Not all duplication is bad Not all duplication is bad Not all duplication is bad

Benjamin Crozat (@benjamincrozat) 's Twitter Profile Photo

I'm available for consulting and/or short-term freelance missions! 👋 I've been in the game for 17 years, with 8 years of experience with Laravel. 💪 Want to learn more about me? I have a 40K monthly visitors blog, a LinkedIn, and a GitHub. 🔥 RTs welcome, they help a lot! 🙏

I'm available for consulting and/or short-term freelance missions! 👋

I've been in the game for 17 years, with 8 years of experience with Laravel. 💪

Want to learn more about me? I have a 40K monthly visitors blog, a LinkedIn, and a GitHub. 🔥

RTs welcome, they help a lot! 🙏
marvanni (@martinnewman) 's Twitter Profile Photo

So I’m doing Swift. That language that is.. But now YouTube recommends me Taylor Swift the whole day… At some point I have to explain that at home. #swift #swiftui #nottaylorswift