@zethtren@mastodon.social avatar

zethtren

@zethtren@mastodon.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Edent, (edited ) to random
@Edent@mastodon.social avatar

You receive a call on your phone.
The caller says they're from your bank and they're calling about a suspected fraud.

"Oh yeah," you think. Obvious scam, right?

The caller says "I'll send you an in-app notification to prove I'm calling from your bank."

Your phone buzzes. You tap the notification This is what you see.

Still think it is a scam?
1/3

zethtren,
@zethtren@mastodon.social avatar

@Edent My response is always. Okay, let me call you back and we can start this process. A scammer will insist they handle it for you. A bank may say they can handle it but will usually let you hang up and call back. Fraud departments don’t make commissions so there’s no reason for them to hold you on the line.

girlonthenet, to random
@girlonthenet@mastodon.social avatar

Stages of :

-This is so cool and helpful!
-I’m learning so quickly!
-I can share my progress with friends! 🥰
-I’m so obsessed with my streak haha!
-I want to punt this stupid owl into the centre of the sun

zethtren,
@zethtren@mastodon.social avatar

@girlonthenet @der_schrank I do well with gamification I found that pairing it with WaniKani (while there is some overlap) seems to be a comfortable balance between kanji and grammar. I’m only on section 2 lesson 14 right now though and level 4 in WaniKani 😅

zethtren,
@zethtren@mastodon.social avatar

@octorine @girlonthenet I got to Diamond League last week and came in last. Second to last was higher than any 1st place I’d encountered before that point. 1st place had over 20k xp 😅

zethtren,
@zethtren@mastodon.social avatar

@girlonthenet @der_schrank It is paid, but if you like it and have iPhone I recommend the free Tsurukame app. It hooks to the wanikani API and gives you a lot more information, dark mode, and just a better experience overall.

alyx, to golang
@alyx@3615.computer avatar

I'd like to find more YouTube channels about software development / engineering / etc but it's like 98% of the same white guy, screaming like a twitch streamer, making almost every video about "this is X killer" "why you should NEVER do that" or "your IDE is shit use X instead". Of course they talk like they are the thing and it's the only truth.

Any recommendations? interested in or anything related

zethtren,
@zethtren@mastodon.social avatar

@alyx Code to the Moon, Code Aesthetic, Dreams of Code, ArjanCodes, Low Level Learning, Backend Banter, mCoding, Chris Biscardi, Jeremy Chone, Jon Gjengset, No Boilerplate, HyperNeutrino, and Logan Smith are a few of the ones I subscribe too. (Left the 5-6 “hype” devs I watch out of the list for you.)

I find it’s better to subscribe to a LOT of slow release channels. I get a consistent feed of good quality that way. 🙂

eugenialoli, to rust
@eugenialoli@mastodon.social avatar

I looked at the based, , by . This is branded "alpha" right now, but I'm flabbergasted by the users online, who think that "by summer" that thing will be ready for general use.

News flash, it won't.

It generally takes 2-3 years minimum after the official release for a brand new DE (with a brand new & libs) to become truly useful to most people. DEs aren't adopted unless matured. Hamper your expectations, lads.

zethtren,
@zethtren@mastodon.social avatar

@visone @eugenialoli I think this is one of the biggest mistakes people make when evaluating the hype.

The memory safety is really just circumstantial to most people that write Rust. The actual community hype revolves around just how easy it is to write scalable, maintainable, and performant software when compared to things like C.

It’s the main reason so many things are (so quickly) rewritten in Rust. The language makes it easy once you learn it.

zethtren,
@zethtren@mastodon.social avatar

@visone

Yeah my main point is that it makes software easier to write though. Even on big projects it’s found to be easier than GoLang.

This article from Google shows that their C++ devs felt 2x+ more productive even in the first 4 months of learning Rust. https://www.theregister.com/2024/03/31/rust_google_c/

So I wouldn’t be surprised if Cosmic destroys some of the DE lifecycle expectations just because of its convenience in development.

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

What’s extra confusing about the module system is the mod keyword doubles for creating and importing modules. So in one context it wraps stuff, and in another it's linking stuff.

Oh, and don't forget there are special file names and folders that do things without any use of stuff.

zethtren,
@zethtren@mastodon.social avatar

@khalidabuhakmeh I feel like they’re both “declaring” it though. Just if you don’t pass a scope it looks for a file name to declare it from instead.

jarkko, to zig
@jarkko@social.kernel.org avatar

i hope #zig will be sustainable. i like its way more than #rust. and like in C or even RISC-V microarchitecture, but not so much in Rust and C++, the language definition is compact enough so that it just stick into your head. also, comptime is really cool invention in my opinion. #C #rustlang #riscv

