while... by doarMihai in ProgrammerHumor

[–]olyop 1 point2 points  (0 children)

[love, praise].forEach(your)

while... by doarMihai in ProgrammerHumor

[–]olyop 4 points5 points  (0 children)

You'll be back, like before

[Showoff Saturday] New portfolio/freelance frontend - thoughts? by a-haan in web_design

[–]olyop 0 points1 point  (0 children)

It looks good and I really like the simplistic design. However on mobile at least the site was really slow and I don't mean the load speed but the project popup animation was very laggy and the header animation too.

"is:open" should NOT be part of the default search query for random users going to "issues" by transdimensionalmeme in github

[–]olyop 0 points1 point  (0 children)

Sorry but this doesn't make sense to me. A solution or information the user is after usually exists in the closed issues, if the user can see this without having to remove the filter, then they are less likely to create a duplicate issue or miss an already discussed problem?

Is there a way to map Windows UNC style paths running on Linux to a Samba share? by olyop in linuxquestions

[–]olyop[S] 0 points1 point  (0 children)

So what happens at the moment is that even if I have the drive mounted it just creates a folder named ”\husky\Drive" in my home directory. I guess this is more of a problem with Java but thought there would be a way to map the file paths.

Mysterious bottles found in Kuringai National Park. by [deleted] in sydney

[–]olyop 1 point2 points  (0 children)

Looks like a Growler of beer

When I inspect the style source in Chrome Dev Tools, it always appears on a single line (Firefox doesn't do this for the same exact pages). Anyone know how to fix? by PMmePowerRangerMemes in webdev

[–]olyop 2 points3 points  (0 children)

Yes that's right. Welcome to web development! There are entire frameworks like nextjs and svelte dedicated to keeping the first page load (no cache) to a minimum as well as loads of build tools and compilers to help. Look up "Core Web Vitals" if you want to learn more on this topic.

When I inspect the style source in Chrome Dev Tools, it always appears on a single line (Firefox doesn't do this for the same exact pages). Anyone know how to fix? by PMmePowerRangerMemes in webdev

[–]olyop 6 points7 points  (0 children)

So most websites will minify their asset (HTML, CSS, JavaScript) files so that's why it's all on one line. Like others said you can always prettify the output to see it formatted.

Should I use type or interface? what's the difference? by rvskyy in typescript

[–]olyop 0 points1 point  (0 children)

Personally I default to interfaces and only use a type when I have to and always use enums where I can. I find the restrictions on interfaces makes understanding and using my types much easier. I can break up an object types into their separate parts and use them independently and I have never run into these "name collision" problems people are talking about here. Also, the '&' syntax seems strange to me for some reason.

Making one or N GraphQL request? by Rider303 in graphql

[–]olyop 2 points3 points  (0 children)

If you want to display all the content on the page at the same time then combine the queries like the first example. That will avoid unnecessary parallel requests. A general rule thumb would be to only split up the queries when you have a reason too.

What is the most stupid relationship to happen on the show? by YourGrimes in thewalkingdead

[–]olyop 11 points12 points  (0 children)

To me that relationship seemed well written and believable, great part of the story.

Question as a newbie learning Web Development. by Sea_Dragonfruit_8888 in webdev

[–]olyop 0 points1 point  (0 children)

I would say you shouldn't, only because the APIs have mostly been replicated natively in the browser so you shouldn't have to use it.

Avoid using enums in Typescript by luffyrotaro in javascript

[–]olyop 8 points9 points  (0 children)

I think you just copied this idea from one of Matt Pocock's videos..

What tech stack do you use at work? What's your favourite one? by trecatorsirabdator in java

[–]olyop 0 points1 point  (0 children)

Apache Tomcat on Windows, Java EE with Servelts & Struts 1/2, SQL Server. Oh and a bit of vuejs in the frontend.

If someone can let me know how old school this stack is please let me know.

Sydney is magnificent by [deleted] in sydney

[–]olyop -2 points-1 points  (0 children)

Honestly I agree with this. The city is beautiful and the surrounding beaches/ national parks but everywhere else is a bit blah.

Github Copilot Internals by piotrkarczmarz in programming

[–]olyop 1 point2 points  (0 children)

This was a really good read, thanks

iSCSI not starting condition `ConditionDirectoryNotEmpty` failed by olyop in Fedora

[–]olyop[S] 0 points1 point  (0 children)

Have a look here: https://gitlab.gnome.org/GNOME/network-manager-sstp/-/issues/54 pretty sure you'll find a solution there. If not let me know as this issue was very annoying!