
Solutions Architect - Happy @coschoolofmines / @IBM alumnus that builds custom software solutions for business and government. It's tough work, but I love it.
Apia, Samoa
Joined February 2012
- Tweets2.9K
- Following242
- Followers146
- Likes1.3K
Eugene F. Barker retweeted
Replying to @GergelyOrosz
In my career, compilers have always generated better code that I ever could have. I find this to be increasingly so with contemporary AIs.
But you know what neither can do better than me?
Knowing what software to write, what shape it should take, and what I want it to do.
The entire history of software engineering has been one of rising levels of abstraction.
This is how it was, how it is now, and how it shall be in the fullness of time.
Eugene F. Barker retweeted
Replying to @arctips
Those two.
Thank you - and I'm glad you like having the figs posted :)
Eugene F. Barker retweeted
How Microsoft Made 2024 the Year of Windows on Arm ift.tt/AXwUJb7
Eugene F. Barker retweeted
Me Christmas list:
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Camera (To take photos of da cookie.)
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Cookies
Eugene F. Barker retweeted
MIT University is offering 100% FREE Online Fall 2024 Session Courses
Here are 15 Courses you should not miss:
(No Registration required)
Eugene F. Barker retweeted
Younger engineers seems to have a hard time understanding concepts like threads, CPUs, and cores.
But I remember feeling the same way before working on embedded systems.
I hope this can help some less experienced folks out there:
[1/6] ↓
Eugene F. Barker retweeted
𝗚𝗶𝘁 𝗠𝗲𝗿𝗴𝗲 𝘃𝘀 𝗥𝗲𝗯𝗮𝘀𝗲
One of the most powerful Git features is branching. Yet, while working with it, we must integrate changes from one branch into another, and the way to do this can be different.
We have two ways to do it:
𝟭. 𝗠𝗲𝗿𝗴𝗲
When you merge Branch A into Branch B (with 𝚐𝚒𝚝 𝚖𝚎𝚛𝚐𝚎), Git creates a new merge commit. This commit has two parents, one from each branch, symbolizing the confluence of histories. It's a non-destructive operation that preserves the exact history of your project. Merges are particularly useful in collaborative environments where maintaining the integrity and chronological order of changes is essential. Yet, merge commits can clutter the history, making it harder to follow specific lines of development.
𝟮. 𝗥𝗲𝗯𝗮𝘀𝗲
When you rebase Branch A onto Branch B (with 𝚐𝚒𝚝 𝚛𝚎𝚋𝚊𝚜𝚎), you're essentially saying, "Let's pretend these changes from Branch A were made on top of the latest changes in Branch B." Rebase rewrites the project history by creating new commits for each commit in the original branch. This results in a much cleaner, straight-line history. Yet, it could be problematic if multiple people work on the same branch, as rebasing rewrites history, which can be challenging if others have pulled or pushed the original branch.
So, when to use them:
🔹 𝗨𝘀𝗲 𝗺𝗲𝗿𝗴𝗶𝗻𝗴 𝘁𝗼 𝗽𝗿𝗲𝘀𝗲𝗿𝘃𝗲 𝘁𝗵𝗲 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝗵𝗶𝘀𝘁𝗼𝗿𝘆, especially on shared branches or for collaborative work. It's ideal for feature branches to merge into a main or develop branch.
🔸 𝗨𝘀𝗲 𝗿𝗲𝗯𝗮𝘀𝗶𝗻𝗴 𝗳𝗼𝗿 𝗽𝗲𝗿𝘀𝗼𝗻𝗮𝗹 𝗯𝗿𝗮𝗻𝗰𝗵𝗲𝘀 or when you want a clean, linear history for easier tracking of changes. Remember to rebase locally and avoid pushing rebased branches to shared repositories. Also, be aware 𝗻𝗼𝘁 𝘁𝗼 𝗿𝗲𝗯𝗮𝘀𝗲 𝗽𝘂𝗯𝗹𝗶𝗰 𝗵𝗶𝘀𝘁𝗼𝗿𝘆. If your branch is shared with others, rebasing can rewrite history in a way that is disruptive and confusing to your collaborators.
👉 I 𝗽𝗿𝗲𝗳𝗲𝗿 𝘁𝗵𝗲 𝗿𝗲𝗯𝗮𝘀𝗲 𝗮𝗽𝗽𝗿𝗼𝗮𝗰𝗵, as we get a cleaner Git history, but to use it requires a higher level of Git understanding to manage safely.
#programming #coding
Eugene F. Barker retweeted
𝗦𝗤𝗟 𝗝𝗼𝗶𝗻𝘀 𝘆𝗼𝘂 𝗻𝗲𝗲𝗱 𝘁𝗼 𝗸𝗻𝗼𝘄
Here is the list of essential SQL Joins every software developer needs to know:
✅ 𝗜𝗻𝗻𝗲𝗿 𝗝𝗼𝗶𝗻: Retrieves records with matching values in both tables.
✅ 𝗟𝗲𝗳𝘁 𝗝𝗼𝗶𝗻: Retrieves all records from the left table and matching records from the right table.
✅ 𝗟𝗲𝗳𝘁 𝗝𝗼𝗶𝗻 𝘄𝗶𝘁𝗵 𝗡𝘂𝗹𝗹 𝗖𝗵𝗲𝗰𝗸: Filters only the records that do not match in the right table (NULL values).
✅ 𝗥𝗶𝗴𝗵𝘁 𝗝𝗼𝗶𝗻: Retrieves all records from the right table and matching records from the left table.
✅ 𝗥𝗶𝗴𝗵𝘁 𝗝𝗼𝗶𝗻 𝘄𝗶𝘁𝗵 𝗡𝘂𝗹𝗹 𝗖𝗵𝗲𝗰𝗸: Filters only the records with no match in the left table (NULL values).
✅️ 𝗙𝘂𝗹𝗹 𝗝𝗼𝗶𝗻: Retrieves all records when a match is in the left or right table.
✅ 𝗙𝘂𝗹𝗹 𝗝𝗼𝗶𝗻 𝘄𝗶𝘁𝗵 𝗡𝘂𝗹𝗹 𝗖𝗵𝗲𝗰𝗸: Filters only the records for which there is no match in the left or right table (NULL values).
♻️ Reshare if you found this helpful.
#programming #sql
Eugene F. Barker retweeted
Learn more about SQL here: newsletter.techworld-with-mi…
Eugene F. Barker retweeted
𝗛𝗼𝘄 𝗧𝗼 𝗢𝗽𝘁𝗶𝗺𝗶𝘇𝗲 𝗬𝗼𝘂𝗿 𝗦𝗤𝗟 𝗤𝘂𝗲𝗿𝗶𝗲𝘀?
To do this, you need first to understand the execution order of an SQL query.
SQL statements are executed in multiple steps:
𝟭. 𝗙𝗥𝗢𝗠 - tables are joined to get the base data.
𝟮. 𝗪𝗛𝗘𝗥𝗘 - the base data is filtered.
𝟯. 𝗚𝗥𝗢𝗨𝗣 𝗕𝗬 - the filtered base data is grouped.
𝟰. 𝗛𝗔𝗩𝗜𝗡𝗚 - the grouped base data is filtered.
𝟱. 𝗦𝗘𝗟𝗘𝗖𝗧 - the final data is returned.
𝟲. 𝗢𝗥𝗗𝗘𝗥 𝗕𝗬 - the final data is sorted.
𝟳. 𝗟𝗜𝗠𝗜𝗧 - the returned data is limited to row count.
The execution also involves:
🔹 Parsing SQL statements.
🔹 Transforming them into relational algebra.
🔹 Optimizing them.
🔹 Creating an execution plan.
To learn more about it, check the full text in the comments.
#sql
Eugene F. Barker retweeted
I used to think I was rational.
Then I read Daniel Kahneman's Nobel Prize-winning work on human decision-making.
He routinely asks 8 questions to expose cognitive traps you fall into daily.
Test yourself with these questions (it's the ultimate BS detector for your brain):
Eugene F. Barker retweeted
Code Complexity vs. Experience by @flaviocopes
Eugene F. Barker retweeted
Replying to @housecor
By that, I don't mean that you should never use DRY code in tests, but that it shouldn't be the default methodology (in contrast to normal app coding).
IMO, one reason you should avoid DRY test code is because you want to avoid debugging your test code. You shouldn't have to dig through layers of abstractions in your testing utilities to determine if the issue is in the abstraction or in your actual app code.































