Cream together the margarine, butter and sugar until pale yellow and sugar is no longer visible.
Add the ricotta cheese into the butter/sugar mixture and mix until blended.
Add the eggs and vanilla extract and mix until blended.
In a medium bowl, sift together the flour, salt, baking soda and baking powder.
Slowly add the sifted flour mixture into the ricotta mixture, about 1/2 cup at a time and mix until blended.