• 0

Which language would you chose between C# and PHP


Question

I'm interested in changing career paths from computer repair and troubleshooting to programming. The two languages I'm looking at are C# and PHP. I understand the two are apples and oranges in comparison because they are for two entirely different things. However, I would like to learn a language that is in high demand and could give me a good level of job security. So based on your knowledge and experience, which of these two would you think could provide that? I appreciate any feed back you can provide.

Thanks! :D

Recommended Posts

  • 0

Been coding websites in PHP for about a year and a half. For a new company I set up I decided to use ASP (C#), because the website will have to manage larges about of data crunching (game stats and the like). And I have to say, the entire development experience has been better. The debugging, the designing, the structuring.. I built a site in 2 days that would of taken be a week in PHP.

  • 0

PHP is an odd duck, but it's still (usually) the P part of LAMP, so there are plenty of jobs out there for it. If you're going to start with a project that is already written in a language, I'd learn Python + Django instead of PHP if web development strikes your fancy. Python is extremely easy to learn, and outside of it's sometimes annoying whitespacing, is usually the most logical for a learner.

  • 0

Aeikus, you shouldn't pigeonhole yourself into just one language. It's OK to concentrate on one language while learning to see examples of programming concepts and to do some hands on learning, but you want to learn the fundamentals that will be language agnostic. I've covered this on my blog.

  • 0

...

that guy who wrote the article knows nothing and he then gave loads of arguments which he tried to justify why PHP is not needed or is used and It was just a load of hog

The article raises a ton of good points and provides a bunch of examples, I don't see how you can just reject them out of hand.

	function foo(string $s) {}

	foo("hello world");

Why should that cause a fatal error for example? And such a nonsensical error at that.

Catchable fatal error: Argument 1 passed to foo() must be an instance of string, string given, called in ? on line 3 and defined in ? on line 2
  • 0

Neither, all of them or any of them.

You said you are coming from a computer repair background and want to learn a programming language.

Without further info I assume you are just beggining so just pick one and learn the fundamentals first.

So you better start hacking. Programming is more like an art and there are millions ways to solve a problem some solutions better/elegant/etc than others and the only way to get there is to program and keep progamming, make lots mistakes and learn from them.

I would start with procedural programing to get the basic stuff first and then move to object oriented programming. The core concepts are the same for all common programming languages.

Many programming languages do better in specific fields than others such as web, desktop, mobile, scripiting, etc. There is no jack for all trades in my opinion.

Don't get confused when comparing programming languages and frameworks, django, ruby on rails, .net, etc are all frameworks so these frameworks should be compared to Zend, Codeigniter and other PHP frameworks.

I wouldn't recommend to start learning a language using a framework since frameworks usually have a certain pattern to follow and need to follow a certain way to do things which imho should be avoided when first learning a programming language.

To give you an example at school on my first year we started learning the basic stuff on Pascal which you can consider now a dead language but the basic principles have remain over the years and will probably not change anytime soon.

Now my personal preferences:

For web development I choose PHP for many other things which are not related to the language itself, such as documentation, code examples, big community, it's free, works on every platform, lots of tested code out there (lots of bad code as well :-)

On Linux enviroments for quick scripting I prefer python over perl.

For other type of work C# and Java are really popular, Java more than C# specially on big projects that I've been involved to. Java also has the android as a platform which is a big plus for the language.

Don't forget Objective-C for Apple devices lots of opportunities there especially since the mobile/tablet market is growing expentionally every year.

Anyway I envy you nothing is so exciting like learning a new thing from the first time especially programming and remember start coding from day zero. Don't waste time reading entire books before starting, you will only get better and better by coding.

One last thing If you know friends that are also into programming try to do things togheter. It is the most fun thing to do and you will learn a lot that from each other. Plus usually when you do programming for a living it involves working with other people which takes progamming to a different level since it is not just you reading and working on your code.

Cheers.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Well I've done a grand total of nothing, and it now clocks between 2010mhz and 1995mhz (stock is 1710mhz) and hovers around 80c, warmer than it used to, but tolerable clocks seem to have returned. Thanks for all the advice on this thread. Will review the evidence and make a choice.
    • Audacious 4.6.1 by Razvan Serea Audacious is a lightweight, open-source audio player that emphasizes simplicity, performance, and sound quality. Designed for Linux, Windows, and macOS, it supports a wide range of audio formats, internet radio streaming, and playlist management. Users can customize the interface with Winamp-style skins or modern themes, making it flexible for different preferences. Audacious also includes an equalizer, advanced audio effects, and a plugin system for extending functionality. Its low resource usage makes it especially suitable for older computers or users who value efficiency without sacrificing playback quality. Audacious key features: High audio quality – delivers clean, gapless playback with minimal distortion. Wide format support – plays MP3, FLAC, Ogg Vorbis, AAC, WAV, WMA, and more. Internet radio streaming – supports Shoutcast, Icecast, and other online streams. Winamp skin support – classic, nostalgic look for users who prefer the old-school style. Modern GTK-based interface – clean, simple UI with a more modern feel. Customizable themes – change appearance through skins and themes. Advanced playlist management – organize, save, and edit playlists with ease. Equalizer – fine-tune audio output with a built-in graphical equalizer. Audio effects – built-in DSP options like crossfade, replay gain, and more. Plugin system – extend functionality with additional components. File metadata support – displays and organizes music based on tags. Drag-and-drop support – quickly add songs or playlists. Global hotkey support – control playback without switching windows. Bit-perfect output modes – bypass system mixers for pure audio output. ReplayGain support – normalizes track loudness automatically. Cue sheet support – play entire albums from a single audio file with .cue. MPRIS2 integration – integrates with Linux desktop environments for media controls. Advanced resampling options – adjust playback quality with different resampler settings. Gapless playback – seamless transition between tracks encoded properly. Crossfade plugin – blend one song into the next smoothly. Last.fm scrobbling plugin – track listening history online. Remote control support – control Audacious via command-line or scripts. Lyrics plugin – display song lyrics if available. Alarm / timer plugin – start or stop playback at set times. SOX resampler plugin – high-quality resampling for audiophiles. Spectrum analyzer / visualization plugins – visual feedback while playing music. Headphone crossfeed effect – simulates speaker listening for headphones. Customizable buffer size – tweak latency and playback smoothness. Audacious 4.6.1 changelog: Use XDG cache dir to store temporary files (#1817) Accept embedded lyrics in more cases (#1818) Bump .so and plugin ABI versions retrospectively (#1819) Include Georgian translation (#1820) Fix build on systems using musl instead of glibc (#1823) Download: Audacious 4.6.1 | 48.2 MB (Open Source) Download: Portable Audacious 4.6.1 | 69.8 MB View: Audacious Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I really wonder if this has to do with the built in VPN or "private DNS" of browsers that trip up legal requirements like cookie consent and Cloudflare (to avoid all the botnet attacks we get). And BTW some botnets still manage to get past Cloudflare, we are constantly having to tweak it to block malicious traffic that ultimately cause a DDoS.
  • Recent Achievements

    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      +Edouard
      197
    3. 3
      PsYcHoKiLLa
      142
    4. 4
      ATLien_0
      89
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!