[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

[Advertise on 4chan]


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


>Beginner Roadmap and Guide
https://github.com/kamranahmedse/developer-roadmap

>All useful documentation in one place
https://www.devdocs.io

>Free beginner resources to get started with HTML, CSS and JavaScript
https://developer.mozilla.org/en-US/docs/Learn - a good starting point to learn about web dev fundamentals
https://javascript.info/ - quite a good JS tutorial according to many posts
https://www.freecodecamp.org - curriculum including HTML/CSS/JS, React, Node.js, Express, and MongoDB
https://www.theodinproject.com - curriculum including HTML/CSS/JS, Ruby on Rails, and SQL
https://fullstackopen.com/en/ - requires you to have basic web dev, db and git knowledge
https://flutter.dev - fluttershills favourite framework

>List of PHP resources
https://pastebin.com/gfBPg24A

>Need help? Create an example and post the link
https://jsfiddle.net - if you need help with HTML/CSS/JS
https://3v4l.org - if you need help with PHP/HackLang
https://codesandbox.io - if you need help with React/Angular/Vue

We're going to collect and post user projects on a dedicated site soon, post what you're working on anons.

Previous >>79644124
>>
>>79665584
Damn I miss making useless but cool stuff in macromedia flash:(
>>
anyone else use systemd to deploy their projects? It's useful but annoying as fuck
>>
>>79665718
Explain, I sort of know what systemd is
>>
>>79665718
I use systems cron job to schedule a crawler.
At least I think cron.d is part of systemd.
>>
File: 1558656004947.png (203 KB, 600x377)
203 KB
203 KB PNG
Want to help us make a crawler and a website to showcase /wdg/ personal project?
Join us here
https://github.com/persunde/wdg-projects

Create issues or whatever and let us know what you are working on.
>>
Hi everybody, I'm trying to animate (slide down/up) a view containing a dynamic list in react native, since that list is dynamic I don't know how to have an Animated.View with dynamic height, currently I use a fixed value in my code, which is very hacky. I'm a react-native rookie and react native animations seem QUITE complicated (I have been reading docs and wow) so any help is really appreacited.

```
//Currently using a fixed value (300), how to get height of dynamic height View container?
const [ bounceValue, setBounceValue ] = useState(new Animated.Value(300));

//Is the animated view hidden or not?
const [ isHidden, setIsHidden ] = useState(true);

//I toggle the animated slide with this method
const toggleSlide = ()=>
{

var toValue = 475; //How to get dynamic height of View to animate

if(isHidden)
{
//Here I hide (slide down) the animated View container
toValue = 0;
}

Animated.spring(
bounceValue,
{
toValue: toValue,
velocity: 3,
tension: 2,
friction: 8,
useNativeDriver: true
}
).start();

setIsHidden(!isHidden);
}

```
And in my view:

```
<Animated.View style={[styles.subView, {transform: [{translateY: bounceValue}]}, { padding:10,position:'absolute',backgroundColor:'white' }]}>

{cartProducts).map((products,index) => {return (
<View style={{ width:'100%',flexDirection:'row', alignItems:'center', justifyContent:'space-between',marginBottom:5}}>
<Text style={{ fontSize:14, color:'rgb(68,68,68)' }}>Product: {index+1}</Text>
</View>)})}
</View>
</Animated.View>
```

Thanks in advance!
>>
>>79665922
Read the sticky first to learn how to format that.
>>
>>79665759
It's an init system for linux. I use it to ensure that my project is launched on boot and restarted if it crashes. I wrote a route on my app to listen for a webhook and rebuild / restart the app upon a request from github and it's fucking annoying to get all the moving parts working correctly. The history on the project is like 50 lines of [working on hook].
>>
>>79665841
sounds neat
how do I get involved?
>>
>>79666039
Info's in the readme in that repo
>>
>>79666039
Pick whatever part you want to develop, then open an issue saying you want to make that.
Then develop it , open a pull request and hope for the best.
>>
>>79665996
I just run everything in Docker and let that handle it. Then systemd takes care of Docker, so it is all good :)
>>
>>79665634
Oh the days of Stick Figure Death Theater and Newgrounds.
>>
Where do I learn NodeJS and React if I never learned Javascript?
>>
>>79665584
I made an imageboard of my own and I'm interested to hear what you think. Ways to make it look less old would be appreciated. I hope you like it!

https://rainychan.net
>>
>>79668224
>dark blue on teal
Oh god why
>>
>>79668459
what do you recommend instead?
>>
>>79668137
I learned javascript while learning react
definitely different conventions than what gets used in node though
honestly just build the thing™ and learn as you go
>>
>>79668224
I'm not actually a webdev, so expect no professional advice from me, but some things that come to mind:
* First of all I appreciate someone making their own shit, good job
* Change the color scheme. My poor eyes. Blue on blue is horrible.
* One of the biggest issues new imageboards have are these two things: No sense of direction / no focus of content and too many boards. You clear the first hurdle, but fail the second one. 7 boards is a LOT for a new (and small) imageboard. Most small imageboards should start with 2-3 boards max.
Apart from that a good start.
>>
>>79668490
I'm >>79668510, but have contrasts ( but not extreme ones). So a light grey background with dark grey letters etc. Even better is a dark theme, or a choice between the two. If you want to shift the grey a little into a blueish zone, that tends to make it look more "modern". Do not go full contrast though, that becomes jarring for the eyes.

Also style your forms, they are currently just white background, which is jarring to look at on the blue background.
>>
>>79668510
okay. I will delete some of the boards. what color scheme do you think would be good?
>>
>>79668490
High contrast nigger. Dark text on a light background isn't an aesthetic choice, it's a usability one. Your site it hard to read

I'd spend a couple of days at least just learning and implementing css. Pro-tip: learn to love flex
>>
>>79668510
yeah everything this guy said, good shit for making that though
UI would be helped by setting {background: whatever} in your .topic_container and .reply_container
the blue-blue-yellow scheme is jarring by modern standards, but image boards aren't supposed to be modern
go search palette picker if you wanna pick something more uniform, keep it if it's aesthetic/nostalgia you're going for
>>
>>79668567
>I will delete some of the boards.
I would consider having 1-2 main boards and maybe one random board for anything that doesn't fit in there. If you manage to sustain a small user base you can still slowly expand the amount of boards and see if they manage to stay (relatively) active. It's just very sad to see some of the otherchans I visit have 15 boards, because the few people on it will spread over them and there never is a feeling of community. A small chan with too many boards feels at best like a forum and at worst like a guestbook.
>what color scheme do you think would be good?
Go for whatever you like, there's really two important rules:
High contrast (what >>79668582 said) and no colors that someone with shit like dyschromatopsia has issues with if you can help it.
Even if anons say "high contrast", you don't need to go full FFF vs 000 , there's a lot of range inbetween. High contrast is a usability choice, but too high contrast can be annoying as well.
If you want to put a lot more effort in visually, start putting together a color palette of colors that go well together. You can find these online as well. Then restrict site design to these. That ensure the colors fit together and make the site feel more like a whole rather than a patchwork of parts.
As for the CSS, start using https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties now. If you want to add multiple themes or want to change the color palette easily they are great. For now you only use two colors so it doesn't matter, but once you have more elements on the page it starts being worth it.
>>
>>79668696
I'm getting a lot of conflicting advice. Someone else in another thread told me I didn't have enough boards, and that I needed a video game board, which I doubt. Which boards are necessary?
>>
Got a question for you anons in /wsg/.

I've written my own static site generator and use it to generate my own website as a hobby. That means I have to satisfy no one except the requirements I have for myself. I want it to be how I want other websites to be.
It's using html+css for the site, and I added javascript for quality of life stuff and to run a webapp I wrote. All javascript on the site is optional, the site works even without it (except for the webapp). I currently use one external library (a fork of bigfoot.js) that is lightweight, everything else I wrote myself without libraries or frameworks.
But I have one external source I am making use of: A google font. I like the idea of knowing that the font is universal across systems, but I don't like that this means I force my users to connect to google to download the font. What's your opinion of that? Avoid? Host my own font, so it only connects to my server? Use some font that's already on the users machine (if so what cross platform fonts can you rely on every system having)? Or just say fuck it, even if different machines will have different looks (due to different fonts) then?
I'm not looking for a factual answer, just wanted to hear what other anons gravitate towards.
>>
>>79668734
I mean I've never hosted a chan, so my experience is from the point of view of a user, not a hoster, but I have been a part of plenty otherchans with lower user numbers and it seems that those with too many boards have it harder forming a community and are more likely to fail. Sometimes the community just decides to only use 1 or 2 boards when there are too many, but most times the community doesn't form in the first place.
As for how many boards is too many, that's hard to say. An essential part of community building is having something that unites the users. That can be the site itself, or topics. If you have too many different topics at once, it makes it harder.
For example it's probably safe to say that a touhou thread doesn't need its own board, so that could be put into a random/other/misc type of board.
If video games and tech need to be separated or not is debatable, on one side they are related enough to start on the same board, on the other side there's a realistic danger of videocassette drowning out the tech users. Your call really.
As a general rule I'd start with few boards and then expand as the need arises and there's a user base to expand with the site, similarly to how 4chan did. When you feel like there's need for a new board, add it as a "experimental new board" and observe how the community receives it. If it gets regular and continued engagement, keep it, if its just a short time use and then dies down, delete it again.
>>
File: FB_IMG_1604611426794.jpg (41 KB, 960x720)
41 KB
41 KB JPG
question.
how difficult is writing an IB from scratch?
this is a project I have in mind for sometime. My idea is to create a local IB for my memecity in LATAM althought there is an spanish IB which my country has a dedicated board, it lack of diversification of contents because we only have 1 board to post everything and its not enough IMO.
>>
>>79668878
>>79668734
Last thing I'd add is consider having a second instance of your site somewhere to deploy experimental changes. For example when I want to change looks of my site, or add a new feature, or add a new article I deploy it locally first (by hosting a local server) to test it out, look for bugs and unexpected behavior and spelling mistakes. Then I deploy the change once I am decently confident it works to the life website.
>>
>>79668898
>how difficult is writing an IB from scratch?
Overall not too hard.
I'd recommend starting by looking into how others have implemented it and why they did what. A place to get started could be https://github.com/kennell/imageboards#popular . Just look at those solutions and note what you like and don't like about those.
>>
>>79668898
>>79668943
yeah what other guy said.
makes a good beginner web-dev project, intro to DBs and templating.
>>
>>79668224
read refactor ui
>>
is redux toolkit the standard way of using redux these days or is it still in the zoomie meme phase
>>
>>79669193
yeah
>>
>>79668898
It's pretty easy to get all the basic functionality down. However, including any bells and whistles like 4chanX-y functionality will be considerably harder if you're going to be thorough about it.
>>
>>79668802
Host your own font..

A small difference in font could improve much of user's experience, so in my opinion, it is necessary.

But, i personally dont like relying to 3rd party server. Not only for fonts, but everything (images, scripts, etc). I mean, if they are down, we are directly affected too. It's like, our site is taken hostage by them.
>>
>>79665922
As an easy alternative, try using LayoutAnimation. Worked for me with sectioned lists. May be a bit buggy though.

https://reactnative.dev/docs/layoutanimation

Also you may want to look at react-native-reanimated (v2 beta) which is a much simpler animation API
>>
Any PHP devs use this shit at work? Like 7 different jobs and never seen anyone use these.
>>
>>79670192
I should probably link the shit, right?
https://medium.com/@rtheunissen/efficient-data-structures-for-php-7-9dda7af674cd
>>
>>79670192
Nope, I just use default PHP data structures & Eloquent collections. I don't think there's really many cases (in web development) where you'd need to use specialised data structures (like linked lists & vectors) that ultimately shaves off something like 10ms.
>>
>>79665584
Hnnngg I remember upgrading from pirated Flash 3 to pirated Flash 4. I think Flash 4 was the one to come with shiny arcade buttons in the symbols library.

The 90s were the best time for nerds.
>>
File: 1602488558687.jpg (9 KB, 218x250)
9 KB
9 KB JPG
>"it's time to name that app, anon."
>"the internal review committee has met and discussed potential options"
>"let's call it............. Excel"
>"but Excel is already used by Microsoft's sprea-"
>*click*
>>
Is there anything equivalent to The Odin Project for PHP?
>>
>>79668137
The question is, why would you want to do that? Learn Javascript and then React, that way you won't be tied to a single technology.

https://www.theodinproject.com
>>
>>79668490
Download and read this, should only take an hour or so.

https://b-ok.global/book/3641433/05b4dd

Then try again.
>>
>>79668224
Can you post the code?
>>
>>79668802
Host the font on your own site. Fonts are one of the most important parts of a design.
>>
>>79665584

Web "Dev" general... hehe... Javascript is a pile of shit "language" for morons who couldn't code to save their lives and the "self-trained" (LMAO). Imagine coding Javascript spaghetti for a living. All of you ITT would probably kill yourselves the moment you had to write something in a real language like C#.
>>
should i learn DOM manipulation in vanilla javascipt even though ive been building sites using React?
>>
>>79671519
It's worth knowing the basics but I wouldn't spend too much time on it as it sucks dick
>>
What are some /g/ approved alternatives to Google Analytics?
>>
>>79671570
Not him but can you please elaborate on the dick sucking? Is it because it’s not used often or because it’s somehow inefficient in some way? I haven’t started with frameworks yet so I do everything in vanilla and I kind of like it.
>>
>>79671884
It's just that it's imperitave i.e. line by line, you're creating an element, placing it in the DOM and then have to manage updates to portions of the DOM.

Under the hood for all "frameworks" they're using the document.createElement API except you're rendering it more declaratively i.e. you can see from a glance how the UI is laid out.

The frameworks usually come with some smart algorithms to determine what elements should be updated/rendered/created, but more often than not using the vanilla js API (mixed with regular HTML) to manage your UI will yield better performance.
>>
>>79665584
Web Dev comrades, what is the stupidest node module that people actually use? I need to laugh
>>
>>79669360
>>79671383
Thought so, thanks guys. Not like a font will be that horrible when it comes to bandwidth usage anyways.
>>
>>79671982
https://www.npmjs.com/package/is-odd
>>
>>79665996
are you using Git actions? the fucking actions2@checkout hook delete everything in the working folder each time. i cant have my composer install Laravel dependency every single time, it's such a piss take. i wonder if there's just a hook to checkout branch without full wipe
>>
>>79665841
i don't get the webcrawler. what are you trying to crawl? what's the purpose? you tryin to make it a CLI tool or something?
>>
>>79672252
a final solution to the fluttershill problem
>>
>>79665584
How do webpages update automatically based on server-side changes?
For example, FB has "Someone is typing a comment.." on posts on my feed. And then it will update the post right there with the latest comment. How does this work since I'm not refreshing the page?
>>
>>79672308
ok i got the idea now, looks pretty simple actually. but it looks quite abusable. we gotta set up the word filter straightaway.
>>
>>79672349
It depends.
One way is to go the discord route, where they literally just have a persistent connection between the client and server ie: Your connection (discord account/client) is subscribed to some publisher (some discord channel). Any changes or signals from the publisher is broadcasted to all subscribers (anyone accessing the channel) in real-time.

https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern
https://aws.amazon.com/pub-sub-messaging/
>>
>>79672349
Web sockets or timed intervals of http requests. Here's an easy example to get started with: https://socket.io/get-started/chat/

Either way, anything that's usually dynamic like that is done with JavaScript.
>>
2020 state of JS survey results

https://2020.stateofjs.com/en-US/
>>
File: file.png (8 KB, 1580x291)
8 KB
8 KB PNG
>>79672663
so where are the pink programming socks programmer? are they in /dpt/ and linux threads?
>>
dumb question, but what would you consider better in this case:
using entityframework in dal so have to use appropriate types when interacting with it, eg. if looking up by id type has to be short/Int16 because in table it's defined as smallint.
So choosing between:
>dal interface methods expect id to be of type short and just simply work with it, which means controller will be the one checking/converting it
>dal interface methods expect id to be of type int/regular int32 so controller just passes it and let's the dal convert it
2nd one kinda makes more sense in case there would be multiple implementations of the interface but the chance of that happening in this project is almost zero.
Also the checks are so trivial, just gotta check if the passed value fits inside an int16, if not it'll just return 404/null
>>
Anyone has any examples for libraries for transitions or animations for website to make it pretty
>>
>>79673620
https://github.com/sergey-pimenov/awesome-web-animation
>>
Anyone got any good readings on Javascript classes vs. factory functions and arrow functions vs. function definitions?
>>
Thinking of getting this bundle, seems good right anons?
https://www.humblebundle.com/books/front-end-web-development-packt-books?hmb_source=navbar&hmb_medium=product_tile&hmb_campaign=tile_index_7
>>
>>79673942
>paying for books
lol
https://b-ok.global/
>>
what's the best django tutorial
>>
Pls halp, i have a Single Page Application (built in Vue) that has a chat function, so i need to implement WebSockets, should the websocket connection be estabilished the moment the user acceses site or only when he enters the "chat" page?
>>
>>79674105
only on the chat page, otherwise your server is going to be holding a lot of connections open that aren't being used
>>
>>79674175
Thats what i thought but on the whole page i have the functionality that you can see if someone sent you a message.
My original idea was to query every 30 seconds-1 minute to check if the user has a new message. Is this an okay approach?
>>
>>79674105
>>79674175
Yep. What anon says.

I literally just had to implement some websockets in my side proj. It's pretty straighforward to upgrade a connection. Sending messages is fairly easy too.

    this.connection = new WebSocket("wss://4chan.org")

this.connection.onmessage = function(event) {
console.log(event);
}

this.connection.onopen = function(event) {
console.log(event)
console.log("Anon connected")
}
>>
>>79674204
yeah that's called polling, if you're happy only updating that kind of thing every 30 seconds or so then polling is ideal, if it's going to be faster than that then an active socket connection starts to make sense
>>
>>79665584
damn OP, that is so old, that even me, having worked for like 5 years with flash haven't seen that version.
>>
>>79671853
>alternatives to Google Analytics?
I want to know this as well. Plausible.io seems nice, but it costs money.
https://plausible.io/
>>
What's the best resource to learn data structures and algorithms?
>>
>>79672252
>i don't get the webcrawler. what are you trying to crawl?
/wdg/ threads
>what's the purpose?
To have a website where you can see all the /wdg/ projects people want to share and to motivate people to share their projects, similar to how /add/ does it.
>>
>>79672401
> it looks quite abusable. we gotta set up the word filter straightaway.
Please help. I should have a crawler up and running written in Go this weekend.

I should have a skeleton Nextjs frontend working as well by the end of the week.
>>
>>79674825
Probably reading Cracking the Code interview book. Or doing a university course that follows the MIT book Structure and Interpretation of Computer Programs. The last book is amazing to help you truly understand data structures.
>>
>>79668224
Um, anon, I think I can delete other people's post. Is this imageboard self-janitor?
>>
>>79675123
based janny
>>
i want to get a job asap in webdev, backend preferred ? where should i start ?
>>
>>79675321
my anus
>>
>>79675321
buy some kneepads
>>
>>79675321
>where should i start ?
At the literal start of the thread
>>
>>79674796
I think I started with flash after that version too, but it was Macromedia when I started with it though
>>
>>79674880
just make sure your crawler ignore posts mentioning fl*tter project
>>
>>79675321
write a deep learning algorithm that can crawl through job postings and find the most optimal one depending on the queries
>>
>>79675994
flash was fresh af, I ALMOST got a job doing flash animations
>>
>>79673581
Are you writing a game? If not, then skip using data oriented design like that entity systems. The premature attempt at optimisation isn’t worth the pain.
>>
File: file.png (31 KB, 742x786)
31 KB
31 KB PNG
I have some hook at the top level of my page. This hook selects the redux state and changes the title of the window based on it.

Problem: i don't want to rerender "lower" components. I just want to change the title

So the only solution is to put hook down or I can do something better? Because I want to keep useTitle on top
>>
>>79676358
isn't this literally going to rerender the component tree once? (maybe) have you actually tested it and know this is a problem or are you trying to fix something that isn't an issue yet?
>>
I've followed a YT tutorial for designing a page but I've customized it and added a few things to the point where I'm unsure whether I should leave out the tutorial that I've used as a starting point or perhaps I should link to the tutorial/reference it once I add it to my portfolio?
>>
Is Adsense worth the pain or should I fuck it off from the outset and go other ad providers for my webapp revenue?
>>
>>79676492
there's no need to reference the tutorial, no one really cares
>>
>>79676449
I will change redux state all the time, so it will rerender components too much time
>>
>>79676517
I haven't used redux in a while, but doesn't it only rerender components that subscribe to the state slice you are modifying? does the title state change all the time?
>>
>>79676597
>does the title state change all the time?
So. Because I subscribe to the part of the redux state that changes quite often
>>
File: 1550512432335.jpg (48 KB, 544x841)
48 KB
48 KB JPG
Newbie to Vue components way. What's the pro way to deal with components in vue, specifically long ass components.

app.component('news-post', {
props: ['postTitle', 'postBody'],
template: `
<h3>{{ postTitle }}</h3>
<p>{{ postBody }}</p>
<icons>maybe some icons to delete and shiieeet</icons>
`
})

Or
<script type="text/x-template" id="my-template">
<h3>{{ postTitle }}</h3>
<p>{{ postBody }}</p>
<icons>maybe some icons to delete and shiieeet</icons>
</script>

?????
>>
>>79676667
I'm not suggesting you rewrite your app but atomic state management solutions seem to solve this problem (like Recoil), as everything is granular by default. If you want more specific help you're gonna have to post some code so people can see what you're doing.
>>
>>79676723
... and why?
>>
>>79676741
>atomic state management solutions seem to solve this problem (like Recoil)
My selector is like => bigState.someState.smallerState.exactlyWhatINeed, and exactlyWhatINeed is array. So I pick small as posible part
I just need to prevent my hook from rerendering components, and only update title
>>
File: 10_yo_beauties.png (531 KB, 469x475)
531 KB
531 KB PNG
>>79672252
import requests
# import pprint

def findwdg(catalog)->(dict):
""" Returns the replies of a thread with wdg in it"""
for page in catalog.json():
for thread in page["threads"]:
if("sub" in thread):
if("/wdg/" in thread["sub"]):
threadnum = thread["no"]
return (requests.get(f"https://a.4cdn.org/g/thread/{threadnum}.json"))


thread = findwdg(requests.get("https://a.4cdn.org/g/catalog.json"))

# p=pprint.PrettyPrinter(indent=4)
# p.pprint(thread)

I got this shit done, and now I'll be testing the parser. Do we care about text that's outside of the fields listed below?
title: Loser anon's script to dodge work
dev: Anon
tools: python
link: 4chan.org/yaoi/
progress: I got this in, now to see if it can be detected. Wish me luck
>>
>>79677011
we should ignore text outside the fields, will get messy otherwise, just grab the data we need and leave the rest
>>
Is he right ?
https://www.tonymarston.net/php-mysql/separate-class-for-each-table-is-good-oo.html
I'm pretty new to the POO approach
>>
>>79677011
the raws look super jank to parse, we should use more than 1 colon, and maybe some sort of token to say this should be parsed.

SUBMIT_LINK
title::: souq madeeq
dev::: i_love_PHP
tools::: PHP, Svelte, Tears
link::: https://4chan.org/elephant
progress::: lorem ipsum etc etc
SUBMIT_LINK

this makes the regex so much easier. obviously a WIP but we should organise the format and put it in the OP
>>
>>79677249
the regex is already super easy what's the problem? you've just added noise
>>
>>79677278
its more for the parse detection. instead of doing regex search to match every single post, you could just add a token and do a strpos then that's the condition to add it into db.
>>
>>79677304
you can do a strpos with the original format and only apply regex on posts it finds, the more complicated format doesn't change that
but more importantly it makes zero difference as running a simple regex against ~300 posts is trivial for any potato to run
>>
>>79676723
>>79676794
anons bls
>>
Please sirs can I make money’s from Adsense to pay dowry for arranged marriage?
>>
>>79671427
Funny enough the C# development I did was braindead pajeet enterprise shit, whereas most of the JS development I've done is more interesting use-cases (e.g. music streaming platform).
>>
What is that website that shows you syntax for all the languages?
>>
>>79677650
rosetta code?
>>
>>79677656
Please sirs, do the Java needful?
>>
>>79677656
No its like a cheatsheet and gives a rundown of syntax for all major language.
>>
>>79677702
is it something like learn x in y minutes?
>>
>>79677757
https://learnxinyminutes.com/
this is what I meant.
>>
>>79677773
Will it teach Java in 21 days?
>>
>>79677895
It's impossible to answer that question as the most important variable depends on your competences and IQ level.
>>
>>79677895
this will friend http://www.durgasoft.com/
>>
>>79677972
Thanking you sirs I can now pay for my dowry with this.
>>
I'm building my portfolio left-aligned and there's nothing you can do to stop me
>>
>>79678131
I can open the code inspector and fuck your shit up
>>
>>79677011
>>79665841
https://pastebin.com/xJz2SvkP for script
https://pastebin.com/YYdHThi6 to act as dummy data. I don't wanna spam 4chan's api while I'm getting this program to work.

In terms of format, a bit confused. On https://github.com/persunde/wdg-projects it's
:: [title] ::
dev ::
tools ::
web ::
progress ::

Which is kinda weird: why
 :: [title] :: 
? Would make posts ugly. But on https://github.com/persunde/wdg-projects/issues/3 it's
title: Scraper
dev: anon
tools: node, react, etc
link: https://my.website.com
repo: github.com/user/repo
progress: sdgsghsghdsfgdfgsdf sfgsdfg sfgd sdg df gdsf g

So which is it? it wouldn't be too hard to fix it, but still we gotta decide. I'm also not against what >>79677249 says, expect maybe without SUBMIT_LINK. three colons is enough.

Also fuck it, might as well re-test the script.
title: Loser anon's script to dodge work part 2: electric boogela
dev: Anon who taken a shower
tools: python3.7
link: https://4chan.org/y/
progress: I got the script to detect if a post of this format is found.
>>
>>79677895
you won't actually be proficient in java after 3 weeks. yeah you'll know the basic syntax, but you won't be familiar with best practices, libraries, ecosystem etc. i recommend flipping through Effective Java
>>
>>79677757
>>79677773
thanks bro
>>
>>79678729
I'm the anon that opened the issue on github re: post format. I just thought there was no reason not to make it simpler, its easy to parse and easy to remember how to write and it (very vaguely) resembles json. The order of the stats isn't important either. If people want to be extra safe (which I don't think is needed), then simply make it double colon. Triple is just unnecessary, as is the surround tags.
>>
>>79675123
You shouldn't be able to delete it without the password specified by the poster.
>>
I'm trying to make a basic news site blog, I only know basic html and css can I manage this by just using WordPress?

How important is the domain name for good seo on Google search?
Is .com always better then the alternative such as .net?
>>
>>79678729
i say go with double colons, JSON and JS gets posted a lot and sometimes it will be posted outside the code tag by mistake. might as well cover the error case now.
>>
how can i use svelte routify with snowpack? installing it in existing project doesn't work
>>
>>79679790
you'd have to do multi step compile or chain the rollup with webpack commands or whatever you're using. in my case, i had set up npm run dev to compile Laravel Mix assets, then it will call npm run r-dev which is basically the routify build and rollup compile.
>>
I remember some anon once made a webpage where you uploaded an image and it would tell you something about it, I think it was like what body part it was or something, using neural networks. Anyone remember that? I'd like to make something similar.
>>
File: 1604336289059.jpg (249 KB, 1241x1434)
249 KB
249 KB JPG
today I made a font slider for people with fucked up eyes
>>
>>79679945
pretty neat
>>
>>79678729
I have submitted a simple scraper now.
But you are more than welcome to add yours as well, if it is simpler or better.

I agree, lets keep the submit format easy. >>79677249 this is a little too complicated imo.
Maybe add a starter string similar to "SUBMIT_LINK" but somthing simpler. I like your version with
:: TITLE_HERE ::
>>
>>79679787
Sounds smart.
If people want to share it, doing double semicolon wont be much of a hindrance.
Just got to be easy to mess up.
>>
>>79679945
It is a FireFox extension? Is FF extensions very different from Chrome ones?
>>
File: golang_scraper.png (36 KB, 1584x169)
36 KB
36 KB PNG
>>79678729
This is the info I gathered from my scraper.
>>
I didn’t even know there was a 4chan API
Has anyone done anything else fun with it besides this project? Any ideas for somewhat easy to implement-projects?
t. Started studying frontend 5 months ago
>>
>>79680232
yeah. They use the same API called WebExtension now.
The difference is, to access bookmarks for example, on Chrome you type chrome.bookmarks.get(), but in Firefox it can be browser.bookmarks.get() or chrome.bookmarks.get().
I don't know if it's Chrome not respecting some standards or Firefox reverse-engineering google's stuff.
Except that you can almost just take a Chrome extension and load it in Firefox.
>>
>>79680334
A 4chan or hacker news client is always pretty fun. Although I'm not sure about the former if you want to show employers.
>>
>>79680334
>Has anyone done anything else fun with it besides this project?
I tried to do a
>Movies /tv/ talk about search engine
But it was quite hard to search through the text. Either I had too many hits or almost none. I think I will try it again later this year though. I just want a search engine where I can search for any random word and see which movies were mentioned in the same context.

When I did it, I always got Cuck (2019) as the top hit...
>>
>>79679945
Have you published it? I've got a chrome extension that I published several years ago, I even got a few thousand users.
>>
>>79680257
what's the final format you're using
>>
File: 1595875457602.png (215 KB, 1978x1534)
215 KB
215 KB PNG
>>79680463
yeah, here https://addons.mozilla.org/en-US/firefox/addon/umibo/ but I'm not very good at shilling so I only got around 5 users.
>>
>>79665584
>>79665584


I will have to build an app for a client using React Native soon. Never used RN before; learning it right now and looks nice. The app itself is a CRUD with social elements.

Thing is; should I bother with the whole Typescript / Redux thing, or should I just go vanilla JS and manage my state myself? Are they worth it, if I'm going to be the only frontend working on the project?

Thanks in advance
>>
>>79680484
>what's the final format you're using
Not yet decided.
Post your suggestions here or in an issue and we will decide soon.
Probably double :: and title like this >>79679988
>>
>>79680588
Cool! Do you plan to publish it on chrome too? Would you ever add a paypal donation link if your extension got popular? Also, I keep getting hounded by Microsoft Edge, they send me emails every week or so and ask me to publish my extension on Microsoft Edge. I'm too lazy to do the small changes required by them.
>>
>>79680706
lmfao the absolute state of MS
>>
>>79680671
Yes, definitely use TypeScript. It will help you immensely when checking props on components and any kinds of application refactors.

I'd use Redux only if the application is large. Otherwise I'd look to use alternative global state management solutions to reduce the amount of boilerplate. Here's some decent state management solutions.

https://github.com/pmndrs/zustand
https://github.com/pmndrs/jotai
https://github.com/facebookexperimental/Recoil
>>
>>79680716
MS literally owns the whole frontend developer eco system though.
I guess they realized they could not compete against Google on the user side, so they took over the development side instead to have some power to shape the future of the web.
>>
>>79680671
To add to what the other anon said, if you need a very simple (!) state management go for react's context and reducer hooks. It's a lot easier to wrap your head around and maintain.
>>
>>79680751
using recoil at the moment on a couple side projects, very comfy
>>
>>79680779
>MS literally owns the whole frontend developer eco system though.
what do you mean
>>
>>79680751
>>79680751
>>79680805
>>79680805

Thank you guys! Guess I'll have to look into RN typings. Will take a look at those state management solutions too; I heard good things about Recoil so I guess I'll check them out.

Another question (sorry to bother); my boss mentioned today he wants the app to work as a regular website too, with the same codebase. Can I achieve this through React Native, or would I need to create a parallel app using regular React?
>>
>>79680706
>publish it on chrome
that'd probably be a good idea since Firefox seems to be doomed, I just need some time and motivation since I'm not really used to Chrome, and I wrote it with Firefox in mind.
>paypal donation link
I don't think my extension is complicated enough for that.

about edge, I keep hearing that it's not bad anymore and pretty light on ram usage, so once I port it to chrome porting it to edge should be trivial, right?
>>
>>79680588
>>79680588

Cool! Just downloaded it to give it a go
>>
>>79680914
>my boss mentioned today he wants the app to work as a regular website too, with the same codebase.

Oh boy, yeah that's probably not going to be feasible. There is react-native-web but it'll be a huge headache to maintain a consistent layout & especially use native based components / APIs that don't have web equivalents.

What I've done in my own projects is to re-implement the view layer (use regular JSX with html elements) and have a "shared" package to share all non-view code (i.e. mostly hooks & global state using your preferred state management solution). Just a caveat: it's pretty difficult getting a monorepo set up with react native though.
>>
>>79680978
thanks!
>>
>>79680958
Chrome has really good docs and there are minor difference to keep in mind afaik.
> I don't think my extension is complicated enough for that.
I see. My extension is popular enough and I'd like to think it would merrit one but I'm still hesitant because it's a hobby project and I feel like I'd be soilling it that way, plus I'd feel way more obliged to improve it and maintain it.
> so once I port it to chrome porting it to edge should be trivial, right?
Yes. You'll probably get a ME mail after publishing an extension on chrome store telling you that if it can run in chrome then it can run in ME which is true. I tested it and the chrome extension can be run in ME without making any changes. The only issue is that you need to change every mention of Chrome in your extension and some other aesthetical changes if you want ME to publish it on their app center/store. Furthermore, you need to go through the hassle of creating a MS account and signing up for a dev account. Setting up a chrome developer account was way easier and faster. At least I remember it being that way.
>>
>>79680823
>NPM
>VS Code
>Typescript
>Github
And more
>>
>>79681036
I once downloaded "app" of my local store
After opening it I got "welcome to chrome" popup so I promptly uninstalled it
>>
How do you deal with multiple simultaneous requests to a database?

Say 5 people update a post at the same time, do you need logic to order the requests or something?
>>
>>79681131
Also, I think there's still a one-time fee of $5 when you signup for chrome dev account. It's not much but keep that in mind.
>>
>>79681036
>>79681036

Thank you!! I tought that may be the case. Guess I'll have to break the news to him tomorrow.

What you propose (recycling hooks,state, etc and creating custom views) is what I was thinking. It will be a pain to keep up with changes though, once the client starts asking for them...

Still it will be a great learning experience, so I'm pumped. Started coding not even a year ago, and I'm having the time of my life. Should have started way sooner.
>>
I am exploring putting together a message board for my church. Rather, to be fair, I'm thinking about looking into it. I haven't seen what's out there yet.
Any recommendations? My webshit stack is pretty good but I wouldn't mind using something that's very easy to get going and not make something from scratch. As long as I can host it myself I don't care. Anybody have any tips?
>>
File: 1607530972509.jpg (648 KB, 1280x947)
648 KB
648 KB JPG
I was coding and using photoshop for past 2 months. I did simple stuff like styling my JS and PHP forms but not any complete layout. So, I decided quickly refresh HTML/CSS.
>It's a complete nightmare
>I got flashbacks to crying over flexbox, grid, and dsiplay:inline-block and floats
>Nothing works or looks its part
>It's not even reactive, literally, I simply thought I'd copy a layout from a picture within 2 hours.
>I'm cringing at the thought of code in old (work) projects and how I still don't know how I should solve layout problems.
Good night.
>>
>>79681301
AND on top of that, you're a filthy furry, kys
>>
Getting into back into web programming. Nodejs was the new thing coming out so I am very behind. I am going to use Django for a personal blog. I want some pain, but don't want to become an expert web dev. I can already scrape together enough javascript to survive because of CTFs.

Am I going to need to learn a front end framework? It seems like I can get by with HTML templates, but worried that it will look/function like dog shit.
>>
>>79681301
fucking furry kys
>>
>>79681375
>>79681406
That's the better Linux mascot.
>Web dev cert had questions about popular logos like WP/PHP/frameworks
>>
What's the SDK of choice for angular on windows?
>>
>tfw you have to use JSX to get full typing support in vue 3
so, what's the agenda of vue niggers? to make another react clone?
>>
>>79682607
the main issue i've always had with vue is how html bindings aren't typed
>>
File: Code_DeZgJSHMJQ.png (17 KB, 787x284)
17 KB
17 KB PNG
Can anyone tell me how to get VScode intellisense to work with imported JS modules?
>>
>>79682876
>the main issue i've always had with vue is how html bindings aren't typed
there is a vetur beta setting that helps with that... but if you want typed component props, you need to use JSX (at least according to some youtube tutorial I just watched)
>>
>>79683095
Typescript & npm install @types/package
>>
>>79681216
Databases generally handle this for you internally, in a simple case they generally never perform actions on the same row at the same time
>>
>>79683095
use typescript and install the types for moment js via npm
>>
>>79683133
>>79683137
Thankyou.
>>
File: IMG_20210114_121139.jpg (84 KB, 854x387)
84 KB
84 KB JPG
>>79683142
FYI https://momentjs.com/docs/#/-project-status/

I'd recommend using dayjs.
>>
>>79683214
Thanks for this. I'm not using moment.js for a project, I am just coding along with this article: https://peterxjang.com/blog/modern-javascript-explained-for-dinosaurs.html
>>
Is there any reason for me to learn PHP?
>>
File: 1586158517684.jpg (83 KB, 888x768)
83 KB
83 KB JPG
what is the best way to turn a REST api into one that uses websockets? I have a ton of routes but I want to turn them into websockets

ideally broadcasting events on a new action/message

using express for this
I will probably need socket.io
>>
>date function from the other day is broken
>wonder whats wrong
>look it up
>the implementation of the date object in javascript varies between browsers and devices
what the actual fuck
>>
>>79683636
Kek
>>
i hate this industry and i hate you all
i hate myself for not enjoying anything even tho i already got a cs degree
>>
how do I generate a php file, or any file dynamically? with a few variables

I want to make this cutting edge template I have reusable
>>
>>79683929
Why did you get into it in the first place? Money?
>>
>>79683541
yes
>>
>>79683929
i got a cs degree in Sept, most of my peers wanted to go down the ML AI path but fuck that. i just want to coast doing easily deliverable shit while exploring new techs. sure some of the grunt work makes me want to kms, but its not permanent. soon ill get out of my WP hive and do some real bespoke CRUD. i would rather be in Laravel job over WP any day of the week.
time to ask yourself what you are doing here in the first place lad.
>>
>>79684229
Does it have any advantages over say using node or java? Why not just use those languages?
>>
Anyone know where to get Oracle exadata expert v2?
>>
>>79684324
PHP is super easy to pick up, it's braindead simple language. if you're even remotely interested in learning it you can pick it up within days. just pick a course and start learning bro.
>>
>>79683929
Stop getting jewed in to societal expectations and try to find what makes you happy.
>>
>>79683976
Something like this may be applicable

https://github.com/jondot/hygen
>>
>need flutter dev
>must know flutter, react, vue, angular, python, and be an AWS god

The fact I’m pretty close to that criteria means I’m asking for 100/hr
>>
>>79685469
why flutter and react/vue/angular

i can see python/aws

also how many years flutter dev? i saw a job posting asking for 2 years exp.
>>
>web app that my company uses sends out big announcement advising they have increased their webapp speed by 45%
>they have literally reduced their css animations and page transitions by 45%
>no other changes have been made

lol
>>
>>79683929
>he got a CS degree because of "easy money"
>hes into web because of "easy money"
>anon is still poor, struggling, mentally breaking down, and on 4channel
LOL... maybe third time's the charm, have you learned your lesson yet or...
>>
>>79686114
i love hiring recent college grads because they are so clueless
>>
>>79665584
What do you guys think of shit like webflow? It would be nice to be able to design stuff the same way you can in Visual Studio
>>
>>79686241
There are so, so many libraries, frameworks and resources that make designing beautiful, functional websites a piece of cake. Tying yourself to a proprietary SAAS design system would be shooting yourself in the foot.

https://github.com/troxler/awesome-css-frameworks
https://github.com/uhub/awesome-css

https://b-ok.global/book/3641433/05b4dd
https://b-ok.global/book/2662830/bed215
>>
>>79686283
Based, thanks. Any reason why people don't use this link anymore?
https://z-lib.org/
>>
>>79686395
That's the top site, when you do a search it will redirect you to any number of mirrors.
If you want to link directly to a book, you can't use that URL - only whatever mirror you're on.
>>
File: react.png (67 KB, 1920x1080)
67 KB
67 KB PNG
Have hooks made Redux literally useless?
>>
>>79686519
???
https://react-redux.js.org/api/hooks
>>
>>79686580
Yeah and you don't need redux to use hooks
>>
>>79686283
>https://b-ok.global/book/3641433/05b4dd
>https://b-ok.global/book/2662830/bed215
Thanks
>>
>>79686730
redux and hooks are two completely different things

Redux is for global state management,

Hooks are like mixins
>>
>>79686519
No, unfortunately React is still a mess that way. Redux is still useful for larger app states, hooks can and should only be handled for smaller things that don't require that much overlap.
But if you were hamfisting Redux into everything, hooks are a great opportunity to reevaluate that practice.
>>
>>79673942
I guess. I've never heard of any of these books before.
>>
>>79673942
>paying for books

lol

https://z-lib.org/
>>
>>79686519
>Have hooks made Redux literally useless?
no, but maybe libraries like Zustand and mobx have..

I guess MST (mobx-state-tree) is a better alternative to redux. It is similar to vuex in vue.
>>
When writing tests for TypeScript files do I turn off the TS linter(?) so I can write tests for fucked up parameters? Because right now it's yelling at me to pass the correct amount and type of arguments. TS can't check that shit since it's only checking for types during compile time, right?
>>
>>79688643
To add, since
>TS can't check that shit since it's only checking for types during compile time
Do I have to rewrite my shit to take into account fucked up arguments (from user input) to my functions because I went ahead and assumed it's all good because of the typeguards? Fuck
>>
>>79686519
actually redux was the only good option for me since I had a textbox that needed to be accessed from two other components. It turns out hooks are incredibly slow compared to redux, and this lag was noticeable while typing.

pretty much redux is better for things that are updated rapidly
>>
stupid boomer here:
for a backend, is there any compelling reason I should prefer something modern-ish like Parse SDK over a more conventional MVC framework? the latter being what I'm sort of familiar with, at least years ago.
>>
>>79689257
MVC is still fine. Use a modern one if you wanna learn something new, but MVC is tried and true. Boring backends are typically good backends.
>>
>>79689330
gratz
>>
one day i'll work for a client who won't be coming in with already-solved-in-their-head problems that i just need to implement

this all looks easy to them, but hey they're the ones with years of experience, not me
>>
>>79688711
>>79688643
Show the code you're trying to test. why would you need to turn off TS to test it, that sounds dumb.
>>
>>79689618
You won't. You'll always have a client like this regardless of where you work.
>>
>>79689618
that's why the trick to being rich in this world isn't to be a technician (perpetually at the mercy of bosses and customers), but an owner who can promise anything and then force employees to implement it for a fraction of the fee.
people are happy to pay lots of money if you can solve their retarded, unrealistic demands.
but as a technician, you are too focused on the sensibility and feasibility of any course of action, and so are habitually deprived of the ever-growing rewards that a 'businessman' feels perfectly entitled to.
sucks because a lot of us really, truly love the technical aspects, but (with rare exceptions) will usually be slaves to greedy businessmen with no love or concern for the art.
>>
>>79689683
>>79689718
is it safe to say then that when money is involved software will always be of relatively poor quality?
>>
File: tour.webm (2.66 MB, 1200x709)
2.66 MB
2.66 MB WEBM
>>79686241
nocode stuff is getting there, but it wont have the same experience as coding in VS. IMO if you want to design in code, design tokens is a nice way to go. Requires initial investment, but eventually allows you to easily select values you need for a site.

The attached video is a small tour of my side proj was all designed purely in vim (icons I made in figma though). It's very doable but also requires more effort / knowledge of css & design. Design is like drawing - takes a lot of practice.

>>79686283
has good tips though. If you're looking just to get some base design up and running fast then some of the frameworks out there work great.
>>
>>79689738
not necessarily. I would say it will be as good as it needs to be, and no better - whatever makes the customer happy, and grows the customer base over time. sure, you'll disappoint some customers, but you rectify that (firing employees if necessary) and continue onward.

from a business person's standpoint, 'software quality' is a secondary, indirect concern. "is the customer happy and will be coming back and telling his friend about us?" is always #1.
that might result in high quality software, if that's the customer metric. the trick is, charging them a premium for giving a shit about that, if it's not normally a concern. and if they are a discerning customer, they will feel like it's worth the premium you're charging them.

our problem is that implementing those customer wishlists is grueling and boring and often highly uncreative. but that's what they are paying for. that middle ground between charging big lump sums, and doling out hourly wages to tech slaves, is where all the real long-term success and sanity lies.
>>
>>79689738
That's likely overgeneralizing it. It's more when there's a disparity between money and sense.
>>
>>79689773
incidentally I think that's why Jobs was so good at what he did - he was both the owner AND the most brutally demanding customer, simultaneously.
if he'd just been an owner, he would have consulted with his teams before giving quotes and they would have said "this is ridiculous, it's impossible and will cost way too much". but since HE was the customer, he could initiate those projects internally and the wage slaves could either make it a reality or GTFO.
and that's why today apple has a gazillion goddamned dollars, because they were forced to say 'yes' to all his totally impractical (but industry-leading) demands.
smaller but growing businesses follow a similar model, just less masterfully. say 'yes' to everything, keep looking for new customers, etc. who cares how stupid your clients are when they drop fat stacks on your desk, and you're not the poor schmuck forced to implement it on an hourly basis?
>>
>>79689869
and if your employee says "this will take 6 months", you charge for 12 and tell them it needs to be done in 3.
why yes I'm cynical, how did you know? :)
>>
>>79689770
Looks very nice, what kind of frameworks / css-stuff did you use? Fonts?
>>
>>79668224
oh look another 4chan clone. What, you want me to be impressed?
>>
>>79690003
Thanks anon.
System font stack:
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";


All vanilla js / css. No frameworks. Just making everything in vanilla webcomponents. I do use one library which is Quilljs for rich text in comments / post descriptions.
>>
>>79690339
Thanks for answering, I'll use your design as an inspiration for a project I'm working on
>>
>>79690040
Making a 4chan clone is a right of passage
>>
>>79690369
For sure. If you want I can post my design tokens. Might make it easier to copy the look.
>>
has any of you read eloquent JS? I'm half way through, exercises and all, it has some quite clever code examples, I can feel the titular eloquence
>>
>>79690410
Please do!
>>
>>79690433
Yea it's not bad. I've read a couple chapters and it was all solid. That said, I do find that making is a better form of learning. Just start making some stuff anon.
>>
>>79690459
I've been doing a projects based MERN thing, hopefully I'm not fucking myself by doing things in framework right off the bat
>>
File: file.png (211 KB, 660x223)
211 KB
211 KB PNG
hypothetically speaking: i want to put some small ads on my website to try and recoup a few costs. problem is my website has content that may be offensive, porn, free speech, or piracy related (so 4chan light?) so i would only be able to put up ads related to adult stuff or services that help facilitate piracy.

does anyone here have experience with advertising on pages like this? how do i go about getting started? is it just a matter of joining an adult affiliate program? what are the requirements for qualifying to host ads?
>>
>>79690456
https://codesandbox.io/s/sweet-yonath-5bdxn?file=/src/styles.css

Here ya go anon. You can see the token schema in the tokens.css, as well as how you make themes at the bottom. There's a light and dark theme that are present, and it should switch automatically with the system theme. As long as you use the tokens in the css, your design will auto switch between both.

lemme know if you have questions :)
>>
>>79690475
Na definitely not. As long as you feel like you're learning something then using a framework is fine. Keep it up anon - just remember to keep working on it. I try and do a little bit every day, even if it's just 10 min of work on the project it means it stays fresh in my mind :)
>>
>>79690504
ya you'll need to use a porn ad vendor or solicit your own advertisers. Google ads will ban you quick, and their bans are rough. Just remember porn ads are typically shady af.
>>
>>79690617
Wow, thank you very much for posting this, greatly appreciated!
>>
I'm going to put a raining code matrix effect on my portfolio and there's nothing you can do to stop me
>>
>>79690631
thank you for the encouragement, I'm definitely learning things that aren't covered or/and up to date in my uni classes, I agree that keeping at it is vital, good luck on your project too
>>
>>79690713
anon pls
>>
>>79690647
google was always out of the question for me, i would rather have advertisers who support freedoms (like pornographers, casinos, and seedbox hosts).

