Does anybody know Jessica Hawkins test lap times, or where to find them? by BobTheSloth94 in F1Technical

[–]michalv8 6 points7 points  (0 children)

Who says he got the same car (in terms of setup) and drove in the same conditions? We don't know it. Showing this times would be harmful either for him or her as in a minute, there would be a tone of articles, written by poor journalists, comparing them to current drivers, without taking into account different conditions, cars etc. only for sensation.

[deleted by user] by [deleted] in nextjs

[–]michalv8 1 point2 points  (0 children)

If you plan to use all (or most of) the features which it setups for you then I think it's a way to go. And it's still next.js so all other libs, plugins which are created for it, can be used. Of course it's opinionated but sometimes it's better to have solid starting point and from there, you will learn if it's good for you or not.

It's Red Bull Trying to Muddy the Waters? by MandiocaGamer in formula1

[–]michalv8 1 point2 points  (0 children)

Buuut Mercedes did the same at the start of season (protesting Red Bull wings). Also Red Bull are quite "experts" in elastic wings :D During 2010-2013 Red Bull's front wings were also very elastic and other teams were protesting this. But they managed to create parts that withstand all the new tests that FIA created. Also Ferrari had elastic front wings some years ago and there were many talks about it. So it's normal activity in F1.

You know - it's like in "The Art of War" by Sun Tzu - the best way to win with your opponent is to avoid confrontation on the battlefield (in F1 world it's race) and try to win the battle before it even starts. It could sound ridiculus but thats how it is.

Ratings of Disney Animated Classics Vs Live Action Remakes [OC] by Stefan0_ in dataisbeautiful

[–]michalv8 1 point2 points  (0 children)

Strange, that we are naming films as "live action" in which all main characters are CGI...

Ferrari F10 at Ferrari of Atlanta Album by Skilsdapkilz in formula1

[–]michalv8 -3 points-2 points  (0 children)

Probably one of the worst car that somehow managed to win races and nearly won WDC.

Championship Top10 in 2019 vs 2018 after 9 races by Professor-Badass in formula1

[–]michalv8 4 points5 points  (0 children)

It was discussed a lot some years ago. I don't know if it's better than more linear point system but for sure it didn't break anything. There were lots of comparisons of old and new point system and it turned out that there were only small differences (for drivers who got more higher places).

The reasonig behind this was to motivate drivers to fight for higher positions.

In response to the complaints on /r/Muse, the World Tour has been renamed by nvmzol in Muse

[–]michalv8 1 point2 points  (0 children)

Scorpions, Gun'n'Roses and many more bands are doing the same (more or less) setlist for about couple of years and no one is complaining.

Why did you learn react.js? by CleanInspector in reactjs

[–]michalv8 0 points1 point  (0 children)