https://ziglang.org/

zethtren,
@zethtren@mastodon.social avatar

@jarkko I feel like comptime is one of those things that’s convenient at first. But, then you build a function that’s restricted solely by compiler checks and doesn’t have a “proper” interface.

If anyone tries to develop on comptime you either have to document the requirements, let the users figure it out by compiler errors, or wrap it in interface functions. Plus any change can break code down the line.

It seems cool at first but, I like it less the more I look at it.

zethtren,
@zethtren@mastodon.social avatar

@jarkko Yeah it definitely has a lot of neat things (Super great for systems level stuff). I personally feel the ergonomics fall apart a bit in the module level scope of things. The FFI (especially with C) is definitely fantastic though.

I don’t have much direct experience with Zig except for friends that share their hype with me. So I can’t speak for it directly. Rust does provide a surprising amount of “experimental” and “nightly” features for memory though too.

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

Yesterday, someone recommended once_cell for compared to !lazy_static, and it was a very good recommendation. This is much more straightforward.

zethtren,
@zethtren@mastodon.social avatar

@khalidabuhakmeh OnceCells are great!

marcoarment, to random
@marcoarment@mastodon.social avatar

ok look I know this is really stupid and pedantic, but come on, we’ve had 26 years to learn this

It's Wi-Fi

not Wifi or WiFi or wifi or wi fi

Wi-Fi. Hyphenated. Both words capitalized.

thank you for coming to my ted talk

(while you're here, “log in" is two words when being used as a verb… your login button or link should not say "login”, because the action they take is to "log in”)

zethtren,
@zethtren@mastodon.social avatar

@evan @stuart @marcoarment Seems like a pretty “integral” part of the logo.

fil, to rust
@fil@hachyderm.io avatar

Looks like .into_iter().map(Into::into).collect() is a pretty frequent pattern. Quick search on github yields 10.5k hits
https://github.com/search?q=lang%3Arust+.into_iter%28%29.map%28Into%3A%3Ainto%29.collect%28%29&type=code
Does anyone know if there is a shorthand?

zethtren,
@zethtren@mastodon.social avatar

@fil You can implement FromIterator<StartType> for Vec<EndType>

And then you can call:
x.into_iter().collect::<Vec<y>>()

Or
type Y = Vec<EndType>

.collect::<Y>()

The implementation in FromIterator will basically include that mapping but this can be quicker / more convenient if your calling it multiple places / exposing it to an end user.

Another cool tip.
Vec<Result<T,>> can be collected into Result<Vec<T,>>
Useful for collecting handles sometimes.

lain, to random
@lain@lain.com avatar
zethtren,
@zethtren@mastodon.social avatar

@lain I can’t, Fourier life of me, figure it out.

bagder, to random
@bagder@mastodon.social avatar

The next release will ship on October 11, four weeks earlier than previously planned.

It will fix one vulnerability graded severity HIGH and one LOW

My apologies for this inconvenience. Of course both of these CVEs are due to bugs I wrote. One of them over 8000 days ago...

zethtren,
@zethtren@mastodon.social avatar

@bagder Not one I’d feel safe or comfortable driving 😅 I’d say a decent one starts closer to 18-20k

gsuberland, (edited ) to Electronics
@gsuberland@chaos.social avatar

if you were sorting a parameter by ascending numeric value (in some sort of parameteric search engine) and the values included positive, negative, and ± values all together, where would you want the ± ones to be placed?

context is electronics stuff, where you're searching for a part that fits your required specs.

(boosts welcome for more input!)

zethtren,
@zethtren@mastodon.social avatar

@gsuberland Can we make a T? And treat them like they’re on the imaginary axis?

zethtren,
@zethtren@mastodon.social avatar

@gsuberland If the dropdown can then drop sideways 😂

jpm, to random
@jpm@aus.social avatar

Ugh fine, I’ll try doing this embedded firmware in Rust. Let’s see how badly this goes…

zethtren,
@zethtren@mastodon.social avatar

@jpm Thanks! Jokes on you though! You’re never going to be allowed to drop that now :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • tester
  • ngwrru68w68
  • Youngstown
  • tacticalgear
  • osvaldo12
  • slotface
  • PowerRangers
  • hgfsjryuu7
  • khanakhh
  • kavyap
  • tsrsr
  • InstantRegret
  • DreamBathrooms
  • everett
  • Leos
  • magazineikmin
  • rosin
  • modclub
  • thenastyranch
  • vwfavf
  • GTA5RPClips
  • Durango
  • ethstaker
  • mdbf
  • normalnudes
  • cubers
  • cisconetworking
  • anitta
  • All magazines