8 points

JavaScript. Stay mad but it’s fun to write, easy to get into, easy to do both visual (e.g. web) and CLI-style code, and it’s awarded me a cushy life, house, and car.

permalink
report
reply
4 points

I’ve been around - did COBOL at uni. DOne a lot of commercial work in Delphi and C++. I loved the few months of Swift I tried, but started on webdev 6 months ago. I felt really unsafe in JS, and was looking forward to moving onto Typescript. But, as time’s gone on, I’ve found JS just seems to work how I think it’s going to. I haven’t run into problems with types at all. I assumed I’d end up on a complied language for server side, but the Node ecosystem’s so mature it’s just been efficient to stay in JS land.

If I was going to teach kids to code, this is where I’d start. Low friction to get going, and powerful enough to run most of the world. Bountiful resources to learn and get support.

permalink
report
parent
reply
2 points

I can’t use regular js anymore after getting used to typescript. I just get annoyed at myself

permalink
report
parent
reply
5 points

Yeah I should have been more specific in that I also use TS.

permalink
report
parent
reply
1 point

Good news, I’m not sure when you’d ever have to. TS literally compiles to JS

permalink
report
parent
reply
3 points

and it’s awarded me a cushy life, house, and car.

The rest sounds like cope but this I can get behind.

permalink
report
parent
reply
3 points

I actually like JS too. It is second to python in ease, but way better in terms of tooling and eco system.

The JavaScript eco system has some issues due to legacy baggage of browsers and design issues with node, but beyond that, the tooling is amazing and powerful.

permalink
report
parent
reply
2 points

I like typescript because it’s all I’ve used for the last 3 years and I now think in it

permalink
report
reply
4 points

I like TypeScript (and Python) like I like duct tape

It isnt the best solution, it’s not the most elegant, but it’s the quickest to implement and can be used basically wherever

permalink
report
parent
reply
11 points

Probably the most unpopular opinion here but PowerShell.

My main reason is that it’s extremely easy to learn and is a good intro to object orientated programming.

People bash it but it’s extremely easy to inspect objects, get any properties and methods associated with that object or class, walk through all the properties of the object and transform that into whatever you need.

It has a very fast turnaround time when developing code as you can run tiny snippets at a time and understand their outputs before moving to the next bit.

I’m not a Dev and end up having to write python from time to time and I hate it. At one point I just needed to understand an object in a variable and I couldn’t do it, the command dir exists but it didn’t give me any of the info I needed. There’s a function in PowerShell called Get-Member (alias: gm) that you can pipe anything to and it will show you all those details of the object.

It helped me tremendously when I was just starting out.

Its super powerful, it can do anything C# can do because it’s built on it, you can also run inline C, C# and C++ code with on the fly compilation.

It’s also OSS and cross platform.

permalink
report
reply
3 points

💀 powershell …

permalink
report
parent
reply
5 points

I owe a large portion of my career to PowerShell.

permalink
report
parent
reply
3 points

I write code in C# but I love PowerShell. it’s just elegant even if the syntax can be a bit clunky

permalink
report
parent
reply
4 points

The syntax is often terrible (how it handles escape characters, for instance) but there’s usually a well-meaning backwards compatibility reason for that. It’s also flawed in many many other ways (classes, package management, variable scoping just to name a few).

But god damn if I can’t bash (no pun intended, har har) out code to do most things very quickly in it. It’s a fantastically accessible language, and it’s a lot more powerful than it gets credit for.

permalink
report
parent
reply
3 points
*

Oh Jesus no.

But I knew there must be someone who likes it.

In python you may have wanted the repr command to see how an object looks like.

permalink
report
parent
reply
1 point

Thanks for the tip!

permalink
report
parent
reply
2 points

I’m a developer with 30 years experience in lots of languages and honestly PowerShell one of my favorite. Of course anything is an improvement over batch file scripting but it’s so much better than bash. An object-oriented command line is amazing - such a huge improvment over having to use text-processing tools to parse output. Built-in support for virtually every text file format, easy access to web and rest services, and now that it’s cross-platform and open-source I’m using it consistently on Linux and Macs. I’ve been using it for almost 15 years and it’s sad how few people outside of the Windows eco-system are familiar with it, and even more resistant just because it’s from MS.

permalink
report
parent
reply
1 point

Yep, the disparaging comments you get on anything where you mention PowerShell are a sign of some deep rooted prejudices and the unwillingness to learn something new because of them. They’ll rather scoff and pretend that they’re morally superior because hurry durr Microsoft.

I’m glad that there are people who appreciate it for everything it can and does do. I cringe every time I have to use bash because of just how bad and cumbersome it is to use.

permalink
report
parent
reply
3 points

I try to stay language agnostic but if I’m honest JavaScript is my favorite because of the speed it provides. Also I like to build we based things so it’s always in the stack

permalink
report
reply
13 points

Python. It’s the only one I know :(

I’ve been trying to learn C# too but object-oriented programming just slides right off my smooth brain lol.

permalink
report
reply
4 points

object-oriented programming just slides right off my smooth brain lol

Don’t worry, although it’s good to learn, IMO it’s still on the wrong side of overused and overrated and could stand to be applied more selectively than it tends to be.

permalink
report
parent
reply
4 points

Been learning python for selenium and I love it. I know some C# and Javascript but I enjoy Python a lot more as a newb.

permalink
report
parent
reply
10 points

Once oop clicks it’s a revelation.

permalink
report
parent
reply
4 points

Nothings stopping you from writing object oriented code in python too, or function oriented code in C#.

permalink
report
parent
reply

Asklemmy

!asklemmy@lemmy.ml

Create post

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it’s welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

Community stats

  • 10K

    Monthly active users

  • 5.9K

    Posts

  • 319K

    Comments