Better HN
topnewbestaskshowjobs
Log inSign up

nawarian

86 karma · joined Aug 10, 2019 (7y ago) · 30 submissions

Submissions

comment 5y ago · link · parent

ResearchGate | Berlin, Germany | ONSITE: Working From Home, must come to Berlin | Visa support

Position is to work mostly with PHP in a very fullstack environment. You'll touch Java, golang, hadoop/flink and write queries to run in our hadoop clusters.

More info: https://www.researchgate.net/careers/senior-php-engineer-pro...

comment 6y ago · link · parent

I've read both documents a couple of times. I wonder what is in there that you believe should be in a "deep dive" or what is missing there in your opinion.

Thanks for your feedback and I'm keen to hear more from you :)

comment 6y ago · link · parent

Thanks a lot! I blindly fetched this from the reference mentioned there. I'll update this as soon as I have time (probably during this week) and also let the author of the referenced post know about it.

comment 6y ago · link · parent

I might be wrong here, as I'm not so close to Java development. But a language implementing JIT, at least to me, is interpreted.

Could you please point an implementation detail where a JIT-capable engine doesn't include interpretation in its runtime?

In every case, thanks a lot for your feedback!

comment 6y ago · link · parent

I should probably add this kind of thing to the article then. It is nearly impossible to state "Language X is compiled/interpreted/jitted".

I didn't explicitly say that JS doesn't come with JIT, because I'd be putting Node.JS and every browser engine in the same bag. I simply can't be sure about all of them.

I'll add very soon this caveat that the dialect (js, php, python) doesn't really matter and make it clear that I'm talking about engines, possibly directly point to them.

I hope you understand, though, that I wanted to make JIT as a concept understandable. The language comparisons are secondary.

Thanks a lot for your feedback!

comment 6y ago · link · parent

Thank you all for sharing your comments and thoughts. I'm unfortunately out of time today, but I'll try to address your comments asap :)

Cheers!

comment 6y ago · link · parent

Hey man, author here. Thanks for the feedback. I recently added adsense there and I'm testing with the amount of ads in the page. Currently I'm letting AdSense decide how many ads it should place and where.

But if you believe the amount is so harmful for your experience, don't worry. I'll be more than glad to reduce this amount.

Cheers!

8.

Deep Dive into PHP 8's JIT(thephp.website ↗)

100 points · by nawarian · 6y ago · 65 comments

comment 6y ago · link · parent

Small correction: php IS compiled, just not the way we're used with the term. See https://thephp.website/en/issue/php-8-jit/ for more information.

The answers below show a good solution for this issue: use static analysis tools in build time and potentially even as a pre-commit hook.

comment 6y ago · link · parent

Thanks for pointing this out. It annoyed me a lot as well. The whole "dark mode" css was a "better than nothing" thing, and now I'm collecting the "must fix" things. This is definitely on the list!

That said: the website is open source, feel free to submit a PR if you find time before I do :D

comment 6y ago · link · parent

Nothing that tools like Rector can't help you with.

I believe this extra step is incredibly important, given most of your dependencies you won't control and forcing strict types to them is not very clever IMO.

comment 6y ago · link · parent

Not yet: https://wiki.php.net/rfc/match_expression_v2#future_scope

comment 6y ago · link · parent

I'll definitely edit the post adding the relevant bits you mentioned.

Two special notes:

About 1. stdClass, you're right and I don't know why I just took it for granted without even testing. My Bad.

About 3. casting special types, you're right again. I didn't phrase it properly. Casting null to other types won't yield errors and casting resources too. Their values are normally nothing we should rely on, but doesn't mean one "can't" perform such casts.

Thanks a lot for your comments, they are incredibly helpful! Cheers!

14.

Everything you need (and don't need) to know about PHP's type system(thephp.website ↗)

115 points · by nawarian · 6y ago · 66 comments

15.

The most used PHP functions by frameworks(thephp.website ↗)

1 points · by nawarian · 6y ago · discuss

16.

A Snake Game Written in PHP (With Raylib)(thephp.website ↗)

2 points · by nawarian · 6y ago · discuss

17.

PHP 8's release schedule is now available(thephp.website ↗)

1 points · by nawarian · 6y ago · discuss

18.

PHP 7.4: JSON vs. MessagePack Benchmark(thephp.website ↗)

2 points · by nawarian · 6y ago · discuss

19.

Understanding PHP 8's JIT(thephp.website ↗)

1 points · by nawarian · 6y ago · discuss

20.

PHP will jump from 7.4 to 8.0(thephp.website ↗)

1 points · by nawarian · 6y ago · discuss

21.

A test-driven (programming) learning framework (examples in Rust)(thephp.website ↗)

2 points · by nawarian · 6y ago · discuss

22.

Current State of PHP 8(thephp.website ↗)

1 points · by nawarian · 6y ago · discuss

23.

PHP Generators Allow Coroutines(thephp.website ↗)

1 points · by nawarian · 6y ago · discuss

24.

How PHP Works Internally(thephp.website ↗)

2 points · by nawarian · 7y ago · discuss

25.

Meu setup de TDD com PHP (pt_BR / has english translation)(thephp.website ↗)

1 points · by nawarian · 7y ago · discuss

26.

I wrote about my TDD setup with PHP(thephp.website ↗)

2 points · by nawarian · 7y ago · discuss

27.

Engineering is not about programming, but problem solving(thephp.website ↗)

16 points · by nawarian · 7y ago · 2 comments

comment 7y ago · link · parent

From what I understand it is simply not useful to expect Bootcampers to have such knowledge. These courses are made to spit people out to the easiest part of the market: start ups and other (small) businesses willing to pay little and receive a lot.

Learning PHP, Python or Java for back-end development is ineffective for Bootcamp courses and bootcampers. They require you to understand programming instead of programming languages, for a quick and functional delivery.

IMHO: It is the role of such companies hiring these people to actually teach them how the "real world" looks like and shape them accordingly.

comment 7y ago · link · parent

I believe this question is not quite accurate. Node is happening in the real world, yes. But often companies with a couple of years in the market would have a different stack that isn't that hyped like JavaScript stuff.

They require actual programming skills, not programming language skills. And this I think is the most important part. I'm just not sure if we could ask this from Bootcampers, since their learning process is just sufficient to spit them out to the market.

30.

Show HN: I recorded videos in portuguese on how to start with PHP(youtube.com ↗)

1 points · by nawarian · 7y ago · discuss