|
Ape Fist posted:For the first time in 11 years of doing this poo poo I have been asked to present my degree for a company I'm supposed to be starting with in like 2 weeks. My degree in 'Web Design and Development' where I learned HTML, CSS, ES3 and Jasc Paint Shop Pro. My degree whose paperwork I lost when I moved to the other side of the Atlantic. My degree from which the Uni I got it from won't release re-prints without being able to take a direct physical print of my ID, which is on the other side of the Atlantic. And my notice period ends in 3 business days at my current employer. Great. You sure they're asking about the degree itself or just proof that you have it? My uni lets me view my transcript online - I'd just print that along with the phone number they can use to confirm it. I also feel like most reasonable people would allow it if you can log on to the university's web site using your university email address and view an online copy of it, and they could just call the university to confirm - the actual physical degree is actually probably less useful than that verification imo.
|
# ? Oct 5, 2019 16:51 |
|
|
# ? Jun 8, 2024 21:27 |
|
Ape Fist posted:For the first time in 11 years of doing this poo poo I have been asked to present my degree for a company I'm supposed to be starting with in like 2 weeks. My degree in 'Web Design and Development' where I learned HTML, CSS, ES3 and Jasc Paint Shop Pro. My degree whose paperwork I lost when I moved to the other side of the Atlantic. My degree from which the Uni I got it from won't release re-prints without being able to take a direct physical print of my ID, which is on the other side of the Atlantic. And my notice period ends in 3 business days at my current employer. Great. Give them the phone number for the registrar office of your college. If that’s not good enough, then you don’t want to work there.
|
# ? Oct 5, 2019 23:36 |
|
I like Bootstrap 3's style a lot better than Bootstrap 4's style. I think that aspects like the button colors being darker and more saturated, the removal of the default padding during the change from thumbnails to cards, and the larger text almost make the UI have this FisherPrice kind of look associated with the update to Twitter's UI. For personal projects, I'll stick with Bootstrap 3 with a custom grid system for now, but I might switch to Bootstrap 4 in the future and undo the changes I don't like, or maybe I'll wait until Bootstrap 5 comes out.
|
# ? Oct 6, 2019 22:18 |
|
Ape Fist posted:For the first time in 11 years of doing this poo poo I have been asked to present my degree for a company I'm supposed to be starting with in like 2 weeks. My degree in 'Web Design and Development' where I learned HTML, CSS, ES3 and Jasc Paint Shop Pro. My degree whose paperwork I lost when I moved to the other side of the Atlantic. My degree from which the Uni I got it from won't release re-prints without being able to take a direct physical print of my ID, which is on the other side of the Atlantic. And my notice period ends in 3 business days at my current employer. Great. What on earth is this irrelevant, micro-manage-y poo poo? Lumpy posted:Give them the phone number for the registrar office of your college. If thats not good enough, then you dont want to work there. What he said.
|
# ? Oct 7, 2019 12:43 |
|
Update: The Company hiring me doesn't give a poo poo whether or not a 13 year-in-the-field Developer can provide a degree in HTML & CSS from the mid 00s and they're scolding the 3rd party people checking company for pressing for it.
|
# ? Oct 7, 2019 16:23 |
|
That's the best possible reaction and I am seriously surprised it's happening that way.
|
# ? Oct 7, 2019 17:00 |
|
Ape Fist posted:Update: The Company hiring me doesn't give a poo poo whether or not a 13 year-in-the-field Developer can provide a degree in HTML & CSS from the mid 00s and they're scolding the 3rd party people checking company for pressing for it. Oh good. Yeah that would have been some dumbass poo poo.
|
# ? Oct 7, 2019 17:54 |
|
Ape Fist posted:Update: The Company hiring me doesn't give a poo poo whether or not a 13 year-in-the-field Developer can provide a degree in HTML & CSS from the mid 00s and they're scolding the 3rd party people checking company for pressing for it. Just be sure to show them your finest geocities design, just in case
|
# ? Oct 7, 2019 17:55 |
|
dupersaurus posted:Just be sure to show them your finest geocities design, just in case Or your BEST Myspace theme.
|
# ? Oct 7, 2019 18:02 |
|
dupersaurus posted:Just be sure to show them your finest geocities design, just in case Excuse me I was an Angelfire man thanks.
|
# ? Oct 7, 2019 18:36 |
|
Ape Fist posted:Excuse me I was an Angelfire man thanks. Oh ho ho look at this fancy guy
|
# ? Oct 7, 2019 19:03 |
|
No wonder they wanted to double check his diploma. What a bold claim.
|
# ? Oct 7, 2019 19:11 |
|
Has anyone here used Tailwind or other utility first CSS frameworks (e.g. Bulma) with React? Maybe in conjunction with styled-components or emotion? Considering moving the basics to Tailwind, extracting repetitive styling into components, and doing advanced stuff with styled-components. Everything in this website uses styled-components today which seems to have opened us up to a lot of inconsistent CSS across the site. I'd be excited to be forced toward a modicum of consistency (rather than the "9pt here, 10pt here, 11pt here" styles I come across). I'm mostly looking for someone to alleviate my concerns around the pitfalls of functional CSS that might come with using a utility-first framework.
|
# ? Oct 7, 2019 19:18 |
|
Ruggan posted:Has anyone here used Tailwind or other utility first CSS frameworks (e.g. Bulma) with React? Maybe in conjunction with styled-components or emotion? I'm doing exactly that (added Tailwind to a styled-components project, for mostly the same reasons) and I'm very happy with it. Really the only problem I've had is I couldn't figure out a good way to share values between my tailwind.config.js file and my src/styles/theme.ts file so for now I just have all my colours and a few other things duplicated. Tailwind is really nice for 90% of stuff, styled-components works well when you need to do more calculations or when you need something to be able to style its children. If you're going down that route I would recommend extracting React components though and not making custom CSS classes (I believe the Tailwind docs also recommend that now)
|
# ? Oct 7, 2019 19:35 |
|
Question about webpack 4 optimization: We have a library at work for our UX component framework that gets imported by individual projects. There's an entry point for each kind of UX thing (buttons, icons, etc) that gets built into its own file. There's no webpack optimization applied so there is an extreme amount of duplication happening in each file. I need to preserve the structure of one-entry-one-file, but split out all of the commonality. So if you naively turn on split chunks, then all of the duplication goes away. Except that there's a lot of components using other components, which means that a lot of the library gets optimized out of its entry file and into the shared bundle, which breaks the projects that try to import it via the entry. Is it possible to get webpack to preserve the entry points? I feel like the answer is in cacheGroups but I can't figure out the way to do it.
|
# ? Oct 17, 2019 19:53 |
|
So I'm looking to deploy my personal site as a Gatsby site, using Nginx on Debian 9. I want to set up a little bash script that will: git pull && yarn build and send a 200 or 400 status via a Github webhook when a PR is merged. And also log any errors to a text file. Can anyone point me to a helpful guide? I'm not so great with bash.
|
# ? Oct 20, 2019 06:11 |
|
Grump posted:So I'm looking to deploy my personal site as a Gatsby site, using Nginx on Debian 9. This is a different way of getting to where you're trying to go (I think), but you could use dokku. Basically, when you push or merge, it automatically re-deploys your site. It's been years since I've used it and I've not used it with modern stuff like Gatsby, but I bet it'd do what you want.
|
# ? Oct 20, 2019 17:58 |
|
Grump posted:So I'm looking to deploy my personal site as a Gatsby site, using Nginx on Debian 9. Go use a cloud-based CI like CircleCI or Travis to do be hooked up your Github repository, build and deploy your site to your host. They're super easy and free. I use Circle to deploy my Gatsby site: https://circleci.com/gh/BayPhillips/gatsby-blog
|
# ? Oct 22, 2019 20:34 |
|
I do this with azure devops and have the site deployed to azure blob storage.
|
# ? Oct 22, 2019 20:45 |
|
Apollo / GraphQL wizard people: How do I fetch additional data with the same shape as a query I just ran? Use case is a chart that renders data based on some asset id:code:
JavaScript code:
Has anyone done something similar, and what would an approach to this type of thing in GraphQL be? I know how I would do it with Redux and grabbing data with fetch, but I'm still a relative Apollo / GQL n00b.
|
# ? Oct 22, 2019 20:54 |
|
Lumpy posted:
JavaScript code:
|
# ? Oct 23, 2019 00:02 |
|
Oh cool I didn't know that existed, I've just been doing queries manually with useApolloClient() when I want to run them in response to user action but this looks even better.
|
# ? Oct 23, 2019 00:39 |
|
IAmKale posted:Seeing useQuery() there, it looks like you're using @apollo/react-hooks. In that case, its useLazyQuery() method may be what you want instead: Interesting. Seems I'll have to build out my own local store for previous query results though. This is similar to the supplied refecth you get with useQuery in that the `data` is wholesale replaced, yes? Was hoping to be very (very) lazy and have Apollo keep adding stuff to `data` for me.
|
# ? Oct 23, 2019 15:30 |
|
Apollo does have the fetchMore function that you can pull out of useQuery, usually I use it for pagination but I guess there's really nothing stopping you from using it to fetch with different variables.
|
# ? Oct 23, 2019 16:40 |
|
Lumpy posted:Interesting. Seems I'll have to build out my own local store for previous query results though. This is similar to the supplied refecth you get with useQuery in that the `data` is wholesale replaced, yes? Was hoping to be very (very) lazy and have Apollo keep adding stuff to `data` for me. Since we're now talking about Apollo's caching, it's worth looking into how it lets you update cache after a mutation: https://www.apollographql.com/docs/react/api/react-hooks/#options-2. The lazy way is to specify a query to be run afterwards in the refetchQueries property of the options object you pass into useMutation(). Optionally you can manually update the cache using the update property as described here: https://www.apollographql.com/docs/react/v2.5/essentials/mutations/#updating-the-cache IAmKale fucked around with this message at 16:48 on Oct 23, 2019 |
# ? Oct 23, 2019 16:41 |
|
Working away on a personal project in Vue and I've been using Vuetify as a component library. They have buttons that can be placed into a "loading" state using a prop which works well when you have one or two buttons: just bind the loading prop to a boolean data property that you toggle to true when loading something. But I have a page with a whole bunch of buttons, so I want to be able to uniquely toggle the loading prop for specific buttons without having to create a property for every single button (especially since the buttons aren't known until runtime - they're data driven). Anyone ever tackled this? It seems like a common enough scenario but I'm too new to this front end stuff to be sure of what exactly I should Google. Edit: I tried this, but it didn't work - I suspect because the indexes are not observable since they don't exist when the component is mounted. code:
putin is a cunt fucked around with this message at 02:50 on Nov 2, 2019 |
# ? Nov 2, 2019 02:41 |
|
You’re close. You can’t modify an array or its length directly. Use an array mutation method that Vue has a wrapper for (see 2nd link below) or one of the $set helpers. Read these: https://vuejs.org/2016/02/06/common-gotchas/ (see #2) https://vuejs.org/v2/guide/list.html#Array-Change-Detection
|
# ? Nov 2, 2019 04:13 |
|
Ruggan posted:You’re close. You can’t modify an array or its length directly. Use an array mutation method that Vue has a wrapper for (see 2nd link below) or one of the $set helpers. Ah of course, thanks! I ended up doing roughly the following code:
|
# ? Nov 4, 2019 06:00 |
|
I'm really starting to get into the weeds with optimizing our webpack build, which at this point is mostly making and staring a lot of webpack-bundle-analyzer graphs looking for rogue KBs here and there (still need to push the gzip button, but that's above my pay grade). One thing that I'm noticing a lot is that, according to the graphs, the webpack output of individual files -- even after minimizing and uglifying -- are bigger than the source files, often buy quite a significant margin. On one hand I can understand that to a degree: JSX hides a lot of JS junk, and SCSS hides a lot of CSS junk. But it also seems like something wrong is going on; stuff like the parsed size of an SCSS file being reported as 23KB when the source is 5KB. Is comparing sizes like that even valid? Or am I probably right that something wrong is going on? code:
|
# ? Nov 5, 2019 16:55 |
|
Angular 9 is in RC, the Ivy Engine is finished and a Hello World app is 7kb. Wrap it up Reactailures.
|
# ? Nov 6, 2019 07:26 |
|
every time I look at angular code I want to vomit
|
# ? Nov 6, 2019 08:02 |
|
psh yeah well I just wrote an entire hello world app in vanilla HTML that clocks in at 39 bytes, how bout dem apples
|
# ? Nov 6, 2019 20:20 |
|
nobody actually cares about bundle sizes
|
# ? Nov 6, 2019 20:33 |
|
Well, yes they do, it's just that "Hello world" as a benchmark for bundle size seems silly.
|
# ? Nov 6, 2019 20:39 |
|
“I guess I can live without that functionality if it’s really going to increase bundle size,” said no product manager ever.
|
# ? Nov 6, 2019 20:48 |
|
prom candy posted:nobody actually cares about bundle sizes Yeah, it's weird how much press bundle sizes get and how little anyone actually cares. Of course, there's all sorts of studies showing how having to wait one additional ms for a page causes 99% of people to give up on the page...but unless you have a totally data-driven organization MOAR FEATURES and less developer time (aka, using libraries instead of rolling your own tiny and focused functionality) always seem to be the rule of the day.
|
# ? Nov 6, 2019 23:09 |
|
I'm stumped. How do I get keycode data on Android Chrome? I've found various answers ranging from: * just don't get keycode data. You can live without it, right? You pussy. * use keyDown or keyUp (but this returns event.keyCode == 229 for everything -> this is because Android Chrome doesn't actually support setting keyCodes anymore. The explanation being that mobile devices aren't like keyboards in that autocorrect or whatever may change the actual value before the keyUp event.) * use onChange or onInput. This only works on input elements. Compare the previous value of the input element with the new element and infer the keycode that way. (this seems... kind of ridiculous to me) These aren't perfect solutions either. What if I wanted to support unicode or non-visible characters? Or if I was writing something weird like a game engine where I needed to track arrow keys or something? Every single javascript text editor is working on mobile so apparently this problem has a solution. (I'm looking through the code to understanding it, but the suspense is killing me.) And lastly, I could probably just use a framework like Angular or something, right? But now it's really bugging me. How did those frameworks solve the problem?? ============================================== e. So it looks like a lot (all of?) the javascript editors and stuff have a tiny hidden <input>, <textarea>, or contentEditable element that holds state and everything that looks nice is mostly smoke and mirrors. Keeping the visible components in sync with the textarea state means that they don't need to know what the keycodes are either. I also personally confirmed that on slatejs, the keycodes show up in the console as "Undefined" when you are on Android. I'm going to pre-emptively say that's it's impossible to get the keycode, but you actually 100% can live without it. vv Cory Parsnipson fucked around with this message at 06:54 on Nov 7, 2019 |
# ? Nov 7, 2019 05:57 |
|
Thermopyle posted:Yeah, it's weird how much press bundle sizes get and how little anyone actually cares. How much does that even apply if you're not making like ecommerce or marketing sites though? Companies pay thousands of dollars to use our product, as long as it's not noticeably slow they're not going anywhere. An extra 20 or even 200kb of JavaScript isn't going to matter to them, especially since the vast majority are on broadband internet in their offices. When we redo our marketing site then I'll get serious about bundle size and TTI and all that fun stuff
|
# ? Nov 7, 2019 06:08 |
|
Ruggan posted:every time I look at angular code I want to vomit Basically you have to remember that Google went "What if ASP.NET lived on the client side?" which I guess may or may not be a good thing. If you follow a strict architectural convention for Angular it's fairly tidy but you need to go hog wild with abstraction to make it work. Basically you better be sure as gently caress you've designed everything about this app before you write a single line of code or it's going to get really messy really quickly. Anony Mouse posted:psh yeah well I just wrote an entire hello world app in vanilla HTML that clocks in at 39 bytes, how bout dem apples Whoa
|
# ? Nov 7, 2019 08:05 |
|
|
# ? Jun 8, 2024 21:27 |
|
prom candy posted:How much does that even apply if you're not making like ecommerce or marketing sites though? Companies pay thousands of dollars to use our product, as long as it's not noticeably slow they're not going anywhere. An extra 20 or even 200kb of JavaScript isn't going to matter to them, especially since the vast majority are on broadband internet in their offices. If you have a dedicated SEO person in house which you absolutely will have if you work at a company that produces a lot of public facing poo poo then you're going to be pestered constantly about lighthouse audits. It gets even worse if the client is really close to your products and all they do all day long is scream and shout about SEO, and your sales team promised them no interruption in SEO/Performance. So yeah there's plenty of times when bundle sizes actually do matter. Ape Fist fucked around with this message at 08:26 on Nov 7, 2019 |
# ? Nov 7, 2019 08:10 |