Details
-
AboutI code in anything I have to code in. but I just like how "go fish" sounds
-
Skillsgo,fish
Joined devRant on 4/7/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@davenall thanks for the idea!
-
@vane I doubt it, but since it's blockchain, it's very hard to fake time. You need consensus for every new issued second. There is now a niche for time farmers, that mine those seconds. We can finally control time as a community, and not by some centralized authority.
This is sooooo friggin awesome!!!
Where can I pre-order one? -
Is it serverless though?
-
In a lot of cases it holds true.
A person who doesn't know about memoization will write a slow program that consumes very little RAM.
Thing is, RAM is cheap, CPU power doesn't grow as fast as it had before.
.. Which reminds me. I just saw a youtuber show hints and tricks for phones. To increase storage and speed, clear the cache. Always clear the cache. -
Vue vs React - pros and cons.
What's a promise.
What are the steps of web page rendering and script execution
What's LESS
IDK actually. I'm just tangent to frontend development :) haven't done it in 2 years, but these are some of the things I'd want a colleague frontend developer to know today. -
10 million - no. 60 million.
If using python, simply use csvwriter in a loop.
I used psql directly to export CSV. In both cases the speed was bound by the write speed of the output medium.
In your case, you can even do parallel API read, if the order if objects isn't a concern, and if it is, you can still do it in parallel but do extra stuff to ensure order (commit when all threads are ready) -
PHP is just ugly as hell. So is JS actually, but for different reasons.
Python is the slowest of them on the web.
All of them are slow when compared to compiled languages.
But more importantly, it doesn't matter as long as you create something and try to make it good. -
Well at least it's not a orphan killer
-
@linuxxx less than 5% of people understand what "Tracking" means. The word itself is misleading and framed in a negative connotation. People can't choose what they can't understand. And they don't want to understand about it when they're trying to see how much a vibrating waterproof rubber duck costs on a particular website.
As for big companies - they're the ones usually following customer wishes best of all. Small companies are the biggest culprits. For example when I had to pay the city tax in Milan, the representative of the company that provided rental apartments simply called someone on the phone and started dictating info from my passport and my debit card. That's like one of the most important parts of GDPR being shat on. And if they did that in front of me, how do you think, what's gonna happen with my check-in form and other, quite sensitive personal information?
And small companies get away with it. Big companies wouldn't even dream of it. -
@linuxxx with the <insert big company name that handles hundreds of thousands of customers> that I work at, nothing really changed. We were responsible with customer data in the past, we respected customer wishes (if we spam a customer, that customer is lost to us). Nothing changed on this front. It was in our best interest to serve the customer in the best of our ability.
What did change, was that some people had to write a fucking dissertation on customizing tracking scripts. Why? Because when faced with any dialog, customers don't even read it, and press the "X". When interviewed, most opted in for being tracked if that improved their website experience (for us to know what they're looking for, based on past behavior), and save their time in the process. But when faced with that dialog, around 10% press the button to accept being tracked.
It's an exercise in framing (referring to Kahneman's work), and GDPR forces a kind of framing that deters user-friendly interaction. -
@linuxxx it forces a user action, to click on something. I haven't done frontend development in some time, but in the past the browser imposed some security on certain actions.
For example you couldn't submit some kind of forms if the function call is not a result of an user action (click).
There have also been malicious sites in the past that would fish a click from the user and that would exploit a vulnerability in, say, Facebook, to post from your behalf.
I don't keep track of this stuff any more, but I've learned that there is A LOT, and that any page I visit for the first time deserves as few clicks from me as possible.
There's also the privacy factor. I can't track what information a website is tracking, but if I started a Session on a potentially clickbait site, I don't want to send another event with my click and give them more info about my visit.
I want the old fashioned way - I click, read the tile and top few rows, and if I like what I'm reading - I stay. -
Well unfortunately after such experiences, you learn to leave exactly at 6 or whatever. Nobody gives a fuck about you so why should you give a fuck about them?
Expect to be paid more for the work that you already do if you think you deserve it.
It would be great if effort and loyalty were appreciated, but the world is just too full of assholes. -
@sunfishcc yes, but 1+2 will always yield 3 in JS.
The trick is to get rid of the decimals part, so don't deal with dollars, deal with cents. Or if you want more precision, go for stuff like "millis" or "micros".
Basically $31.57 becomes 3157, or 31570 if you want more precision. There is only conversion on input and output, but inside it's all handled in these units. Unless you go for really big numbers, you're fine. -
What's wrong with regular Number?
It keeps its precision up to 2^53. You can safely store currencies (in cents) up to millions, which should be enough unless you live in Zimbabwe.
Edit: But if you're in Zimbabwe, you don't care about cents, or thousands, or even millions, so it's fine. Just do the cut-off at the billions and count the quintillions. -
@Caastor then slap on Raspbian and follow this guide:
https://opensource.com/article/17/... -
khanacademy has free online courses on DBs. Maybe that's a good place to start?
Also, you don't need a full computer for a DB server. Can you get a Raspberry PI 2, 3 or something? -
I like having tidy tools for every particular thing that I do.
Golang, Vala, Scala, populate the "shiny new tools, never opened, behind glass" shelf.
I've played around, but never gotten to actually needing to use any of them. -
@DarkVoyager that damn Slack,.. Hides so many skeletons that it could probably rule the world if it wanted to.
-
People want tests. They don't care whether it's unit tests or integration tests.
They want tests. Cheap tests. A way to point the program at some stuff and check its reaction. Integration tests that are smaller than full-on integration tests. Tests that shout "ERROR" with no clear indication what and why causes it. -
The primary key, change?
The primary key identifies the record like nothing else.
If something else identifies the record better, make THAT the primary key.
Unless it's a surrogate key in a table that is constantly rebuilt. -
I feel fine. My job is a nice 10 to 7. Deadlines? All of them soft. And since we're in charge of estimating work load, we meet deadlines quite often.
We have the same level of stress as any other person in the company. Maybe less than the CEO who is f***ed by the board.
In Germany people, and their needs, are respected.
Companies aren't. So if you're the face of a company - you're fucked. -
You can't know. Nobody measured.
FB should represent the average person though. DevRant has more only if in this day and age, programmers have above average intelligence, which is true because, first of all, it's a desk job, and desk jobs cannot be performed by mentally challenged people.
But there's no data available to me, to back any of that. -
I found the best way to learn for me was Wrox Press "beginning C#" by Karli Watson and David Espinosa. I got a huge push in programming from that book alone. They should have updated editions.
It's not free, but you can get it used for 1$ + shipping on some sites. Just won't be the latest, but most things that matter will still hold true. -
word.
-
So you're basically describing a newb, or sometimes a n00b. (I hope I don't have to explain the difference)
...
Dude...
We were all there.
Just... spark your memory a bit. Look through some of your old e-mails or something. People forget, but trust me, we've all been dumb newbs or even n00bs. We've all asked stupid questions, had stupid opinions, and were too lazy to RTFM.
And dude, when I was in school, I didn't know what a TAR file was, and now devs are looking up to my opinion on dev subjects to the point that it's making me uncomfortable.
Yeah, the barrier of entry is becoming lower because highly skilled devs are doing the hard stuff so that the rest don't have to. And that's fine. There are a ton of developer tasks, and only a few require top notch skills, while the rest are boring to highly skilled people. Let anyone join, there will be enough work for them if they have enough skills. -
well, at least it's not security at the local supermarket for 4 years. Waiters have to at least talk, interact, remember stuff, explain. In fact, I think a proper waiter's job is more difficult than mine, but just more boring.
-
Photography, crafts, gaming, books on biology and history, beer connoisseur
-
@mojo2012 and please forgive me. The last thing I wanted here is to make it an oppression olympics or a race of who killed more people.
Let's not forget that it's people we're talking about. I believe this senseless dispute is disrespecting every single victim of those horrible times.
How did the discussion get here from analyzing the economical development of 2 states in 2 completely different environments? This wasn't supposed to be about politics, ever. Just simple economics and a bit of politics-free history to put some context to it. -
@mojo2012 after reading through literature that presents more than one side of the argument, this is what comes out:
1. There is no consensus among historians whether it was a human caused famine or a natural disaster.
2. The Russians claim that there are no documents that could serve as evidence that this was intentional, despite what you wrote. And I tried to search for that order you mentioned, and the stupid search engine kept throwing something completely unrelated - order 227. Otherwise nothing that fits your description. Nor did I find anything more than circumstantial evidence - that Stalin was an asshole and control freak, that he issued a series of orders that greatly aggravated the situation, but all of that seems to be analyzed only from the local view, and not overall.
3. The facts DO point to a natural disaster playing a crucial role in this.
4. The official count is 3.1 million ukrainians dead. However just one camp, Auschwitz, killed 1.1M people. You can't compare -
@zemaitis welcome, but please take what I said with a grain of salt. I don't want to seem to advocate for any particular approach to anything. Careful weighing of options and proper planning before you commit to something, even if you think you know a lot, is the proper way to go.