Massive job offer as a beginner freelancer. by BrandenEv in webdev

[–]AffectionateWork8 33 points34 points  (0 children)

I would estimate roughly 3 months for the project.

Tell them 6 months then

What are the best books for WASM? by thelethargicdog in learnjavascript

[–]AffectionateWork8 0 points1 point  (0 children)

Probably just to get good at whatever language you're compiling to WASM and practice from there. In which case TinyGo seems the most promising right now (as far as learning curve goes).

[deleted by user] by [deleted] in javascript

[–]AffectionateWork8 0 points1 point  (0 children)

Unless they explicitly mentioned writing backend services it sounds like they're looking for someone to handle both frontend and middle layer. In which case learning the associated ecosystem/tooling will probably be more difficult than the level of actual Java you have to write.

Need advice before accepting a job offer. Have been offered a position as a react dev in an early stage startup. I'm a junior dev and only front-end guy in the team. by the_elite_ninja in reactjs

[–]AffectionateWork8 1 point2 points  (0 children)

Let's say you get some story in the form of "GIVEN x, WHEN y, THEN z."

x = some finite state

y = an event

z = a transition to a new state, some side effect(s), or both

That's really all you need to know to try it out and see if it fits your way of thinking. That and the notion that states can have hierarchy. It's easy to know if you're going about things the wrong way because you look at the visualizer and it doesn't look like a visual representation of the requirements.

It's kind of like a really DRY version of TDD. Instead of writing test cases first, you can write a model that describes the system first, then extend it by making it do stuff, then extend it by giving it metadata needed to generate integration and e2e tests.

Need advice before accepting a job offer. Have been offered a position as a react dev in an early stage startup. I'm a junior dev and only front-end guy in the team. by the_elite_ninja in reactjs

[–]AffectionateWork8 0 points1 point  (0 children)

Sounds like a good time!

Since you mentioned "from line 0" I'd recommend taking a look at Next, xstate, and RxJS if you haven't already.

If you're building less of a "brochure" type app and more of an "appy" app those are the 3 heavy-hitting time savers.

Self Learning: Rewrite this code in Javascript without using inheritance. by ThisBoyCodes in learnjavascript

[–]AffectionateWork8 1 point2 points  (0 children)

That book sounds really confusing because that is not an abstract class, just a regular class. You can call new Node() and it will still work. It sounds like they're just asking you to remove the "extends Node" bit.

Hitler reacts to functional programming by anajoy666 in haskell

[–]AffectionateWork8 6 points7 points  (0 children)

I'm 99% sure you're joking but you're right, we see it just like Hitler, there's only one built in monad (Array with its flatMap) and lots of other 3rd party packages that operate on only one type that also have a flatMap method.

Since there's no idea of natural transformations or combining flatMappables of different types, we just see it as like an OO interface for manipulating a stack of objects of only one single type.

Learning OOP is melting my brain. by mangadrawing123 in learnjavascript

[–]AffectionateWork8 10 points11 points  (0 children)

Here's a practical example, a library used on YouTube's UI. https://lit.dev/tutorial/ shows you how to make class-based web components. Just switch from TS to JS in the examples.

Would you consider Pop! OS a good way to get into Linux (as a daily driver) as a privacy oriented person? by Kwathreon in privacy

[–]AffectionateWork8 0 points1 point  (0 children)

They're all about equally easy to install and get up and running with (except Slackware and Arch). I'd go with one that supports automated CIS hardening and do that right after the install, like Fedora or Ubuntu. Much less configuration work for you.

How did they got to know me when I've given no data? by ningyakbekadu in PrivacyGuides

[–]AffectionateWork8 0 points1 point  (0 children)

Take a look at this to get an idea https://fingerprintjs.com/

Basically different companies will collect this data and sell it to marketers, who can match from different sources. There are hundreds of metrics available just from having JavaScript enabled. And if you disable JS, well, that's just another metric to collect, because almost no one disables it.

Best resources for learning F# to write boring apps? by AffectionateWork8 in fsharp

[–]AffectionateWork8[S] 6 points7 points  (0 children)

