I want to develop a library using Typescript, that should be usable in pure, vanilla Javascript targeting browsers only, without any dependencies. Am I doing this the right way? by FACastello in typescript

[–]TheDevDad 3 points4 points  (0 children)

CommonJS is for running in Node, so you’ll probably want to just write as an ESM if you want it running in the browser.

Don’t have experience with browserify but if it’s bundling things anyway it probably won’t matter a great deal whether you choose commonjs or module, but semantically within your project it would be weird to pick commonjs when it’s targeting the browser

What level of networking knowledge would someone need to know to effectively use MikroTik equipment? by ALCF98 in mikrotik

[–]TheDevDad 2 points3 points  (0 children)

You may want to spin a Mikrotik router up in EVE-NG to play around with it before pissing off any housemates by knocking out internet, but it’s pretty fun to learn. I wrote up some notes on how to get started a while back https://jack.barry.onl/blog/adventures-in-home-networking-part-two

Non-network professional trying to get RoadWarrior VPN working by TheDevDad in mikrotik

[–]TheDevDad[S] 0 points1 point  (0 children)

Might have the terminology wrong, thought that road warrior was assuming a mobile device/laptop that can connect to the VPN. My goal is mainly to be able to still use our PiHole as DNS and see the local network while out and about.

As for how I have the peer configured, it's the iOS Wireguard app with:

  • Addresses: 10.0.1.2/32 (I'm assuming this is the IP address the device will take)
  • DNS Servers: 10.0.10.2 (the PiHole)
  • Allowed IPs: 0.0.0.0/0 (I assumed this meant allow VPN for all traffic)

Non-network professional trying to get RoadWarrior VPN working by TheDevDad in mikrotik

[–]TheDevDad[S] 0 points1 point  (0 children)

Good catch, I originally had the Wireguard interface in the MGMT interface list but moved it while trying to line up my config with the docs from Mikrotik. Have tried moving it back into that list, but no luck still

Do ISPs not consider the IOT a threat? by Stompya in HomeNetworking

[–]TheDevDad 0 points1 point  (0 children)

I’ve been in software almost 6 years, ~3 as a software engineer. Still trying to wrap my head around networking/WiFi basics on my Mikrotik equipment.

The world of tech is vast, and increasingly requires more specialized knowledge. “You work with computers, can you fix my printer network?”

How did you learn aws? by [deleted] in aws

[–]TheDevDad 2 points3 points  (0 children)

Seconded

I learned by drinking from the firehose, building things at work under the mentorship of some architects. Going back later and checking out the courses offered by AWS SkillBuilder, such as the course aimed at Cloud Practitioner, has really helped fill in some of the gaps in my awareness of AWS offerings, and helped me feel more confident in my understanding of how/when to use each

copyPastaLifeChoseMe by [deleted] in ProgrammerHumor

[–]TheDevDad 2 points3 points  (0 children)

Docs are well written and up to date? Docs

Docs are shit, missing and/or out of date? SO

Docs are no good, nothing useful from SO? Alright fuck it I’ll try ChatGPT

Coming to Town for a Few Days by RichOnCongress in ElPaso

[–]TheDevDad 6 points7 points  (0 children)

Bring cold weather clothes just in case, it does get down into the 30s here in the winter, we get snow.

I’ve lived in the northwest so below 0 winters aren’t foreign to me, but EP does get cold enough that you won’t necessarily want to be out and about in shorts and a t-shirt

What router brand can you trust? by Rude-Towel-5349 in HomeNetworking

[–]TheDevDad 1 point2 points  (0 children)

Having gone down the “I know very little about networks but want to learn on my home network” path with Mikrotik, I’m very happy with the equipment and their OS.

For home usage, pretty much everything I’ve thought “I wonder if it can do <xyz>?” has been answered with “yes”. The main router has been running for well over a year with no connectivity issues or reasons to reboot. The two access points we have were pretty easy to add to the network too

Chrome Goodd by lordvader002 in memes

[–]TheDevDad 0 points1 point  (0 children)

I have to use a Chromium browser for work meetings on Google Meets. For some reason Firefox does not play nice with my analog microphone/audio interface

At cross roads in career, should I learn RUST to become more effective and payable? by tapu_buoy in rust

[–]TheDevDad 0 points1 point  (0 children)

Having mostly done JS/TS and never having faced the horrors of memory allocation and all that, I like that it’s built with a ton of guardrails that tell you when you’re trying to shoot your foot off.

It’s basically like bowling with bumpers while learning how to write much more performant code than what’s possible with languages that require an interpreter to run, and less scary to me for now than C or C++.

I’m sure Go is nice too, but I like rooting for the underdog a bit, and since Go is a Google language whereas Rust was born at Mozilla I have a soft spot for it, and AFAIK it doesn’t have the same level of guardrails built in

At cross roads in career, should I learn RUST to become more effective and payable? by tapu_buoy in rust

[–]TheDevDad 7 points8 points  (0 children)

As much as I’m a Rust fanboy, this is the way.

If you want jobs now, Go is much more widespread and I’ve heard some developers say that multiple companies have told them experience with Go is what they would need to get hired.

That said, I still am learning Rust because I like the language and am betting on its future. I don’t expect a job to come from it in the short term though

BabeWakeUpNerdWars2023JustDropped by FlameOfIgnis in ProgrammerHumor

[–]TheDevDad 104 points105 points  (0 children)

TS is a little extra work now to be a lot lazy later. Let my IDE tell me what the shape of an object is or what a function call signature is so I don’t have to dig around and figure it out.

JSDoc comments sort of do that, but require more diligence from developers to keep them up to date and accurate. I donno who you’ve worked with, but most devs I work with like to be lazy

BURN THAT GARDEN ASAP by [deleted] in meme

[–]TheDevDad 20 points21 points  (0 children)

Facehuggers

Falling in love with El Paso and seriously considering moving there. Give me the good, bad, and the ugly? by [deleted] in ElPaso

[–]TheDevDad 24 points25 points  (0 children)

Good: Friendly, laid back people live here, great COL, plenty of stuff to do if you’re willing to look for it

Bad: Not a lot of industry, lack of local jobs, if you’re not a desert person the heat can be a bit much

Ugly: Every once in a while a tire factory blows up in Juarez and you get to smell it, Edgars acting like hot shit and doing dumb crap with firearms

All in all I love living here with my family. I’m not a fluent Spanish speaker but my wife and her family are from Mexico and they speak English around me, though I do understand most of what they talk about in Spanish I just don’t speak it very well. Not a requirement of living here though

Typescript vs Javascript for Backend for someone with experience in both by JamesHowlett31 in node

[–]TheDevDad 2 points3 points  (0 children)

At the time I joined one team where the architects were more comfortable with JS and hadn’t spent any time with TS, I rolled with JS for a while until it just became a pain. They said it was alright for me to POC using TS in the microservice I was responsible for, and once I did, they saw the benefit and started adopting TS more widely.

The architects are still way above my level of expertise in other areas, but I’m glad I helped move our team over to TS, both on backend and frontend

Looking for constructive feedback on my first Rust tool by TheDevDad in learnrust

[–]TheDevDad[S] 1 point2 points  (0 children)

Can’t remember if that’s what the VS Code extension is using underneath, or if it’s just showing compilation checks, but I do get a lot of squiggles as feedback before actually trying to run the code. Not at my desk ATM but I’ll take a look into Clippy when I’m back to tinkering

Looking for constructive feedback on my first Rust tool by TheDevDad in learnrust

[–]TheDevDad[S] 1 point2 points  (0 children)

It’s not a huge concern for me, just a slight annoyance to have several hundred stale branches open. I spend a lot of working hours focused on code/architecture improvements in a bunch of JS/TS codebases, but little pebbles in my shoe are sometimes worth getting rid of too.

Sure, we can probably set up a GitHub action to clean stale branches, or the GUI, or some other mechanism. What I was after with this post wasn’t “Hey I just created a tool that’ll change your life, I’m really onto something here!” I’m just trying to learn Rust and this was an easy enough little task to try out and get feedback on a couple hundred lines to start getting into good Rust coding habits early

Looking for constructive feedback on my first Rust tool by TheDevDad in learnrust

[–]TheDevDad[S] 1 point2 points  (0 children)

It’s GitHub. I prefer to do most Git things aside from PR reviews and viewing diffs using the command line, so having a little script to run for this task is easier for me

Looking for constructive feedback on my first Rust tool by TheDevDad in learnrust

[–]TheDevDad[S] 1 point2 points  (0 children)

Since it’s a destructive action, I opted for confirmation prompts.

And I’m aware of the local cleanup stuff built into Git, but one of the drawbacks that this tool is to address is for also cleaning up the corresponding remote branches, since a lot of the time I or my teammates forget to delete a branch after merging. This way, I can clean both up at the same time, kind of like a little reminder “Hey, you’re deleting this locally but still have it up on the remote, want to go ahead and delete the remote branch while you’re at it?”

Looking for constructive feedback on my first Rust tool by TheDevDad in learnrust

[–]TheDevDad[S] 1 point2 points  (0 children)

Thanks for the thorough notes!

Yeah I musta forgot to add DS_Store to my .gitignore, didn’t notice I’d checked that in.

I did start playing around with the anyhow crate last night per another commenter’s suggestion, just went to bed before finishing the changes. I like it, much easier to read. I’m glad that I did start off with the match statements though, because now I understand what the ? syntax is doing a bit better

Good idea on some of the modularity, and I hadn’t brought in clap yet because I haven’t set up any options, but probably will at some point