Cut the onions and garlic.
Shred the cod (if you didn't buy shredded cod).
Dry the cod with a cloth or paper.
Chop the parsley.
Saute the onion and garlic until golden, and add the shredded cod.
When the cod is cooked, add half of the straw potatoes and mix everything. It will become yellowish in color, and there will be no water. Reduce the stove temperature to medium heat.
Check the seasoning. If the cod is salty, don't add salt, just pepper. Generally, you don't need to add salt.
Separately, beat the four eggs until the yolks and whites are well combined.
Turn off the stove, add the eggs to the pan, and mix everything until the eggs are covered and coated with the cod and straw potatoes. Don't let the eggs cook too long; otherwise, they will become scrambled eggs. It would be best if you kept stirring.
Turn on the stove at medium temperature and let the eggs cook a little, stirring constantly and not overcooking. You want a creamy texture.
Remove the skillet from the stove and add half the straw potatoes. Mix everything until everything is evenly distributed.
Add the chopped parsley and plate or serve on a platter. Place some black olives on top.