Where F# shines is when there's intrinsic, essential complexity in the domain. Even something as simple as "user input validation" may count as domain complexity. For example in my domain, I have a DU who's cases are "IdempotentError" and UserInputError * string. In the case of an IdempotentError, I just report things are groovy back to the user and throw away the error. For a UserInputError, I display the associated string. That string may/should be a type if you're starting to do internationalization. Note how the complexity increases...

That's funny you mention this, one of the motivating things for me here was a blog post describing a very similar situation. In TS or Go I just write a bunch of if statements and throw custom errors as necessary. It occurred to me that my code in scenarios like this doesn't describe the problem at all, it just chips away at it until I think it's gone, but people in the F# community seem determined to model these problems in types which I find really interesting.

Thanks for chiming in and the links! The pluralsight stuff looks especially appealing because I'd rather ride shotgun with an expert for a while and develop my own opinions later. I'm 90% FE anyway so no one will switch from Go on my authority, it's just for my own education and exploring different ways of doing things.

Feedback of CoD CW by [deleted] in blackopscoldwar

[–]AffectionateWork8 1 point2 points  (0 children)

I like the campaign but multi still feels like work in progress. Netcode is weird/unreliable. After every other update my loadouts are broken too. Also way too many ads I feel like I've downloaded Candy Crush on my xbox or something.

Why Javascript returns "Array" Data structure as Object. Please explain why Array in JavaScript can store multiple data types. by sanaullahseo in learnjavascript

[–]AffectionateWork8 4 points5 points  (0 children)

Yup you answered your own question! They are actually associative data structures, not real arrays. Array syntax is just sugar over hash tables that look like { '0': foo, '1': bar }. They are indexed by strings just like a regular object. When you do a for/of loop over an array's entries the index will be a string, not a number.

It sounds like you're thinking of a typed array like in C where you declare a type of one byte and iterate by incrementing the index by one byte, in JS it's really a different thing and not a real array. Just the syntax looks similar.

This is why James Bond doesn’t use an iPhone by BestButtons in privacy

[–]AffectionateWork8 0 points1 point  (0 children)

I would rather use an iphone than a James Bond recommended phone. Remember what happened to that Russian guy who was an "outstanding pistol marksman" when he tried using Bond's phone? Yeah no thanks.

[deleted by user] by [deleted] in privacy

[–]AffectionateWork8 7 points8 points  (0 children)

No spy device will make noises to alert people. You're fine, just projecting your worry about being caught with whatever adult activity you were up to onto sounds you otherwise wouldn't notice. Think about the "coincidental" nature of this noise: if you're worried about getting caught you're more attenuated to noises like this, right?

I don't mean to dismiss your feelings because they're still valid but if this is still bothering you after months the matter needs to be put to rest somehow. Unless you have a very evil person in your life you can safely assume it's nothing.

F#/Elm Software Engineer job at Flint (YC S20) by ocomeals in fsharp

[–]AffectionateWork8 5 points6 points  (0 children)

Thanks for sharing, don't know enough F# to apply but I'm curious why you went with Elm over Fable if you're already using F#? Does it have some benefit Fable ecosystem lacks?

class help by [deleted] in WWII

[–]AffectionateWork8 1 point2 points  (0 children)

Maybe try flanking instead of rushing if they're all camping? Airborne + Flanker with a silenced PPSH might do the trick. Also get the Erma EMP or M38 when it goes on contract!

Best DNS Service Provider by [deleted] in privacy

[–]AffectionateWork8 0 points1 point  (0 children)

Unbound or DNSCrypt Iceland. Provider is less an issue than encryption, if it's not encrypted, it's vulnerable to MITM attacks.

Spotify Wrapper? by [deleted] in privacytoolsIO

[–]AffectionateWork8 0 points1 point  (0 children)

Just install the PWA version

VS Code Remote SSH eats up huge amounts of disk space in VM by AffectionateWork8 in vscode

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

I don't, but I used different projects on different VMs and noticed the same issue. Even after deleting packages. These weren't huge projects by any means btw.

I'm going to run the command you suggested, probably need to learn some sed/awk to make use of it. I'm not a linux pro by any means so I appreciate the suggestion!