2,911 karma · joined Oct 19, 2016 (10y ago) · 544 submissions
comment 5y ago · link · parent
From the numbers I've seen, DevOps people are the best paid of all types of developers, but they aren't closer to business problems than React/Rails devs.
I think it has more to do with the fact that most embedded developers are working on niche platforms and niche problem domains, so they don't enjoy the same level of job mobility as React/rails devs, who in turn don't have as much mobility as a DevOps person.
Moving companies is by far the easiest way to get a pay rise. Job mobility gives you more negotiating power, and thus a higher salary.
comment 5y ago · link · parent
def strip_suffix(filename):
"""
Removes the suffix from a filename
"""
return filename[:filename.rfind('.')]
def test_strip_suffix():
It completed the test function like this: # test stripping of a suffix
a = strip_suffix("I_am_file.txt")
assert a == "I_am_file"
Compare this with GitHub Copilot, which gives: """
Tests for the strip_suffix function
"""
assert strip_suffix('notes.txt') == 'notes'
assert strip_suffix('notes.txt.gz') == 'notes.txt'
GPT-J also gave a bunch of explanation on how to use the generated code: So this goes in a file called my_file.py and when you run python3.4 -m my_file.strip_suffix you should get the following output
C:\Users\user\Desktop>python3.4 -m my_file.strip_suffix
'strip_suffix'
C:\Users\user\Desktop>
So the strip_suffix function which strips the suffix from a filename is called as part of a larger code that uses some functions from the file. To tell Python what functions are available in a file you just need to put #-comment characters on the first line and then the functions that you want to use, and the first line will be taken as the function documentation:
#-*- coding: utf-8 -*-
#comment
def func_one():
'''
Documentation for function one.
'''
print("This is the doc for func_onecomment 5y ago · link · parent
It was in a file called "find_files.sh", and the command it generated was something like:
> find .... -exec ... {}\;
The problem is that there's no whitespace between the {} and \; and this is rejected by both GNU and BSD find.
It might've just been a mistake that someone made while putting the landing page together. But if it was generated, then how?? I can't imagine there are many (if any) instances of "{}\;" in the training data, since it's not a valid invocation of the find command...
comment 5y ago · link · parent
For complex things, it's nice to be able to do this. But the benefit of having a built-in client is that it works out of the box. This looks like it requires more configuration than many of the existing (n)vim lsp clients, even for the most basic thing: setting up the keybindings.
comment 5y ago · link · parent
https://twitter.com/RunDaltonRun/status/1408578486046887939
This thing is for tracking what you look at, and is supposed to help the store figure out how to "optimize" their shelf.
comment 5y ago · link · parent
I love this. I don’t know why the “agile board” became a thing. To me it always seemed like a poor way to visualize what is a list of items.
My problem with agile boards is that they place tasks into separate columns to denote the task state, which often cuts off the task description (and can require a lot of horizontal scrolling). It also prevents using columns for other fields like the Assignee (as the table view in the new GitHub Issues does).
comment 5y ago · link · parent
https://www.researchgate.net/publication/289373031_Environme...
comment 5y ago · link · parent
I don't think very much. This is a contenteditable <textarea> element with a CSS transform to project it onto the screen in the photo.
From digging through the minified js, there's just a small amount of code that sets it up and puts some canned text in there (of which there are a few choices, but still not a huge amount).
comment 5y ago · link · parent
> So I think it's awesome that some people want to do this work. I hope they do it full-time, and that lets me do my thing full-time.
If you're lucky and your company lets you pick whether you want to apply for a SWE role or an SRE role (like Google), then it will work out ok. But a lot of companies just used "DevOps" as an excuse to get rid of their ops teams and dump the work onto the dev teams.
Some places take it a step further and get quite toxic, and have a culture where there's a complete lack of sympathy for engineers who have a heavy oncall load. The idea is that their code is shit so they deserve to be woken up in the middle of the night, as some sort of punishment.
comment 5y ago · link · parent
This may be good advice for Zoom, but is bad advice for Microsoft Teams.
When Teams displays your portrait-shaped video in on a computer, it crops the top and bottom to make it fit in the grid view, which has landscape rectangles. So what you're left with is a zoomed-in picture of your nose (or thereabouts).
> Video and audio quality need only be adequate...microphone in your laptop are sufficient
This one's questionable. I've got an external microphone and that the difference is huge. I would suggest people try to record themselves using a voice recorder app (there are websites that do this) and play it back just to test.
Good audio is probably more important than anything else IMO. Sure, some interviewers will have hangups about whether your home is tidy or whether you're dressed well, and these biases might unfairly change their assessment of your skills. But being unintelligible causes actual misunderstandings and slows communication.
comment 5y ago · link · parent
It’s be cheaper out in the suburbs, but even then it might be another few hundred a month.
I’m surprised that people are talking about things like electricity costs when real estate costs are so much higher.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Some (not all) hiring managers even treat this as an additional way to assess you, to see if you're the type of person who has done their research on the company and asks intelligent questions.
Much better to set expectations upfront and ask for half hour chat with the hiring manager (or even other team members such a tech leads) separate to the interview.
comment 5y ago · link · parent
Is there somewhere where I can get good data on where the electricity for Bitcoin mining comes from? The article itself says this:
> And the electricity the Bitcoin miners use overwhelmingly comes from polluting sources.
comment 5y ago · link · parent
Longer term though, I'd make sure we hire female investors into my VC fund. I'd take them along the journey of investing with this startup, and if I felt a female CEO needed to be replaced with a man, I'd discuss this with my investment partners. Any harsh feedback, if given, would be coming from all of us, and a mixed panel would be harder to accuse of sexism.