There’s a Python WASM runtime, if you really want to run python in a browser for some reason…
There’s a Python WASM runtime, if you really want to run python in a browser for some reason…
Recruitment is now basically Dead Internet theory…
Having to pass in null values seems a bit weird. You can define functions and optional parameters like this:
function myFunction(a = 1, b = 1, c = null, d = null, e = true) {
return a * b;
}
Then people don’t have to call your function with
myLibrary.myFunction(1, 7, null, null, true);
they just call your library with
myLibrary.myFunction(1, 7);
You could add a default inside the method signature, like:
function myFunction(a = 1, b = 1, c = null, d = null, e = true) {
if (c === null) {
c = 5;
}
return a * b * c;
}
because if you define it in the method:
function myFunction(a = 1, b = 1, c = 5, d = null, e = true) {
return a * b * c;
}
then if people still call it with
console.log(myFunction(5, 2, null));
Then the default c = 5
is overwritten by null, and results in 0.
I don’t know if you really need to handle all that though, instead of just doing c = 5
- if people intentionally call your library with null, and things go wrong…? well yea ok, don’t do that then.
But it depends on the use-case. If this is some method deep within a library, and some other calling method might be unintentionally dumping null into it, you could default it inside the method, and handle it
Since others already suggested mostly on-topic suggests, here’s an alternative suggestion:
Instead of looking specifically for a mentor - look for an open source project that you can help with. Ideally one with a discord or something to it’s easy to be in contact the the lead dev. A lot people don’t mind mentoring juniors, but in my experience it doesn’t happens that explicitly - “be my mentor” - and it might sound like you’re asking them a lot.
If you invert it into “Hey I wanna help you with your open-source project, but I don’t really know what to do, what your expectations are, how to implement a specific feature” - then you’re offering to do work them, instead of asking for something. And implicitly you’ll get mentorship in return.
And “real” projects probably also look better on your github / portfolio than only some dummy projects for learning purposes
If it’s a public repo, revoke the key (on your own/company repo it might not matter so much)
Then
git reset head~1
git push - f
Interesting idea to store github comments inside git, the article just isn’t very clear to me on how to actually do it.
He’s talking about using an “internal CLI tool” so I guess it’s not a public tool?
But anyways, this kinda sounds like something you could do though a Github Action right? Like if a PR is merged, run an action that also appends PR comments or other meta-data from github into git
I’ve started to prefer option A to be honest.
In C# I’m using Verify - So I prefer to just use Verify(state);
and compare the entire state against a json saved state, instead of manually verifying every individual property
Do you have any book recommendations?
I think The Pragmatic Programmer by Andy Hunt and Dave Thomas is a great book everyone should read every couple of years. It’s not really a lot of “low level coding tips” - more like overall paradigms
I’m always privating my repos because I’m not sure if I’m doing some horrible beginner inefficiency/bad practice where I should be embarrassed for having written it, let alone for letting other people see it.
Well that’s something not to do. Make you “horrible code” public, and ask people to do a code review. Or see what contributors want to change through a PR (if you’re so lucky). You’re not going to learn anything from others by hiding your mistakes. And no one besides you really cares if you’re committing horrible code.
It’s pretty hard to just give generic advice on how to write clean code, but if people can just tell specifically what you can improve it’s much easier
Me: building a fluent interface framework…
I already support aWrapperOf<T, T, T, T>
User: Can I have aWrapperOf<T, T, T, T, T>
because I’m doing something weird?
Me: *sigh* god-damnit. You’re right but I still hate it.
How essential are certifications in this field? Can I pursue a career without them or with only a few to kick-start my early career?
It depends what kind of company you want to work for. Most ‘real companies’ barely care about your diplomas or certificates. If you want to work from some consultancy company like SAP or Capgemini these certifications check checkboxes you need to have checked to get promotions
O(n)
? More Like Oh(No)
Hmm, I’m thinking - We should place a bunch properties and just name them something like "${username}" - "${password}"
and variations of that, and see we can “find/replace” cross-site script them into sending their bots details
Removed by mod
base63? I’d guess you’d mean base64?
Anyways, doesn’t that fuck with performance?
I’m using this in production: RT.Comb - That still generates GUIDs, but generates them sequential over time. Gives you both the benefits of sequential ids, and also the benefits of sequential keys. I haven’t had any issues or collisions with that
Yea, should have been V-00000000-0000-0000-0000-000000000008
instead
Before clicking the link and reading the article I was thinking… “Why would you put ‘Eclipse’ in the name? Don’t they know that like 10 years ago there used to be this horrible IDE for Java called Eclipse?”
Then opening the link…
Some seven years in the making, the Eclipse Foundation’s Theia IDE project is now generally available
git reset head~9
git add -A
git commit -am 'Rebased lol'
git push -f
Cowboy Programming:
PO: Hey we want to go to Mars
- 3 weeks of silence -
Developer: Hey I’m there, where are you?
I’m not entirely sure what you hope to achieve: have a GPG encrypted subject, and have ThunderBird automatically understand that it’s encrypted, so it can be automatically decrypted?
Since you’re saying you’re building software to support this, what are you building? A ThunderBird plugin that can do this? Or just standalone software that you want to make compatible with ThunderBird default way of handling encryption?