34 ms·
PHP initially came on the scene when Windows was very popular and important. This might explain why PHP provided good support for Windows. In the ensuing decad
by sidkshatriya 5y ago
PHP initially came on the scene when Windows was very popular and important. This might explain why PHP provided good support for Windows.
In the ensuing decades:
- VMs for development have become more popular. You can run Windows but then easily develop on Linux using VirtualBox. Virtualization is very popular now when compared to the late 1990s/early 2000s. You also have WSL and WSL2 and cygwin
- Windows sadly is no longer the development platform of choice. Production runs mainly on Linux. Since deployment is on Linux, its a good idea that development happens on Linux to iron out any subtle platform issues and also get good support for native extensions in languages like Ruby, Python, PHP etc. Some server software/middleware (message brokers, databases, caches etc.) have much better support on Linux. This necessitates again using Linux rather than Windows for local development
- Due to the rise of mobile and web applications, the dominance of the Windows desktop platform has decreased. Not supporting Windows at one time used to be unthinkable but no longer
- The Windows platform in the late 1990s was arguably technically superior and robust when compared to its competitors. Now Linux and MacOS are robust and very capable as well
- MacOS has risen to become important amongst developers
- Docker runs on Linux
All these factors have led to Windows not being a first class citizen for many open source projects.
> If PHP never ran on windows it would never have ever gain its popularity, it doesn't matter if it's then deployed on Linux servers.
This is a historical fact. The situation in 2021 is different. If a new language is trying to break onto the scene today it must support Linux first. MacOS support often comes "for free" because of its BSD heritage. Windows is quite different internally and due to the reasons above, often lags behind in first class support for many open source packages. Platform support at the end of the day is a "network effect" and the network is with Linux/Unix currently.
- hota_mazi 5y agoYou're making a lot of assumptions here, some of which are incorrect in my opinion. If anything, WSL is making Linux more irrelevant as a development environment, and Windows 11 is going to take this to the next level (take a look at Hanselman's demo video [1]). Yes, production runs in majority on Linux but development happens massively on Windows. With macOS a distant second and Linux barely used as desktops. [1] https://www.youtube.com/watch?v=B4VYjxzx2us https://www.youtube.com/watch?v=B4VYjxzx2us
- DeathArrow 5y agoYou can even use the full Visual Studio to develop for Linux, Android and iOS.
- sidkshatriya 5y agoThe fact that Microsoft was compelled to add a subsystem for Linux shows which way the technology momentum is.
- DeathArrow 5y agoIt just shows that servers run Linux. Because there is the majority of the development happening.
- sidkshatriya 5y agoWhich is just the point I'm making: develop for Linux and don't worry about development for the Windows platform in 2021 (for most scenarios). And if you're using WSL you are using Linux effectively. Windows is just that UI around you. Microsoft makes some good products/services and I think they have shifted in strategy. They are not so interested in what _specific_ APIs/OS you use (Win32 or Linux ...) as long as you do it "inside" Windows on the Desktop or on Azure in the Cloud. It clear that the Linux platform is dominating because Linux is everywhere from servers to mobiles. One of the parent comments was complaining about lack of good _native_ windows support in Crystal. I've responded to why it may not be critical to have good _native_ windows support anymore above in detail...
- egeozcan 5y agoPeople are really thinking too much into the possibilities. Many people also don't use WSL. Many don't even have the basic nix tools on their path. You may say that they aren't your target audience, but many new technologies weren't popular until they made them their target audience.
- pjmlp 5y ago
- DeathArrow 5y agoI develop on Windows. I can run any Linux software that I need in WSL. I run Docker on Windows. I run Kubernetes on Windows. I dislike Apple's walled garden and the small choice of software. I tried many times to like and use Linux as a desktop but I simply couldn't.
- jhoechtl 5y agoInteresting. When I accepted that a WM simply shouldn't interfere with the user I gave up my complains that I can't configure Gnome the way I like it and since then it is a solved problem for me. Actually I increasingly like it with every iteration.
- southerntofu 5y agoWhat was your main pain points with GNOME UI? How have you evolved to like it over time, or how has GNOME evolved to fix those painpoints? Personally, my three pain points are (were?) lack of systray, lack of 1D window list (not 2D rendering of all open windows on workspace, which is harder to navigate), no "execute" action for .desktop/.sh files [0], and alt-tab behavior inconsistent with every other window manager and OS i've used in the past [1]. Not finding settings for any of these is what drove me away from GNOME. But i'm always tempted to come back, because GNOME is otherwise very consistent and pleasant. I like that there's utilities i can place in inexperienced hands, for example GNOME Disks to create bootable USBs. But for those non-tech users of GNOME i know, lack of systray and 1D window list are the most painful points. [0] How are we supposed to teach users to run apps/scripts? I remember long time ago on Ubuntu there was "Open", "Execute" and "Execute in terminal" actions. Nowadays a lot of non-tech people i meet learn to use a terminal just to start Tor Browser, which is not ideal. Is there a simple package i can install to setup such actions? [1] That alt-tab doesn't consistently take me to the previous window i was on, i find heavily confusing. When i'm switching between browser or terminal windows, GNOME's Alt-Tab takes me a considerable time to reach my previous window because i need to expand the program's group before i can switch. Otherwise, alt-tab takes me to another window that's not the previous window i was on. Can this be configured back to "normal" now?
- PedroBatista 5y agoI understand what you’re saying but outside some circles ( quite large nowadays), Windows is still king by a mile, specifically with people entering this world who do not have the means to spend 2k on a silver machine made of magic. Starting dev is something that happens very casually with no commitment, so you start with what you have.
- abzug 5y agoPeople in developing countries aren't using Windows either. It's Linux on a cheap/second hand machine.
- pjmlp 5y agoNope, it is pirated Windows copies bought on street bazar.
- PedroBatista 5y agoWindows market-share is around 80-90% consistently round the globe.
- piaste 5y agoYou're listing a lot of excellent reasons to _choose_ Linux over Windows, but you aren't making a strong case that people _are_ using Linux over Windows. In order to optimize adoption, a tool should aim for the platforms that potential new users _actually use_, not the ones that they _should_ use. As of 2021, 45% of Stack Overflow survey responders use Windows [0], while 25% each use Linux and MacOS. And I am going to advance the hypothesis that the subgroup of SO survey responders actually skews more towards Linux, based on the fact that the sub-subgroup of professional developers were more likely to use Linux. I expect that the much larger set of developers who don't take SO surveys are less likely to be professionals and therefore less likely to use Linux. Windows is not quite as dominant as it used to be, but poor Windows support will still cut down your growth potential by half (and, if my hypothesis is correct, likely more). [0] https://insights.stackoverflow.com/survey/2021#most-popular-technologies-op-sys https://insights.stackoverflow.com/survey/2021#most-popular-...
- lamontcg 5y agoWindows is a real easy way to break into new, young developers and gamers and generate hype. Even for established products, so many enterprises have mixed Linux/Windows that supporting Windows as a first class citizen can get you in the door there in a lot of places. If you don't have an easy frictionless story on Windows you're still missing out in 2021, and because so many people think that Windows isn't relevant its a real easy way to capture a market segment. Neglecting windows is leaving money/mindshare on the table.