#then functionality and more styling with javascript
Explore tagged Tumblr posts
sc52 · 11 days ago
Text
ive been using as many sites/apps thru a browser as i can, with javascript disabled by default for most sites and the sheer amount of sites that dont even render anything at all is disgusting, you broke the basic contract of web development
progressive enhancement
you lil bitch
4 notes · View notes
orcelito · 9 days ago
Text
Working on my javascript for my web page. Turns out I have the perfect kind of setup to accomplish some of the project requirements, specifically with even handlers and user interactions
My website, conceptually, will load a different employee details page depending on what employee name is clicked on. But I need to load it dynamically (instead of hard-coding it) so that the user can add or delete employees & it'll be able to still load the relevant shit.
So! Only one employee details page, but depending on how it's loaded, it'll load a different employee's information. Still working on getting down Exactly how to do it (I'm thinking using URL parameters that'll read a different object depending on what ID is used)
It's entirely doable. In fact, it's probably extremely common to do in web pages. No one wants to hard-code information for every new object. Of course not. And thus the usefulness of dynamic javascript stuff.
I can do this. I can very much do this.
#speculation nation#i wasnt very good when i got home and i read fanfic for a while#then took a nap. and now im up again and Getting To Work.#i dont have to have this 100% perfect for final submission just yet. bc final submission isnt today.#but i need to have my final presentation over my thing done by noon (11 hours from now)#and im presenting TODAY. and part of that will be giving a live demo of my project website#so. i need to have all of the core functionality of my website down at the Very Least#might not be perfect yet. but by god if im gonna show up to my presentation with my website not working.#i need to have the employee list lead to employee details with personalized information displayed per employee#i need to create an add employee field that will Actually add an employee. using a form.#and that employee will need to show up on the list and have a new id and everything. the works.#need to set it up so that employees can be deleted. shouldnt be too much extra.#and it would be . interesting. to give an actual 'login' pop-up when someone clicks on the login button#with some kind of basic info as the login parameters. this cant be that hard to code.#the project requirements are: implement 5 distinct user interactions using javascript. at least 3 different eventhandlers#at least 5 different elements with which interaction will trigger an event handler. page modification & addition of new elements to pages#3 different ways of selecting elements. one selection returning collection of html elements with customized operations on each...#hm. customized operations on each... the example given is a todo list with different styles based on if an item is overdue or not#i wonder if my personalized detail page loading would count for this... i also have some extra info displayed for each#but i specifically want the employees to be displayed in the list uniformly. that's kinda like. The Thing.#actually im poking around on my web pages i made previously and i do quite enjoy what i set up before.#need to modify the CSS for the statistics page and employee details to make it in line with what i actually wanted for it#maybe put a background behind the footer text... i tried it before & it was iffy in how it displayed...#but it looks weird when it overlaps with a page's content. idk that's just me being particular again.#theres also data interchange as a requirement. but that should be easy if i set an initial employee list as a json file#good god im going to have to think of so much extra bullshit for these 10 made up employees#wah. this is going to be a lot of work. but. im going to do it. i just wont get very much sleep tonight.#that's ok tho. ive presented under worse conditions (cough my all nighter when i read 3gun vol 10 and cried my eyes out)#and this is going to be the last night like this of my schooling career. the very last one.#just gotta stay strong for one more night 💪💪💪
6 notes · View notes
krisztapwonderland · 10 months ago
Text
Please check out my Poshmark closet!
Please check out my favorite poshers as well below.
THANK YOU SO MUCH!
1 note · View note
robindavis · 11 months ago
Text
Shop more of my listings on Poshmark
0 notes
weepingwitch · 7 months ago
Text
have you ever wished you could stack all of the words on a webpage neatly on top of one another in one little pile?
set this following code as a new bookmark in your browser:
javascript:(function () { var t = document.body.innerText; var w = t.replace(/\n/g," ").split(" "); document.body.innerHTML = ""; for (var n in w){ document.body.innerHTML += "<span style='text-align: center; position: absolute; left:0px; right:0px; top:20px; z-index:" + n + ";'>" + w[n] + "</span>"; } })();
and then when you click on it, it will stack all of the words into a very neat little pile! very demure and space-efficient!
here's what it looks like before and after hitting the bookmark button while editing a post on tumblr web:
Tumblr media Tumblr media
isn't that so much more consolidated?
hope this helps someone :)
73 notes · View notes
gabessquishytum · 1 year ago
Note
Dream's a software developer (I could see either as an architect for that large-scale view mentality or as the Senior level dev that keeps getting asked to move into management type positions and just straight up refuses because he's been doing code happily for the past fifteen years and doesn't plan on changing that now).
He enjoys his job enough. He likes computers and code. It functions exactly as told (for better or worse) and appreciates the straightforwardness of it all. He's a bit insufferable to work with, but if you have an issue, he'll readily help (just be prepares for critiques on your code in the process).
Hob works at the same company as Dream, but as a front-end dev. The work he does for his day job is kinda boring. All standard corporate style web design. No fancy scripts or fun colors. But in his spare time, he weaves Javascript and CSS like a wizard and creates magical, animated scenes across the page. Would it be easier to just make a video and play it on the page instead? Sure, but where's the fun in that?
Dream and Hob get paired together on a small side project for work. Hob does the front-end work, Dream does the back-end. They get on each other's nerves at first, until Dream spots Hob tinkering with his personal code on their lunch break and is honestly a bit in awe. He's found code beautiful in its own right (the way one appreciates a well-oiled machine) but he's never seen it wielded in such a fashion before. This is the moment he falls just a little bit (read: a lotta bit) in love with Hob. He was already starting to fall for that endless charm and wit of his anyways.
The company hits the first quarter of the New Year and with it come layoffs. Hob gets fired along with some other devs from Dream's same team (a younger pair of devs: Matthew and Jessamy). A fellow named Will comes along to help Dream finish the project in Hob's stead and Dream hates every moment of it. He misses Hob, more than he ever thought he would.
So, in an impulsive rush of anger and longing, he quits the company because how dare it toss someone as good as Hob Gadling out the door without a thought? He's halfway to the café he and Hob had started frequenting together when he realizes that he's just thrown away a career fifteen years in the making. But when he finally gets to the café and sees Hob tapping away on his laptop, he knows he's made the right choice.
Dream slides into the seat across from him and proposes that they build something wonderful together. So they create a small business of their own. They become a freelance web dev team (and steal Jessamy and Matthew as well) and with their skills combined, they take off. It's not huge, but for their size, they're incredibly popular. And Dream's certain he's never enjoyed his work more than when he's working beside Hob.
Later on, Hob proposes to Dream via a custom website with the most beautiful web animations he's ever seen before. And of course, he says yes.
(If you're curious about what inspired this, here's the website: http://www.species-in-pieces.com)
This is such a good concept for a story!!! I really really love aus where Dream and Hob are coworkers. Dream being the grumpy, awkward guy who hides behind his coffee mug while Hob is the popular, chatty one who tries to get Dream involved in fun office activities or socialising after work - it makes so much sense to me.
And Dream quitting his long-term dream job because he's mad that genuinely talented people have been laid off? I love it. Dream just has this inate appreciation for hard work and good art, and that's exactly what Hob (and Jessamy and Matthew) do. How dare the stupid company not understand that they're firing people who deserve to thrive and grow in an environment which actually appreciates them? Everyone is shocked that Dream has quit (not only that, he sends around an email to everyone in the company from the ceo all the way down to the work experience guy, outlining exactly why he quit) because he seemed to be the type to play by the rules and never leave his comfort zone. Apparently, Hob has really helped him bloom into a much more confident person, able to express his principles and strive for better.
And Hob isn't surprised, because he always knew that Dream had the courage, talent and ambition to strike out on his own. Maybe he just needed a bit of love and understanding. Which Hob is only too happy to provide.
Their work together sometimes involves long hours and stress, but Dream wouldn't ever want to go back to the slightly soulless corporation where he used to be. Even if he's tired and a little frustrated by Hob’s disorganised workspace, Dream is perfectly content. There's nothing better than curling up in Hob’s lap while he taps away on a line of code. Plus, he has a great time building their wedding website. Hob got to propose, so Dream gets to celebrate their upcoming marriage with his own expression of love through code. The theme colours are, of course, black and red <3
69 notes · View notes
psshaw · 1 year ago
Note
You have been one of the most unapologetically yourself artists Ive come across and I dont mean that in the cliche way I mean like... your idiosyncrasies seem particularly unstifled. Your art is purely yourself and the mainstream isnt gonna go for it but the audience you do speak to gets to feel like an alien finding someone else from their homeland. AI image gen feels like a beautiful cake with flowery frosting and when you cut into it its actually frosting all the way down and has nothing of substance. I obviously can speak only in metaphors lol so I just wanted to say I appreciate reading your thoughts on AI and tho I feel strongly abt it I have a hard time putting exacting words to what about it is so worrying to me. As an artist it energizes me when I see artists who are wildly unique and expressing themselves without a care to their skill limitations or personal strangenesses (read: mainstream unmarketability). Manga artist ONE and his charming and funky style is a great example. Anyway I love your thoughts and wanted to say thanks and also throw words at you
FUCKIGN DAMN DUDE, ARE YOU TRYING TO MAKE ME CRY? Why is the weather getting misty on my face specifically. Thank you. My most contentious trait is that I keep forgetting to care what people want from me.
It's really interesting following people who are very honest but more mathy than me, because the way they talk about art and AI lately has gotten... increasingly callous. Even bitter. It's partly justified, because artists tend to suck at defending themselves charismatically. ("AI art isn't real art"; the "AI can't do hands" thing was always destined to age badly) But also, I can't stand the sheer selfishness of people who claim to be rational but don't seem know how to investigate what art at its best is for and why they view it the way they do. When I read "AI is great for hobbyists" I'm like. 95% of the time, I'M A HOBBYIST... I would never generate a script, or music... javascript maybe, but I'd feel guilty about it... but the excitement? I think some guys are just looking to suckle on a feeding tube. Cos they were done a disservice by thinking they had to stop visual art after fingerpainting!
I don't think AI NEVER has substance, but the type of person who gets excited about AI doesn't tend to do interesting things with it. And what really bothers me is that I can never tell exactly WHAT they did, versus how much was a coin flip. This is useless for understanding your voice as an artist. I don't care to see more by you.
ONE is a perfect example. His style MAKES that story. The manga and the anime feel so different. That's why I hate when people say that hating AI is discriminating against people who can't draw, cos like... if you can't make something intentional and real without using what's functionally a search engine, why would I believe you're having ideas worth the cliche conceptartdotcom overrendered AI polish at all? Not to be a dick, but like. In terms of rate of return on my attention investment, so far I'd do better by sitting at a craps table.
45 notes · View notes
agapi-kalyptei · 19 days ago
Text
Dark Mode / Light Mode on any page
Also a reminder that at least in Firefox, you can create a "bookmarklet", i.e. a bookmark that runs a little bit of javascript code within your browser to temporarily invert website's color. It also works for PDFs. It doesn't work 100% for every website, but in some cases it's more reliable (and more contrasting) than other auto-dark-mode extensions like DarkReader.
Just right click on the bookmark toolbar, click Add Bookmark, give it a name like "invert" and into the "URL" field, copy paste this:
javascript:(function() { let NEGAT='grayscale(0) invert(1) sepia(0) contrast(100%)'; if (typeof viewer !== "undefined") { viewer.style = 'filter: '+NEGAT; } else {if (document.body.style.filter == NEGAT) { document.body.style.filter = ''; } else { document.body.style.filter = NEGAT; } }})()
to explain what it does:
javascript:(function() { ... } )() just means, this is going to be javascript code, not an actual URL. (function() {})() ... means create a function and immediately execute it (when you click the bookmarklet).
The inside of the function is basically this:
create a helper variable that says "grayscale(0) invert(1) sepia(0) contrast(100%)" - this is a part of CSS instruction to just invert colors completely. black will be white, yellow will be blue, etc.
if a global variable called viewer exists, we're reading PDFs, so set its style to that negative mode CSS.
otherwise (we're reading a normal HTML page), set the style of the HTML element to negative, and if we already have the negative site, reset it. So that if you click the bookmark twice, you can revert it back.
Again, this doesn't work for all websites and I don't want to complicate it any further
Regarding privacy:
this runs only in your browser, doesn't transfer any data anywhere
if you refresh the page, the change disappears
this doesn't auto-activate, doesn't read any user data, doesn't save anything on disk, etc etc. If you don't trust me that's fine, just ask a trusted friend developer to review it.
3 notes · View notes
moose-mousse · 2 years ago
Text
So I made an app for PROTO. Written in Kotlin and runs on Android.
Next, I want to upgrade it with a controller mode. It should work so so I simply plug a wired xbox controller into my phone with a USB OTG adaptor… and bam, the phone does all the complex wireless communication and is a battery. Meaning that besides the controller, you only need the app and… any phone. Which anyone is rather likely to have Done.
Now THAT is convenient!
( Warning, the rest of the post turned into... a few rants. ) Why Android? Well I dislike Android less than IOS
So it is it better to be crawling in front of the alter of "We are making the apocalypse happen" Google than "5 Chinese child workers died while you read this" Apple?
Not much…
I really should which over to a better open source Linux distribution… But I do not have the willpower to research which one... So on Android I stay.
Kotlin is meant to be "Java, but better/more modern/More functional programming style" (Everyone realized a few years back that the 100% Object oriented programming paradigme is stupid as hell. And we already knew that about the functional programming paradigme. The best is a mix of everything, each used when it is the best option.) And for the most part, it succeeds. Java/Kotlin compiles its code down to "bytecode", which is essentially assembler but for the Java virtual machine. The virtual machine then runs the program. Like how javascript have the browser run it instead of compiling it to the specific machine your want it to run on… It makes them easy to port…
Except in the case of Kotlin on Android... there is not a snowflakes chance in hell that you can take your entire codebase and just run it on another linux distribution, Windows or IOS…
So... you do it for the performance right? The upside of compiling directly to the machine is that it does not waste power on middle management layers… This is why C and C++ are so fast!
Except… Android is… Clunky… It relies on design ideas that require EVERY SINGLE PROGRAM AND APP ON YOUR PHONE to behave nicely (Lots of "This system only works if every single app uses it sparingly and do not screw each-other over" paradigms .). And many distributions from Motorola like mine for example comes with software YOUR ARE NOT ALLOWED TO UNINSTALL... meaning that software on your phone is ALWAYS behaving badly. Because not a single person actually owns an Android phone. You own a brick of electronics that is worthless without its OS, and google does not sell that to you or even gift it to you. You are renting it for free, forever. Same with Motorola which added a few extra modifications onto Googles Android and then gave it to me.
That way, google does not have to give any rights to its costumers. So I cannot completely control what my phone does. Because it is not my phone. It is Googles phone.
That I am allowed to use. By the good graces of our corporate god emperors
"Moose stares blankly into space trying to stop being permanently angry at hoe everyone is choosing to run the world"
… Ok that turned dark… Anywho. TLDR There is a better option for 95% of apps (Which is "A GUI that interfaces with a database") "Just write a single HTML document with internal CSS and Javascript" Usually simpler, MUCH easier and smaller… And now your app works on any computer with a browser. Meaning all of them…
I made a GUI for my parents recently that works exactly like that. Soo this post:
It was frankly a mistake of me to learn Kotlin… Even more so since It is a… awful language… Clearly good ideas then ruined by marketing department people yelling "SUPPORT EVERYTHING! AND USE ALL THE BUZZWORD TECHNOLOGY! Like… If your language FORCES you to use exceptions for normal runtime behavior "Stares at CancellationException"... dear god that is horrible...
Made EVEN WORSE by being a really complicated way to re-invent the GOTO expression… You know... The thing every programmer is taught will eat your feet if you ever think about using it because it is SO dangerous, and SO bad form to use it? Yeah. It is that, hidden is a COMPLEATLY WRONG WAY to use exceptions…
goodie… I swear to Christ, every page or two of my Kotlin notes have me ranting how I learned how something works, and that it is terrible... Blaaa. But anyway now that I know it, I try to keep it fresh in my mind and use it from time to time. Might as well. It IS possible to run certain things more effective than a web page, and you can work much more directly with the file system. It is... hard-ish to get a webpage to "load" a file automatically... But believe me, it is good that this is the case.
Anywho. How does the app work and what is the next version going to do?
PROTO is meant to be a platform I test OTHER systems on, so he is optimized for simplicity. So how you control him is sending a HTTP 1.1 message of type Text/Plain… (This is a VERY fancy sounding way of saying "A string" in network speak). The string is 6 comma separated numbers. Linear movement XYZ and angular movement XYZ.
The app is simply 5 buttons that each sends a HTTP PUT request with fixed values. Specifically 0.5/-0.5 meter/second linear (Drive back or forward) 0.2/-0.2 radians/second angular (Turn right or turn left) Or all 0 for stop
(Yes, I just formatted normal text as code to make it more readable... I think I might be more infected by programming so much than I thought...)
Aaaaaanywho. That must be enough ranting. Time to make the app
31 notes · View notes
lackhand · 2 months ago
Text
pipe operator in js
Rescuing from my drafts ca march 2023. This is no longer actually true; my company folded last year and I'm back on my gamedev non-sense (bittersweetly!). More details on that soon.
Long time no post. I'm working in elixir these days; I couldn't sleep and so was catching up on modern JavaScript; I watched nerds snipe in the gutters.
what is pipeline?
You read this; you're adjacent to >=1 programmer. It's bash piping, the output from one function goes to the next.
There's a few ways to spell it, from the explicit:
const $0 = foo(input); const $1 = bar($0); const output = baz($1);
Explicit! Legible!
Cumbersome! Weave-y!
To the Hack-style syntax, where the pipe operator creates a variable within its right hand side's scope (sort of like this:
const output = input |> foo($) |> bar($)
Just sugar on top of the above (+ variable lifetime scopes, whatever)
Nobody can agree on the magical "previous expression result" symbol
when the pipe is a series of 1 arg f()s, the ($) extra characters are gross.
To the F#-style syntax, where the calls have to be arity-1 functions:
const output = input \|> foo \|> bar
Handles the happy path 1-arg f() beautifully
requires lambdas or currying and more care for every other case.
F# wins, right?
The community seems to think so.
But it has wrinkles; every method has to be 1-arg, and the hidden closures to enable that have performance impact.
My modest proposal
I wrote this because I didn't want to post on a six-year-and-counting language proposal, but I also had an idle fancy.
To me, the problem isn't a lack of a pipe operator or other functional support.
It's @#_-+&!ing left-hand assignment and community conventions.
You can even see it in the examples, where we have const foo, a bunch of really relevant details, and then wham, we're back to the start for the next line.
What we need is:
A right-hand assignment operator, so that after calculating a variable you can stick it somewhere. Without further thought, I propose =: but I'm sure there could be improvement.
=: assigns to the RHS, and to the special variable it. By default, assigns to _ (discards) -- in addition to it.
A new keyword & local variable "it". "It" is sort of like "this", with special rules about its meaning scoped to the function in which it appears. Typechecking must respect its most recent assignment (how high of a lift is this?!). Lambdas have their own standalone it (so you need to
A community that accepts using non-descriptive variable names & scoped type checkers for this purpose -- for instance, special syntax around right-assigning to $ such that it's type checkable, variable scoped, etc.
The semicolon "operator".
Then a pipe could be written:
input =:; foo(it) =:; bar(it) =: output
Potentially with parens in certain callsites, simplifying it a bit maybe, etc.
Things to improve:
It doesn't look like a pipe.
But is that so bad, when it makes the whole thing so beautifully explicit?
It breaks LHS/RHS naming and conventions (you're assigning?! To the right hand side??!). Doesn't delete foo[bar] do the same? This seems like a very core, very forgivable case to make the code match the language. I do not usually say "x takes the value seven"; I very often do say "store 7 as 'x'".
Real downsides: so many syntax highlighters, code awareness tools etc would need to understand polymorphic horrible "it". Combined with exceptions, the values of it in a catch clause feel pretty scary.
Still, food for thought.
2 notes · View notes
ufoofy · 1 year ago
Text
Let's talk about filtering and mapping! 🤓
I'm working on the menu page for a restaurant, and as someone with very little frontend experience I wasn't sure how to go about parsing through a JSON file to return certain objects.
After some searching, procrastinating, going through this course, and then more searching - I finally came across the documentation I needed here!
So what is filtering and mapping? .filter() and .map() are JavaScript methods.
filter allows you to filter through an array of objects given some logic (want to find all the items with an id greater than 7? filter. Want to find all the items where the name is equal to "burger" that works too, want to add multiple conditions to find all the items with and id greater than 7 AND the name is "burger" well filter has got your back).
map is used to iterate through an array and call a function on every element in it. I used it to map each item to a list.
Here's an example: We have a JSON file of some food items.
Tumblr media
We want to grab all the desserts from our menu and display them on the desserts page of our website. It's time to filter!
Tumblr media
Keep in mind that the filter method returns a new array with all the objects that we want. In this case when we filter we will get an array with all the desserts.
First we import our JSON file so we can access it.
Next, we create a constant called dessertFilter which will hold our filtered array. dessertFilter will hold all items that have the type equal to dessert. In our example it will hold the chocolate cake object.
Next, we map each item from the new array to a list. This is the list that we'll see displayed on the page. You can choose which properties you want to map. We only map the name, description and price since there's no need for the user to see the item type or id.
Lastly, our return statement contains everything we will see on the page. In our return we have a header and the list of items - we wrap our list, dessertItems in an unordered list since list items need to be wrapped in either an ordered or unordered list.
Here's our result! We can style this with css later.
Tumblr media
Cool! so we filtered for dessert but what about our other menu items? Time to make a reusable component.
Tumblr media
The code is almost the same, but to make this component reusable we create an interface. Interfaces define objects and specify their properties. We specify an object called filterSearch that will act as a placeholder - we set it as a string since the item "types" in our JSON file are strings. (I'm using typescript which accepts interfaces but i believe vanilla javascript does not).
Now lets see the component in action
Tumblr media
Import the component so we can call it.
When we call FilterMenu we have to include filterSearch from our interface. The component needs to know what we're looking for. Here we can set it to any valid type like "dessert", "drink", or "appetizer" and it will display them.
Woo! now we're filtering and mapping with one line of code! and we can reuse it for our other pages too.
Last thing, these methods are chainable! you can connect them and have the same logic in one constant.
Tumblr media
Before reading the documentation, I had seperate JSON files for each menu category and was reusing the same code to map each file on each individual menu page. It was a lot of duplicate code, not great. Now, I have a single JSON file and a reusable component. It's satisying how clean it is!
Learning on your own can be frustrating sometimes, it can be hard to search for solutions when you don't know where to begin. I had never heard of filtering or mapping before this. If you're ever stuck keep pushing! there's so many resources and communities out there.
p.s. I'm open to any suggestions!
10 notes · View notes
gordonfreemanspussy · 9 months ago
Note
faorite , FILE TYPE : ] hi
oh shit and my favorite filetypes tierlist:
.sh (bash script) GOD TIER. it just does stuff. you can make it do anything. anything.
.md (markdown file) GOD TIER. documentation, letters to self. a beautiful universal syntax for limited text styling. elegant and timeless.
.py (python script) PRETTY GOOD. can run on its own or be imported from another script, and can do different stuff depending which. edit: mixed feelings abt python interpreter and virtual environemtn stuff. forgot to mention that.
.h (c lang header file) HONORABLE MENTION. i don't use these a lot but this is where you declare the contents of your .c/.cpp file without writing the actual logic. you say these are the functions and classes they take this and give you that. Trust me bro
.json (javascript object notation) PRETTY NIFTY. not the most practical if you're looking to constantly be writing to this format imo, BUT we love it for configuration. simple, timeless, universal.
.txt (plaintext) SHIT TIER. it's just text bro. is it meant to be read on its own? use markdown. is it meant to store data in a specific format for program input? make up your own extension, i don't care.
i have more but this has gone on long enough.
4 notes · View notes
yourtechclub · 7 months ago
Text
The Role of a Frontend Developer: Crafting Engaging User Experiences
In the digital age, the frontend developer plays a pivotal role in creating the online experiences we interact with every day. From websites to mobile apps, these professionals are responsible for shaping how users interact with digital products, ensuring that every click, scroll, and swipe is smooth and intuitive. But what exactly does a frontend developer do, and why is their role so critical in today's tech-driven world?
What Is a Frontend Developer?
A frontend developer is responsible for the visual and interactive elements of a website or application that users interact with directly. They bridge the gap between design and technology, translating a designer’s vision into functional, responsive, and user-friendly interfaces. Unlike backend developers, who focus on the server-side aspects, frontend developers specialize in client-side development, working with tools and technologies that directly impact the user experience.
Key Responsibilities of a Frontend Developer
The main job of a frontend developer is to ensure that users can easily navigate, interact with, and enjoy the digital product. Here’s a breakdown of their core responsibilities:
Turning Design into Code: Frontend developers take the visual designs created by UI/UX designers and bring them to life using code. They ensure that what users see on their screen aligns with the intended look and feel, while also making sure it’s functional across different devices and screen sizes.
Responsive Design: With users accessing websites from various devices, such as smartphones, tablets, and desktops, frontend developers focus on responsive design. This means building websites that automatically adjust to fit different screen sizes and orientations, offering an optimal experience regardless of the device.
Optimizing Performance: A key part of a frontend developer’s job is making sure that websites load quickly and perform smoothly. They optimize images, manage scripts, and streamline code to ensure fast loading times, as slow websites can lead to user frustration and high bounce rates.
Implementing Interactivity: Frontend developers add interactive elements like animations, hover effects, and dropdown menus that enhance the user experience. By using JavaScript and frameworks like React or Vue.js, they make websites dynamic and engaging, going beyond static designs.
Cross-Browser Compatibility: Websites need to work consistently across different browsers (Chrome, Firefox, Safari, etc.), and frontend developers are responsible for ensuring this compatibility. They test websites in multiple environments to fix any bugs or inconsistencies in the design or functionality.
Core Skills of a Frontend Developer
To excel as a frontend developer, there are several technical skills and tools that are essential:
HTML/CSS: These are the building blocks of web development. HTML structures the content, while CSS styles it, ensuring that it looks polished and visually appealing.
JavaScript: This programming language allows developers to add interactive elements, like form validation, dynamic content updates, and animations, making websites more engaging.
Frameworks and Libraries: Frameworks like React, Angular, or Vue.js help developers build complex web applications efficiently by providing pre-built structures and components.
Version Control (Git): Collaboration is key in web development, and version control tools like Git allow frontend developers to track changes, collaborate with other developers, and manage different versions of the project code.
Responsive Design & CSS Frameworks: Developers often use frameworks like Bootstrap or Tailwind CSS to ensure that their websites are responsive and adaptable to all devices.
The Evolving Role of Frontend Developers
As technology continues to evolve, the role of a frontend developer is expanding. Today, the line between frontend and backend development is becoming increasingly blurred, with many frontend developers expected to have some knowledge of backend technologies (a role often referred to as "full-stack development").
Additionally, the rise of progressive web apps (PWAs) and headless CMS architectures has introduced new ways of thinking about frontend development. Frontend developers are now focusing on creating experiences that go beyond the browser, delivering high-performance, native-like experiences on the web.
Another area of growing importance for frontend developers is accessibility. Ensuring that websites are usable by people with disabilities is not just a legal requirement but a responsibility for developers who want to create inclusive digital experiences. This involves using semantic HTML, providing keyboard navigability, and designing with screen readers in mind.
Why Frontend Developers Are Crucial for Business Success
Frontend developers play a critical role in shaping the user experience, which directly impacts the success of a digital product. A well-designed, fast, and user-friendly website or application can increase engagement, boost conversion rates, and enhance brand perception.
For businesses, the user interface is often the first point of contact with potential customers. If a website is slow, difficult to navigate, or visually unappealing, users are likely to leave, costing the business potential sales or leads. Frontend developers ensure that the website or app not only looks great but also performs optimally, keeping users engaged and satisfied.
Conclusion
In the modern digital landscape, frontend developers are essential to creating seamless, engaging, and high-performance online experiences. Their unique combination of technical skills and creative problem-solving allows them to transform designs into functional, responsive, and dynamic websites. As the demand for intuitive digital products continues to grow, the role of the frontend developer will only become more integral to business success and the evolution of web technologies.
4o
You said:
is ko english ma kr do "A o A Sir aj 3 outreach sy bat hoi or YTC k Backlinks Create KIa "
ChatGPT said:
ChatGPT
"Hello Sir, today I had discussions with 3 outreach contacts and created backlinks for YTC."
4o
You said:
ma gmail pr richout kr raha ho mujy ya masg aya ha is ka mujy koi replly kro "Thanks for reaching out. We charge $59 for submission. Let me know what you think."
ChatGPT said:
ChatGPT
You can reply with a polite and professional message like this:
Subject: Re: Submission Inquiry
Hi [Recipient's Name],
Thank you for your response and for providing the pricing details. I appreciate the information. I'll take this into consideration and get back to you shortly with my decision.
Best regards, [Your Name] [Your Position] [Your Company]
This keeps the conversation open while allowing you time to decide.
4o
You said:
Write A Article on "Front End Developer"
ChatGPT said:
ChatGPT
Title: The Role of a Front-End Developer: Crafting the Digital Experience
In today’s fast-paced digital world, websites and applications are the primary touchpoints for businesses and users. The seamless experiences we enjoy on websites—from smooth navigation to responsive design—are largely due to the efforts of front-end developers. But what exactly does a front-end developer do, and why is their role crucial in building user-friendly, efficient digital products?
What is a Front-End Developer?
A front-end developer is a professional who focuses on the client-side development of a website or application. This means they work on the part of the website that users directly interact with. While the back-end (server-side) handles the logic and data storage, the front-end is responsible for what users see and how they interact with a site.
In essence, front-end developers translate design mockups into functional websites or applications using code. They combine the worlds of design, user experience (UX), and coding to ensure a smooth, responsive, and visually appealing user interface (UI).
Key Responsibilities of a Front-End Developer
The role of a front-end developer goes beyond just coding a website. It involves understanding user needs, optimizing for performance, and ensuring the digital product works flawlessly across various devices and browsers. Here are the key responsibilities of a front-end developer:
Translating Designs into Code: Front-end developers take designs created by web designers and bring them to life using programming languages like HTML, CSS, and JavaScript. They ensure the design translates accurately into a functioning webpage or application, maintaining the visual fidelity of the design while ensuring usability.
Ensuring Responsiveness: In today’s multi-device world, websites need to work across desktops, tablets, and smartphones. Front-end developers make sure websites are responsive, meaning they adapt seamlessly to various screen sizes and orientations.
Implementing Interactivity: Interactivity is key to user engagement. Front-end developers use JavaScript and related frameworks to add interactive elements like animations, sliders, form validations, and dynamic content updates, making the user experience more engaging.
Optimizing Performance: Fast loading times are critical for user satisfaction and SEO. Front-end developers optimize images, minimize code, and ensure efficient loading of assets to create websites that load quickly and perform smoothly.
Cross-Browser Compatibility: Websites need to work consistently across different browsers such as Chrome, Firefox, Safari, and Edge. Front-end developers ensure that websites function correctly and look the same on all browsers, addressing any quirks or inconsistencies.
Maintaining Website Accessibility: Front-end developers also focus on making websites accessible to all users, including those with disabilities. They implement practices like semantic HTML, ARIA (Accessible Rich Internet Applications) attributes, and keyboard navigation to create an inclusive user experience.
Essential Skills for a Front-End Developer
To excel as a front-end developer, professionals need a combination of technical skills, creativity, and attention to detail. Below are some of the key skills required:
HTML/CSS: These are the foundational languages of front-end development. HTML (Hypertext Markup Language) structures content on the web, while CSS (Cascading Style Sheets) defines how that content looks in terms of layout, color, fonts, and design.
JavaScript: JavaScript is a powerful scripting language used to add interactivity to a website. With JavaScript, developers can create dynamic content, handle user events, and interact with back-end data in real-time.
Responsive Design: Knowledge of responsive design is crucial to ensure that websites and apps work seamlessly across all devices. Tools like Bootstrap or media queries in CSS help developers create adaptive layouts that fit all screen sizes.
Frameworks and Libraries: Modern front-end developers often use libraries and frameworks like React, Angular, or Vue.js to build more complex web applications efficiently. These tools provide pre-built components and structures to speed up development.
Version Control (Git): Front-end developers often work in teams, and version control tools like Git allow them to track changes in code, collaborate with others, and ensure the codebase remains organized.
Cross-Browser Development: Each browser interprets code slightly differently, so front-end developers must test their websites across various browsers and devices to ensure compatibility.
The Importance of Front-End Developers in Business
In today’s digital economy, a company’s website or mobile app is often the first point of contact with customers. Whether it’s an e-commerce platform, a SaaS application, or a simple company webpage, the user experience can significantly impact brand perception and business outcomes.
Front-end developers ensure that these digital touchpoints are engaging, easy to navigate, and visually appealing, which can directly influence user engagement and conversion rates. A well-designed website that loads quickly, functions smoothly, and offers a seamless user experience can set a business apart from its competitors.
Moreover, front-end developers are key players in building websites optimized for SEO (Search Engine Optimization). Fast-loading, mobile-friendly, and well-structured websites tend to rank higher on search engines, driving more organic traffic to the site.
Front-End Development and Emerging Technologies
As technology evolves, so does the role of the front-end developer. The rise of progressive web apps (PWAs), single-page applications (SPAs), and headless CMS (Content Management Systems) has created new challenges and opportunities for front-end developers.
PWAs allow websites to function like native apps, offering offline capabilities and faster load times. Front-end developers need to integrate these features while maintaining the flexibility of a website.
SPAs load a single HTML page and dynamically update content as the user interacts with the app, creating a more fluid experience. This requires front-end developers to have expertise in frameworks like React and Angular.
Headless CMS decouples the front-end from the back-end, giving front-end developers more control over how content is presented. This allows for greater flexibility in design and user interaction.
Conclusion
The role of a front-end developer is crucial in shaping the digital experience. By combining technical expertise with creativity, front-end developers bring designs to life, ensuring that websites are not only visually appealing but also functional, responsive, and user-friendly. In a world where the digital experience can make or break a business, front-end developers are key players in driving online success.
2 notes · View notes
anbroids · 2 years ago
Note
hi!!! I loved ur hometsuck kids theme sm it made me want to go back into coding after so long(^^; I wanted to know how u learned it and if u have any tips for newcomers. Ty !!
oh holy shit this is ask is SO SWEET :,) thank you so much anon and i’m so happy to hear it made you want to get back into coding! we seriously need a tumblr theme renaissance. what i would give to see people coding and sharing/reblogging themes like the older days on tumblr. life could be dream.
i learned html and css from making my own tumblr themes as a kid! i think tumblr themes are literally such a good introduction into learning front-end development. BUT to be fair i also took a few programming classes and was a big coding nerd in school and that definitely helped me become a lot more comfortable with making themes from scratch and adding custom script. if you are interested in learning javascript, learnjavascript.online is a great source for starting out and getting some practice!
i think a great way to get your bearings is to look at some base themes and poke around at the code just to familiarize yourself with some of the tumblr-specific syntax. @theme-hunter has a great database of themes to look at with some tutorials for beginners compiled here. i think the best way to learn how div blocks function and what you are capable of changing is by playing around with preexisting code and seeing what you can create. i did this until i was comfortable enough to make a few base themes of my own from scratch that i can go back and reference when starting a new theme or coding project.
tumblr also has a list of their block elements online with some introduction to custom themes, which is helpful to reference when styling the features built into each tumblr blog like title, descriptions, posts, notes, etc.
as far as tips for newcomers, here’s a few things top of mind:
google is your best friend, seriously, i can't tell you how many times i am googling the most rudimentary of things because i'm always forgetting little syntax things. chances are, if there's something you want to achieve with code there will be someone on stack overflow with some advice, or a tutorial on codepen or w3schools that you can use as reference.
troubleshoot with inspect element! i usually build my code straight into the tumblr theme html and css on a sideblog, save, and then keep a tab of that blog open that i can refresh and inspect element to look for errors in the console. i think firefox works the best, but i would recommend always loading your blog in a few different browsers since there is css syntax that is specific to mozilla or chrome (eg. custom scrollbars or pure-css animations)
there are lot of browser extensions that can make the coding process easier! i recommend eye dropper for pulling and matching hex codes. i also use fonts ninja a lot for getting accurate weights and names for custom fonts. a few more that come to mind are window resizer and css viewer (chrome/mozilla) if you want to check those out!
happy coding!
11 notes · View notes
izicodes · 2 years ago
Note
hii <3 im new to coding and am choosing a career path for me. i want to start building sites i guess but i have a few questions that i cant even find on google! when we build sites for ourselves, is it able to hold unlimited data like photos, videos, etc?
also, for the ppl who make tumblr blogs, do you actually code every single thing in the html bc omg!! that is a lot. thank u sm! im a compsci baby
Hiya! 💗 That’s great you want to start building websites, it’s really fun! I can totally help with answering your questions!
Tumblr media
Now, in terms of holding “unlimited data” such as media like photos, video, files etc, files depends on several factors. Key thing: A hosting provider is just a site that lets you add your website live online for you - they host you site on the web (that’s how I learnt it). Good examples are GitHub pages, Neocites, Vercel etc.
Hosting Services
Tumblr media
The hosting service you choose plays a crucial role in determining the storage capacity of your website. Shared hosting plans often have limitations on disk space and bandwidth, which means there will be a cap on the amount of data you can store for instance Neocities let’s you store up to 1GB of data on their free plan, anything above that and the site won’t work as they don’t have the storage space for you. However, some hosting providers offer larger storage options or even specialized plans for websites with high data requirements - you’ll just have to pay for extra space.
Storage Upgrades
Tumblr media
Like I mentioned briefly above, some hosting providers allow you to upgrade your storage capacity as your website grows. This can involve increasing the storage allocation or transitioning to a higher-tier hosting plan that offers more resources. Be sure to check with your hosting provider for available options and any associated costs. This more geared towards much bigger projects than small personal projects you’re building.
There’s more such as using CDNs (Content Delivery Networks) to create more space in your primary hosting provider but I’m not too familiar to talk about it.
It's worth noting that while these options can provide ample storage, truly "unlimited" data storage doesn't exist in practical terms. Facebook, Instagram, Amazon all have a limit somewhere and they would either pay for more space or figure out a way to storage their large data for less space.
Tumblr media
Coding everything for Tumblr blogs
I think like the most of us on here, we’re too lazy to code everything and would actually install a theme someone else has made. But for the theme creators, they would code everything in HTML, CSS, JavaScript (if necessary) to build the blog because it is a website and the foundation of web development is those basic 3 (if anything, just HTML to be honest).
A lot of copying and pasting and editing the code, but essentially yeah it’s HTML code with CSS styling and JavaScript functionality to make the blog work. They might add frameworks such as Bootstrap and libraries like jQuery if they wanted! I’m not an expert on Tumblr theme building but I have built websites for work and personal projects and that’s how it is in the basics! 😊
Tumblr media
Hope this helps! There’s more to it but this is as far as I know~! 💗
22 notes · View notes
zoeythebee · 2 years ago
Text
Codetober day 17:
So I'm working on my game again.
So I'm switching out the architecture of my game to an Entity Component System, and I was using a library called Pico Ecs which is an stb style single header library.
But after using it for literally a morning there were inconsistencies and bugs popping up. And I've programmed enough to see where this is going.
So I started work on my own ecs, which in c can be done with some function pointers and the right data structure.
Which in this case is a Sparse Set, which I'm still wrapping my brain around. But all I know is that data is stored in a densely packed array, and the indices for the data you want is stored in a sparsely packed array.
Also you are limited to arrays, no linked lists or anything. And there are only a handful of instances a sparse data set can be used for do to its strict typing.
But the positive with sparse sets is, adding, deleting, and SEARCHING are all O(1) time. Which means no matter how many items are in the dataset it takes the same ammount of time to access it.
Basically its perfect for entity component systems.
I wanna make a video breaking it down once I finish it so stay tuned.
17. What's a programming/tech thing you feel very strongly about?
The decision to use Javascript to build applications is the single worst idea to ever be thought in computer science. Even worse than OOP.
I used to think "oh I dont know javascript super well maybe it's not so bad". After learning javascript inside and out, it is truly the most poorly designed piece of shit language to ever be created. It seems to challenge itself to come up with the most abstract absurd solutions to problems that could be solved with a single function. If the guy tasked with making the language spent a little more than 10 days designing it we as a sphere of engineering would have saved millions of hours of programming hours and billions of dollars in wasted cpu cycles.
Javascript is fine for powering buttons and login forms. But the fact that Visual Studio Code is written in Javascript is such a bafflingly stupid decision I'm unsure if the words exist to describe it.
9 notes · View notes