ha_fernandez wrote:
Now, i've a last question: imac M4 24" 24gb 512Gb or mac mini with similar features?
It depends on your preferences.
The 24" M4 iMac has an entry-level variant with only two USB-C / Thunderbolt ports, and higher-end ones that have four USB-C / Thunderbolt ports. I would recommend a variant with four ports, and I believe that the stock model with 24 GB of RAM and a 512 GB SSD has four ports.
The big advantage of the 24" iMac is its gorgeous Retina screen. There aren't many standalone monitors with the same pixel density. (The 27" 5K Apple Studio Display and a few third-party 27" 5K displays come to mind – but none of them are especially cheap.). Another advantage for the iMac is that it comes with a Magic Keyboard and a Magic Mouse. The Mac mini comes with neither - and Apple charges a lot for them when purchased separately.
The big disadvantage of the 24" iMac is that the screen measures only 24", and is forever tied to the computer – you can't reuse it as a monitor for any future Mac or PC that you might buy.
With the Mac mini, you can buy whatever monitor you want, and when it's time to replace the Mac mini, you can take that monitor with you to your next system. You can also get the Mac mini with a M4 Pro chip, if you want a stronger GPU, or a CPU that can chew through long batch jobs more quickly. The downside here is that the 27" and 32" 4K monitors that are so large, plentiful, and relatively inexpensive do not have a PPI that comes close to that of the 24" 4.5K Retina iMac's screen. So they're not going to be quite as sharp.