>porn ads are typically shady af
shady as in your run the risk of not getting paid properly?

>porn ad vendor
does an "adult affiliate program" count?
>>
>>79690754
I don't mean as a piece in my portfolio, I mean as a background effect on a section of my portfolio site, specifically the section that links to my code examples/github etc.
>>
File: 1604524256767.png (11 KB, 398x116)
11 KB
11 KB PNG
>>79689664
Forgot to reply, running the tests work. The linter is just being a cunt about it. Pic related is what I was talking about.
>>
>>79690795
anon, that makes it worse, but I'm just providing a reaction here, that sounds fun and a little silly
>>
>>79690800
You're function is typed wrong if it accepts values of any type and returns a valid value
>>
>>79690827
it was supposed to be slightly ironic, also it will be greyscale/white not green, just want to do something visual that's sorta funny
>>
>>79690842
>typed wrong
What do you mean? What's wrong in the example code in the pic? By typed wrong do you just mean I should have been more explicit? Like adding typeofs for the input (just an example). Or is there something else I should know about?
>>
File: 1601502707422.png (93 KB, 674x488)
93 KB
93 KB PNG
>>79680257
Fuck, the one time I decided to be productive and not browse 4chan when I work, I see you already did the work. If you guys need help with the frontend I can help, but not today. But this project was fun, and I got to learn how to properly structure my python code.