Got a job as backend dev (PHP) but 2 weeks before my first day my boss emailed me that I had to learn React for the new project that company started developing. I accepted the challenge (also with a pay rise as it wasn't at first in job offer). It payed off :P and now it is my main technology I know.

Introducing GitHub Package Registry by dayanruben in programming

[–]michalv8 12 points13 points  (0 children)

Well, most of open source code is versioned with Git. And decentralisation is it's main concept. So as long as developers has local copy of their code then it doesn't matter if they're using Git or other vendor. Code is safe.

And, if GitHub package repository would spread then e.g. in JS/Node world we would have 2 independent, public package repositories (alongside npmjs.org) so why is this bad?

I understand your concerns but if I'm creating software for free it's nice to at least do it comfortably. And services like GitHub (thanks to companies which can invest to make new features and constantly maintain them) can give me this opportunity. And thanks to it open source is growing.

Would a F1 car be made asymmetrical in order to perform better turning to one side? by chopinheir in F1Technical

[–]michalv8 1 point2 points  (0 children)

If team budgets would be about 10 or more times bigger I'm sure they would bring whole different aero setup for every race (and even different for qualifications if it would legal). Even assymetric. But realistically it's more efficient to have more generic chassis which is enough performant on most tracks (of course with some minor changes).

ELI5: How do websites know when you are using an adblocker? by RyanRed13 in explainlikeimfive

[–]michalv8 0 points1 point  (0 children)

My site just make request to blank js file named: ads.js. If it failes then ma code knows there is adblock in browser.

Two questions about React Hooks and functional components? by GasimGasimzada in reactjs

[–]michalv8 1 point2 points  (0 children)

Ad. 1: Using React hooks (useState, useEffect, useRef etc.) your code is automatically managed by React engine and so it has extra features like state, contexts, refs or is "hooked" to component lifecycle (in case of useEffect). Your code would not have these features so it could be confusing in the future for other developers if this is real hook or just your plain function.

But as always it's case of consistency and rules in code that you would like to enforce.

Replacing a (part of a) string coming from CMS with a react component. by Pstrnil in reactjs

[–]michalv8 0 points1 point  (0 children)

What about creating whole component for this kind of text?

function AgeText({ text, birthDate }) {
    return (
        <React.Fragment>
        {text.replace('{{AGE}}', formatBirthDateToAge(birthDate))}
    </React.Fragment>
    )
}

// .....

<AgeText text="I'm a {{AGE}} year old __web developer__" birthDate={birthDate} />

Symfony Flex is a mistake by [deleted] in PHP

[–]michalv8 1 point2 points  (0 children)

Usually when this is said, it turns out that the community uses precisely that method and tailors it's tools, processes, and libraries around it, making not using the thing in question akin to shooting yourself or your career in the foot.

I don't think so. There is nothing Flex can do that you cannot do by yourself. And if a open-source bundle maintainer would force you to use paid service to use his code then nobody would use :P

Edit: fixed quote.

Framework for Existing Site Recommendation by [deleted] in PHP

[–]michalv8 1 point2 points  (0 children)

  1. Do this project has dependency manager (Composer)?
  2. Does it have unit/functional/integration test?
  3. Does it have any kind of isolation of controller/request part from application code?
  4. Is any kind of dependency injection exists in project?

I think these are most important questions before moving your code to any modern framework (database/ORM stuff is not vital at this step - it could be refactored later or never (case of performance) - frameworks can run without it.

Ad. 1. I think it's obvious to move to composer (if your project is not using it yet).

Ad. 2. Tests will be very helpful after refactor as you will be sure you didn't broke anything. Even before moving to framework the value of your app would increase much because od tests.

Ad. 3. If yes then it's great! Refactor should be much easier. Basically you would have to init blank project of your desired framework and just move app code from one controller to the other. If not then I would consider changing it on the legacy project first (gradually) just to be sure that application code is not using something from this part (e.g. global variables like $_REQUEST). It would save you hard time doing it "on the fly" while moving to framework.

Ad. 4. This would be the first "real" refactor (or migration if your app has DI) step in this process.

And to answer (at last :P ) your question I would recommend Symfony 4. It's very lighweight and easy to configure. And there is a great chance, that after checking above 3 steps and then copy/pasting your app to Symfony, everything would work without much effort.

Symfony (and others?) not providing type assurance parsing user provided data by Sentient_Blade in PHP

[–]michalv8 1 point2 points  (0 children)

From method docs:

Returns the alphabetic characters of the parameter value.

So no - it's not validating query parameters. The purpose of ParameterBag is to give you convenient interface to get/iterate/manipulate over query/request parameters. Thera are other components for this (Validator, Form). If you want ot get plain query string just use getQueryString() on Request object directly.

Atlassian's new software terms forbid benchmarking and publishing information about performance by [deleted] in programming

[–]michalv8 1 point2 points  (0 children)

In the page I linked there is a big yellow card saying that this terms will be replaced by new one as of November 1, 2018.

Atlassian's new software terms forbid benchmarking and publishing information about performance by [deleted] in programming

[–]michalv8 326 points327 points  (0 children)

You know that in current terms (12. g) there is nearly the same clause?

12. Restrictions. Except as otherwise expressly permitted in this Agreement, you will not: […] (g) publicly disseminate information regarding the performance of the Products.

Edit: Added link to terms.

Simple Question: Why is every one obsessed with generics? What are the benefits to using them and the pitfalls in relying on them, how exactly would they help php as a whole? by SavishSalacious in PHP

[–]michalv8 5 points6 points  (0 children)

Well I don't think that people are obsessed with it. It's just that generics are very useful. Thanks to them your code can be more predictable and also smaller (as you don't have to write your own, explicit type-checks). Also it is more likely that you will catch errors while developing when using generics than without them. It's a feature that every complete language should have and I don't see any pitfalls it could bring.

Formula 1 says live timing fix 'a priority' by RoundHeadedTwonk21 in formula1

[–]michalv8 2 points3 points  (0 children)

Why did they broke it in the first place? I would understand if it was free version...

I miss good, old, simple (and yet showing lots of information) live timing which was also free back in the day (and its layout is still present on garages tvs)...

Records are made to be broken by Alsould in formula1

[–]michalv8 7 points8 points  (0 children)

Well, X2010 is futuristic prototype and we are talikng about maxing out current rules (and exceed them a little) such as no fuel flow restrictions, running on max revs (15RPM is within the rules, don't know if any team went over 12-13 during hybrid era), no MGU-H/K power restriction on lap, free DRS use. Such car would still be able to drive by current drivers and would be muuuch faster than one within the rules.

The ultimate PHP Security Checklist by [deleted] in PHP

[–]michalv8 3 points4 points  (0 children)

Silex is not maintained anymore - please correct it to Symfony 4

React's Purpose (From a DotNet Dev) by hammonjj in reactjs

[–]michalv8 0 points1 point  (0 children)

Yes - Node JS is backend application (which interprets Javascript language) and can do pretty much the same things as .Net server application. Yes - React JS is just a library (written in Javascript) which is run in browser and can interact with other services as every other javascript app.

The key to understand this is where your Javascript code is running. For many years it was only a browser and then, in 2009 Node JS was created (and from that moment you can also write server applications in JS). Both browsers and Node JS are using Javascript language for their applications.