link: anon; drop table projects; --
repo: https://github.com/HawaiinPizza/WDG-Script
tools Emacs for day 1, tmux with vim day 2.
title: Anon's shit script part 3: The it's done now, but could use some way of testing it locally
link: https://4chan.org/y
progress: It's done, and now for the final test, to see if this program is '''''''' worth a '''' damn (doing this shit to test it's quotation marking abilities) Also """""" QWIEJQIOEWJEIO """"
>>
>>79690867
yee, it should look fun, gl with that
>>
>>79691063
Wait fuck I forgot to say I got my script done. GOD DAMN IT. At least I have a chance to do a new test I guess

tools His dumbass

repo: https://github.com/HawaiinPizza/WDG-Script


link: anon; drop table his pants; --

title: Anon's shit script part 4: I forgot how to english


progress: WHY AM I UNABLE TO CATCH TYPOS!
>>
>>79691044
You're function says it only accepts a string (should also say "char" and not "chars" then). So it should be throwing an error if it doesn't get what it expects. The expected behaviour of a function explicitly saying it only accepts a string probably isn't to carry on as normal when you pass it null or a number. If you wanted it to work whatever is passed in then you should type it as any.
const fn = (val: any) => val === 'a' ? 'a' : 'b';

typeof not really needed with strict equality as it's implicit
>>
>>79689770
>The attached video is a small tour of my side proj
You should post it again when we get the /wdg/ projects website up and running
>>
File: seinfield-pointing.jpg (6 KB, 190x266)
6 KB
6 KB JPG
>>79691063
>>79689770
We need help spesifically with the Frontent for the /wdg/ Projects website.
You >>79689770 seem like you know design well. Please take a look and help us.
https://github.com/persunde/wdg-projects

We are making a website to showcase the projects people from /wdg/ make. We would appreciate any help!
>>
What the FUCK is up with web design? Everywhere I look it's these massive single page applications.
>>
>>79690504
>problem is my website has content that may be offensive, porn, free speech, or piracy related
Does Google and others automatically check what is on your website and and stop serving adds to you?
How does that work?
Just get gambling adds, they always have lots of money and pay well?
>>
>>79665584
Hi, somebody help me, I'm in callback hell.

I've got an existing callback that returns an array, and I need to override it so that, no matter what the callback would usually return, it returns that with an extra value on that array.

All my attempts are ending in either recursive stack overflows or an almost-infinite amount of that extra value.
>>
>>79690504
Let me start by saying I have 0 clue on the subject so I'm going to give my non expert opinion. Maybe vendors that sell anonimity and privacy are a good source advertisement... next to porn, lol.
>>
>>79692029
that sounds pretty straight forward, why don't you post the actual code
>>
File: blazorchads_halp.jpg (224 KB, 865x976)
224 KB
224 KB JPG
If anyone has Blazor knowledge, please halp. I'm trying to call a simple 3rd party API using Blazor Webassembly SPA and for the love of god I can't send a simple httpRequest with parameters. I tested the same api with cURL in command line and it worked, but I can't seem to bypass CORS. I'm stuck few days on this problem and can't find a solution. Is this possible using only Blazor Webassembly? It looks like a simple api request, why all the hassle?
>>
>>79692009
not entirely sure how it works but yes google will see what you are up to at your site. you know how it is with these corporate kikes and wanting to maintain their company image.

>>79692043
yeah man... vpn, vps, porn, hookup sites, piracy, and other questionable grey area type companies are a gold mine for advertising revenue when your site doesnt follow the leftist groupthink and their faggot assed "standards".
>>
>>79691567
the crux of the problem is they improved developer comfyness with new shiny frameworks but didn't evolve the web as a platform to accomodate them properly leaving us in some sort of middleground where we're building apps that pretend to be websites that run on top of an xml based format and a single programming language decided on over a decade ago
>>
>>79691481
I'm too busy right now, might be able to help out on the golang side during the weekend.

>>79692874
Look into what CORS actually is and you'll figure it out.
>>
Lets say I have a page that includes a js file. This page has a function foo();

Is there a way for me to call this foo() directly from the console in chrome dev tools?
>>
File: 1570534156590.png (146 KB, 500x375)
146 KB
146 KB PNG
What's your experience with working at the dev department of a non web-dev company?
>>
>>79693772
I'd swear writing: "foo()" would execute the function
>>
>>79694095
what's the job role? the fuck are you supposed to be 'developing'?
>>
File: 1594735886046.jpg (13 KB, 720x774)
13 KB
13 KB JPG
>>79694168
I guess maintaining/expanding their website, full boomer stack vanilla js, vanilla PHP and HTML5, sounds comfy, but I'm wondering if there is a catch, not for me though, a class mate will be competing with others for it, I'd rather finish the whole year and then look for jobs, the homework load is too fucking high for me to even consider internship rn
>>
>>79694247
probably EZ development wise when maintinaing their site but I have a feeling you'd be the IT guy the majority of the time.

what does the company do exactly?
>>
>>79694112
this works as long as foo is in global scope, you can make something global temporarily by writing something like
window.foo = foo
in your code, can call it from the console then
>>
>>79691567
Svelte is tiny :)
>>
>>79694382
sell insurances iirc
>>
>>79694095
I'm in a similar position. But it's more complicated.

I basically have to fix very old legacy code that literally nobody in the company has ever deeply looked at/understands. The people who wrote it have long since left and were not webdev people either.

The worst part is that I'm completely new so I have no idea what anything means, but I can't really ask anyone because I'm now "the webdev guy".

I get these "little bugs" I have to fix quickly because clients are mad, but they take me days because they're part of huge installations I have never seen before.


Everything is written in 50 different languages and interfaces with their own unique hardware I don't have time to truly look at deeply.

Every time I finally get in a groove with a project / system / setup, I have to instantly switch to a completely different project in another language with other technologies and other OS/hardware/protocols/..

All I do is work from dusk till dawn and I still make very little process which makes me feel very dumb and slow. I am in constant fear of getting fired.

They have live installations and if I fuck up it has RL consequences that I have to be able to fix quickly which I can't. It's really fucking stressful.

Oh and they don't have a VCS.
>>
>>79694527
sounds like hell itself
>>
>>79694527
lol if you're not getting paid a lot, you're getting fucked
>>
>>79665584
Where can I find the most common page layouts?
>>
>>79694527
anon, the best solution is to do every update in a new framework to make yourself unfirable

put the whole project in kivy
>>
>>79694527
>I am in constant fear of getting fired.
I hope they fire you, anon. For your own sanity.
>>
>>79684018
i thought i liked working with computers but i dont anymore
i dont like anything beside lifting weights and kpop
maybe im just mentally ill!
>>
>>79684324
>Does it have any advantages over say using node or java?
Honestly depends on where you want to work. Different types of companies tend to stick to certain backends (right tool for the right job). If you go down the php route you can land a comfy/easy office job managing websites. You wont do anything exciting or fulfilling but hey it beats 90% of jobs. If you go down the node route you could get a job at a trendier company which will probably be more challenging and demanding (could be a good or bad thing). My only thing with those types of places is that those are the types where "crunch" happens, expect 12 hour days for months on end with zero payback and being treated like shit till you are forced to leave. Java I think tends to lead to government gigs, boring but stable.

This is just a generalization of what I have seen from job offerings, my experiences, and other people I know who are also in the field.
>>
>>79694886
>i dont like anything beside lifting weights and kpop
>maybe im just mentally ill!

sounds about right
>>
>>79694886
same, but change kpop with computers
>>
>>79694527
>am in constant fear of getting fired.
this is an unfounded fear, based on what you said they need you a lot more than you need them, you need to approach work from this mindset, you owe them nothing, they need you to save the day
>>
File: seinfeld-tada.jpg (525 KB, 1536x997)
525 KB
525 KB JPG
Want to help us making a /wdg/ project website where /wdg/ posters can show off what they make?

We now have a domain and a semi functional scraper. Please help us out to make it great!
https://wdg.one/
https://github.com/persunde/wdg-projects
>>
>>79694527
>VCS
What is VCS?
>>
>>79694886
>i dont like anything beside lifting weights and kpop
Join me to Seoul, Korea later this year to study Korean language and pick up cute girls :3
Korea is great if you are single and have enough money to survive. You are going to have a great time there!
>>
>>79686519
Use Redux-Toolkit and React Query
>>
File: vampyres.jpg (6 KB, 166x250)
6 KB
6 KB JPG
any atom fags in here?

i'm working through the "Hacking Atom" section of the flight manual

what dialect of javascript do they use to begin with?
or does babel automagically determine that?
>>
>>79694527
>ll I do is work from dusk till dawn and I still make very little process which makes me feel very dumb and slow. I am in constant fear of getting fired.
If you are the single IT guy, then they rely on you more than you know.
>They have live installations and if I fuck up it has RL consequences that I have to be able to fix quickly which I can't. It's really fucking stressful.
Think about it. What would they do if they had no one around to fix it when the next issue comes around? Most likely their business would crumble and they would have to hire an expensive consultant to fix it before they lose all their clients.
Computers and development is hard. Dont work yourself to death, the company does not deserve that from you.
>>
>>79695307
>any atom fags in here?
You mean the code editor that have been more or less discontinued in favor of VS Code?
Why not use VS Code, it is more or less the same, just much better and heavily developed and has a great eco-system of user made plugins!
It is literally THE webdev code editor!
>>
>>79695289
>>79695362
there's also vscodium, which works just as well, even with propblob heavy tools like flutter
>>
>>79695362
Thanks anon. Not the guy you're replying to but I really needed to hear that today.
>>
>>79695362
i'm not a webdev
i just need something that i can make to interact with all the cool diagnostic stuff clang can produce

i have not used VSCode much, but ... microsoft man - i just hat their style of code it's a fractal of boilerplate within boilerplate and it makes you wonder how any of that shit doesn't catch fire immediately
>>
>>79695449
>really needed to hear that today.
Needed to hear what? That you should use VS Code...?
>>79695467
>i have not used VSCode much, but ... microsoft man
Atom is also MS if you dont know, well Github technically.
Developing some VS Code plugins is actually quite easy if you want to.
>>
>>79695514
so you can't help me - that's ok
it's not that i'm dead set in not using VSCode, i'll just have to evaluate both before forming an opinion, and i started with atom
>>
>>79695514
>Needed to hear what? That you should use VS Code...?
yes
>>
>>79695614
The Atom dev team is almost non-existent since everyone started using VS Code instead. MS promised that they would keep it going after they acquired Github, but since almost no one used it anymore they stopped investing much into Atom and instead went full on into VS Code. They are both almost the same, an Electron based editor.
I think I even read an article based on a survey that said VS Code was used by over 50% of the respondents.
But whatever floats your boat
>>
>>79695728
are you part of their marketing team?
i know Code is more popular, so?

the only indicator i have so far found for it also being of higher quality is the julia-juno team discontinuing their atom plugin, but they too were part of github afaik, thus microsoft now and might just have received marching orders

if you are so hell bent on evangelizing: can you point me to a comparison of relative arcitechtural merits?

if it goes in depth, it'll be useful no matter what i end up chosing
>>
>>79695226
based domain
>>
>>79695265
git
>>
>>79695876
>i know Code is more popular, so?
Atom and VS Code is basically the same thing, so I would go for the one with the most support and that is actively developed.
>if you are so hell bent on evangelizing: can you point me to a comparison of relative arcitechtural merits?
No I dont have that information. I dont care about it that much.

But I do remember not liking Atom that much when I used it. But I do love VS Code now that I have used it the last 2-3 years.
>>
new thread >>79695988
>>
>>79695330
>implying they can't just import 3000 Pajeets with H1B visas that work for pennies to suppress your wages the moment you even think about asking for a raise

It's even cheaper than outsourcing: why move your company to the third world if you can just move the third world to your company.
>>
>>79696023
yeah, i mean - if you exploit indians in india there might be an indian government obstructing you in your ways

why bother with that?
>>
>>79694527
Anon. Set up a VCS asap. Doesn't even matter if it's just a private repo you use to manage your changes locally. Just fucking do it.
>>
>>79691144
Thanks, I got it now. I thought you were implying some TS feature I didn't know of.
>>
File: 1580633829207.jpg (43 KB, 493x449)
43 KB
43 KB JPG
>>79665584
So I'm doing axios with Laravel. What I'm trying to do:
. get axios to POST 4 objects (technology, difficulty, orderby, duration)
. controller recieves it and does some processing via model
. model returns DB data
. controller sends it's shit TO AXIOS

As of right now I'm getting a whole HTML page, so I'm wondering, what should I do here, just get the raw simple data without format and format it? Or the data WITH format and insertAdjacentHtml after I clear the existing HTML of the element I want to insert the data to?

I'm a bit confused.



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.