Masthash

#code

Hans Laude
52 minutes ago

##Rammstein #Code: Wo geht es hier nach #Panama?
#Frauen in Bedrängnis erhalten mit diesem #Code sofort Hilfe.

Harry W.
55 minutes ago

Why i ask it "Why can't you tell me anything about wget" i get the answer of:

"I'm a text-based AI, and that is outside of my capabilities."

#AI #Chat #Bard #Google #tech #code

WalkingCat
7 hours ago

[Re. @isaacrlevin]
I was too excited to wait! My new video on the "New Awesome Experience for Building .NET Apps in Visual Studio Code" https://t.co/d24KbABTgr just got dropped! Check it out and let me know what you think!
#dotnet #aspnet #vscode #code

nader
16 hours ago

Finally, I made a jupyter notebook to repost archived posts. kinda helpful for anyone changing their mastodon instance and doesn't wanna lose the old toots/posts :)

it's available for everyone, no licence. feel free to use the code as you wish.

https://colab.research.google.com/drive/1sfdbeRBAvLdKY1c6qOU2v8W6V-Scj-or?usp=sharing

It can repost your boosts too.
favourites and bookmarks are coming soon.

#code #mastodon #python #jupyter

Meta
16 hours ago

@webdevtips

// first tip - you can add browser console commands by overriding window object. here an example:

Object.defineProperty(window, "command", {get: () => {console.log("Hello World!");
}});

// how to use such command then? just open browser console and type command to get a reply :)
// #webdev #code

yuart
16 hours ago

I continue to work on the Eggcellent Adventure game, right now I'm in the code refactoring stage.

ChatGPT is pretty good at suggesting better naming for functions and variables. Also, I recommend "The Art of Readable Code" book, the best in the class (in my opinion).

After refactoring I want to use some code metrics tools to prove that you can create games with a small amount of clean code.

#eggcellentadventure #v #vlang #code #gamedev #programming #cleancode #refactoring

Shitcode I produced during active development stage.

@hkrn Simple:

NEVER EVER USE #centralized & #proprietary, #SingleVendor & #SingleProvider platforms and -Services!!!

If #Microsoft were to buy @nextcloud, people would do the same as happened with #OpenOffice into @libreoffice and fork it.

#TechBros like #ApartheitEmeraldBoy & #SpaceKaren #Musk can only buy shit - they are incapable of creating and the #MuskRat never even wrote a single line of #code for #SpaceX nor turned a single screw on a #Tesla...

KDAB
1 day ago

Learn what object lifetime is and what caveats may await. See when returning a reference may result in undefined behavior: https://ecs.page.link/DG87M #cpp #cplusplus #code

Knife :transsparkles:
1 day ago

ok i figured it out, look how cute my gallery is gonna be #code

screencap of a gallery with image category dropdowns and multiple thumbnails
screencap of the same gallery but with one image pulled up, displayed large on the screen with the thumbnails darkened in the background.
Knife :transsparkles:
1 day ago

this was not my intention #code

a gallery screencap with many lines of overlapping text below each image thumbnail
Teri Radichel
2 days ago

Protecting git Credentials Used in Automated Scripts
~~
Prevent writing git credentials to disk and limit the time stored in memory with git credential.helper cache options
~~
#git #credentials #code #security
https://medium.com/cloud-security/protecting-git-credentials-used-in-automated-scripts-d3724cbd4736

Mike (Multiverse of Badness)
2 days ago

I've posted a lot recently about how awful the #Google search engine has become, especially in regards to hyper specific #coding queries

The enshitifying of #StackOverflow was already a burning ember, but that house appears to be in immediate danger as well

As a guy that learned to #code from magazines and books, I truly value the these tools. To see them dumbed down by weaponized #MachineLearning (faux #AI) #bots is heartbreaking.

#coding in 2030 will be shit

https://winbuzzer.com/2023/06/05/stack-overflow-moderators-go-on-strike-over-chatgpt-and-ai-moderation-block-xcxwbn/

Daniel Siepmann
2 days ago

There is a huge difference in reading and understanding #code as well in writing code yourself.

I'm currently diving into a new software product with complete different concepts. I understand existing code but fail hard in writing new code myself … Very frustrating.

It is an open source product. But documentation is not very helpful. The code itself is also not helpful and doesn't integrate with state-of-the-art tooling. Feels like the beginning: Searching for something that does more or less the same, copy and paste, adapt and trial and error until you make it or give up. That's not satisfying.

Good software and products can only exist with good documentation. There are many ways to achieve good documentation. But one should apply at least one before trying to sell anything as a product or good software.

At least that's my current opinion …

Camilo
2 days ago

"keep POLITICS OUT of CODE" I mutter as I remove all time zone handling #code from my projects.

superboreen
2 days ago

This is very useful if you want to use #rstats in #code

Using R + VSCode

https://twitter.com/rolkrass/status/1665247218318680064?s=20

Knife :transsparkles:
3 days ago

after many hours of troubleshooting and some help from a friend, ive figured out the mustache templating engine for php! this will make it so much easier to make character pages. now i just have to... actually write more bios 💦​

#code #PersonalWebsites

A screencap of a character page
Negative12DollarBill
3 days ago

I'm going to give you a line of code which will make your lives better almost straight away:

You're welcome.

#MacOS #unix #linux #code #commandline #graphics #webp #ImageMagick

A one-liner for linux: “find . -name "*.webp" -exec convert {} {}.jpg \; -delete”
Jocelyn
4 days ago

#TheGuardian : "#Irish town unites in #smartphone #ban for young #children"

"Parents and schools across Greystones adopt voluntary ‘#noSmartphone #code [of conduct]’ in bid to curb peer pressure", in a "rare example of an entire town taking joint action." "Not all parents will deny their primary schoolchildren a smartphone – the code is voluntary – but enough have signed up to create a…critical mass"

Brilliant #collective action!

#Ireland #screenAddiction #health

https://www.theguardian.com/technology/2023/jun/03/much-easier-to-say-no-irish-town-unites-in-smartphone-ban-for-young-children

Kubuntu Focus
4 days ago

The #Linux Systems to get you going!

These just-works Linux systems featuring Kubuntu 22.04 LTS and the beautiful and intuitive #KDE desktop are meant to help you with any task and make it fun too!
See more at: https://kfocus.org/

#Code #Data #Developers #ML #Engineers #Laptop #Desktop #AI #Creators #DataScience #Graphics

Franck_Raisch
4 days ago

Open source code for layered anisotropic elastic wave modelling. To whom it may concern. Enjoy and use. It is rare that such code is being exchanged with others at zero cost. https://github.com/zhourui2058/layered_VTI_ray_tracing #Anisotropy #VTI #Code #elasticWave

Mike (Multiverse of Badness)
4 days ago

...yes, I #code about 20% slower than the "average" #coder at my level..

That's because I legit hard core #QA while I code.. and I also code for future circumstances, because I'm not a damn fool...

So screw your "best practice" #sprint mentality.. I'm not here to check off some #DevOps box a #scrum master gets paid to hound me about; I'm here to do good work...

Good #coding is a legit art form.. quit fingering my pallette!

Inverse Phase
5 days ago

My partner @nocturnalplant was asked to write some #NES #chiptune for a dude livestreaming himself #coding an #indiegame from scratch with an intention to teach. Pretty cool idea and project!

Anyway, here's some of the music for it (and maybe more in the future):

https://nocturnalplant.bandcamp.com/album/gameb-ost

#retrogames #gaming #code #8bit #programming

Jan :rust: :ferris:
5 days ago

Another crucial aspect in this matter of #AI rewriting your code:
You should make your tools reusable, so that others can benefit from it as well. This is not possible with #LLMs. Sure you can share the prompt, but the output is all wishy-washy.

Use a proper tool for this kind of task, e.g. ast-grep - ⚡ A fast and polyglot tool for code searching, linting, rewriting at large scale. Written in #Rust:

https://ast-grep.github.io/

#RustLang #Code #DevTool #CodeTool #Programming

Peter
5 days ago

What's the general etiquette if you find something open source (Apache 2.0) that doesn't really work has had no commits for a while and you "fix it" but also change how it works somewhat. Do you go back and propose your changes (even if it's quite a lot)? Do you put it out there separately? Don't want to step on any toes 🤔

#opensouce #code

Brylie Christopher Oxley
5 days ago

Here is a brief overview of improving #GitHub #Copilot #code results using imports, variables, types, and comments

https://dev.to/brylie/enhancing-github-copilots-efficiency-providing-meaningful-context-4fd9

#LLM #PromptEngineering

BGDoncaster
6 days ago

Python News: User data from PyPI, the Python Package Index, subpoena'd from the Python Software Foundation (PSF) by USA DoJ. https://www.theregister.com/2023/05/25/pypi_us_government_subpoena/ #python #PyPi #PSF #code #opensource #software #opensource #DOJ #privacy #subpoena #userdata

KrebsOnSecurity RSS
6 days ago
IT News
6 days ago

Best Developer Tools of 2023 - As technology continues to advance at an unprecedented pace, software development ... - https://readwrite.com/best-developer-tools/ #application #computers #bigdata #code

dispatch
6 days ago
Kubuntu Focus
6 days ago

Did you know there is a KFocus Power Tool?
Balance performance, cooling, and battery life by choosing a profile that fits your needs! You can set the power profile, CPU frequency, and fan profile all in one spot.

#Build #Linux #Laptop #Code #Data #Engineer #DevOps #HelpfulHint

PSA: If you’re working on #opensource code, or basically collaborating on #code with anyone, make sure that your #editor or #IDE understands #EditorConfig!

https://editorconfig.org/

It’s a really helpful way for teams to define basic style settings for the project, which ensures consistent files and reduces unnecessary merge conflicts.

#codestyle #collaboration #editing

Screenshot of an example EditorConfig file.

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true

[*.{bash,sh}]
indent_style = tab

[*.{json,md,yaml,html,css,scss}]
indent_size = 2
indent_style = space

[*.py]
indent_size = 4
indent_style = space

[Makefile]
indent_style = tab
Anders Eknert
6 days ago

If I want to demo some #code snippet for solving a problem in a few different languages and have a each language under a tab, what would be the best tool for that?

#development #docs

Пётр
6 days ago

Hail to Vim and Emacs 😂 🤣

#vim #emacs #editor #code #programming # memes #comics

David Brownman
6 days ago

@zyklop That's the gist! You want `type NoTrailingSlash<T extends string> = T extends `${infer _}/` ? never : T;`

TS Playground: https://www.typescriptlang.org/play?#code/C4TwDgpgBAcg9gFQE4EMCWAbNA7A5gZQxQGcALAHgSggA9gJsATYqY4JHXAPigF4oqtekxYADACQBvHADMISKPgC+AelFQA-FGwQAbvKgAuAQG4AUGYDGcbG1Z8oAIhKMZjqzbspj8ZOix4hCQUoJBwMqw8-M7Eru4etsBQCtEuMiru1olQAEY+iKiYnEFk5KEQ4clRySZAA

It's not great to use, since you have to specify the type and value separately, but it _does_ work 😅

Ronalds Vilciņš
1 week ago
Peter
1 week ago

Something someone said to me at work bothered me today and I was hoping to get another view on this as maybe mine is not good.

"You're in your 30s now, its time to just stop coding and teach the younger guys and mentor people and take more of a high-level architectural view of things"

It really bothered me because I like to just code, I don't mind helping with some design decisions of course, but I don't want to just pack in coding and mentor all day... WDYT?

#code #softwareengineering

Ed Suominen
1 week ago

Sorry, but I have to add that it feels great to be nearly old enough for the senior discount and still be able to keep track of 30 thousand fucking lines of #code.

If I got #Covid that might no longer be the case, and that would suck.

I would like people with #LongCovid to know that at least this one random person has changed his lifestyle because of their testimony. I mostly stay on my rural property (thankful for it!) and wear an #envomask #elastomeric #N95 anytime indoors when I'm not here.

Inautilo
1 week ago

“To replace programmers with AI, clients will need to accurately describe what they want. We’re safe.” — Milan Milanović

_____
#Development #AI #Chatbots #Business #Client #Programing #WebDevelopment #WebDev #Frontend #Backend #Code #Quote

Everybody in #softwareDevelopment wants to scold you for deep nesting, but nobody complains about compound booleans.

A statement should not contain more than one boolean operator.

It's the #programming equivalent of a run-on sentence.

You'll split a whole block of #code into a function just to avoid an indentation but you'll write a statement with a ternary and a couple groupings? GTFO!

#webDev #javaScript #software #coding

Mike (Multiverse of Badness)
2 weeks ago

Been a busy week #coding on my #fediverse client. I finally have my #python #framework (#Jenkwerx) doing exactly what it's supposed to so I've been preparing to follow my first user - me on #Mastodon!

..but I pushed pause because, while my inbox is rocking, I don't have my #ActivityPub outbox set up to process from a queue yet (it's still sending live). 😞 So back to unsexy "proper #code logic" for a bit..

..still confident I'll be following a few folks by Sunday tho - ugly test attached! 😆

Test follow oage for my upcoming Fediverse client!

Question for developers releasing on Windows.

Is there an affordable way to sign installers for Windows for an open source project?

The code signing certificates I've seen all cost significantly more than the rate of donations to my project, but the friction unsigned installers cause is significant for the users.

#OpenSource #Code #Windows

Friends in native iOS development. I’d love advice.

I’ve been writing code for over two decades, but never native iOS. Nor C. Nor anything related. But I’m beginning the journey.

Can you recommend a favorite resource for helping folks begin from the ground floor? I can spend all day in an editor and my terminal. But Xcode and iOS is an entirely new world for me.

Thanks in advance!

#iOS #iOSDev #Development #Programming #Code #SwiftUI

Jai 🍜🥟
2 weeks ago

Been checking out the Rust programming language! 💻🥳

I've looked at the Rust examples, but I'd like to see larger project examples. I checked out github trending: kanban/kanban and leptos-rs/leptos look interesting to check out. Also looking at Rocket and Zola, and rust-web/twig. 😆

Any projects you know of, open source, that are written well you'd recommend for me to look at?

#Rust #RustLang #Programming #Code #Coding

Inautilo
2 weeks ago

#Business #Launches
Generative AI: what you need to know · A guide to learn the basics of generative AI and to spot AI bullshit https://ilo.im/135281

“It’s a crash course in AI snake oil.” — Baldur Bjarnason

_____
#AI #ML #LanguageModel #Pitfalls #Dangers #Design #ProductDesign #UxDesign #UiDesign #WebDesign #Development #WebDevelopment #WebDev #Code #Safety #Privacy #Copyright #Plagiarism #Poisoning #Fraud #Abuse #Bias

The new GitHub code browser is a really nice improvement. When documentation is insufficient, or I need more details, I often look at a library's source code. Often, I've cloned it in order to look at it properly locally, but the new code browser makes that almost always unnecessary.

#Code #Programming #GitHub

A screenshot of GitHub's code view, with a file and folder tree to the left, the code of a selected file in the middle, and a Symbols list to the right.
Tomas Ekeli
2 weeks ago

automatic saving of files as you're coding

yay or nay?

#code #ide #dev

Anders Eknert
2 weeks ago

Developer friends – I could use some inspiration! What #OpenSource companies out there do you think provide great developer #documentation?

I like the #Hashicorp developer portal, but there must be many I haven't seen. Any suggestions appreciated!

#development #code #docs #oss

Tim Penhey 🇳🇿
2 weeks ago

Oh FFS. Why have I not learned about `Ctrl-.` for Code quick fix on spelling plugin. That is so much easier and faster than what I've been doing.

#code #spelling

Mike (Multiverse of Badness)
2 weeks ago

My current #coding nightmare :

Having to rewrite a legacy #VB 2010 function that's over 1300 lines long with over 1000 lines of calculations and chock full o' #random number generations in #python

Bonus : code was written over 25 years ago almost completely "lifted and shifted" from #Excel VBA to its current home

..and while this is the ugliest of the functions, there's about 20 overall...

This is gonna be some fuuuunnnn #code to rewrite and #audit.. 😬

following a bunch of folks so lemme do a quick and dirty #intro post ...

hi. i'm camille (
@fyrfli). born and grown jamaican. married into the us military because world of warcraft turns out to have been the best dating service we found. i constantly marvel at how chancy our meeting was and how we've managed to weather everything from my ongoing culture shock, his white rural us origins, and both of our growing awareness of the inequalities in this world.

we've got two huskies and an eskie as 'babies'. we're both game nerds.

i'm into
#tech, #writing, #books, #photography, #crafts like #WaterColourPainting and #BodyButterMaking

i know how to
#code with #html and a little #css, a tiny bit of #javascript and #python. and i've got too much schooling (#InterculturalCommunication and #ClinicalSocialWork) that will likely never amount to much of anything.

i am effectively disabled with
#GAD and #PTSD and currently struggling with severe #insomnia

with all that said ... i am an eternal student, hungry for information on everything.

Mike (Multiverse of Badness)
3 weeks ago

My range of emotions involving #coding this week have ranged from "I never want to do anything else for a living again other than #code" to "I never want to see another line of #SQL or any other #language again in my life.."

...of course it may have to do with the fact I've been working heavily in #legacy #ASPClassic code that is too big to replace easily this week..🤢

..I think I'm gonna take a break and code on my #python #framework and #fediverse app to get some mojo back this #Saturday

Jai 🍜🥟
3 weeks ago

Which programming language considers that the programmer may not always have all the spoons and energy cuz "life" and taking care of fam? That a programmer isn't just ppl with lots of resources and time?

I've never asked this question before. Thoughts? What features would this language have? Hmm. 🤔

ADDED: Esp. what would make this lang better when reading other ppl's code? 🤔 Maintenance work, not just new stuff.

#Programming #Code #Coding #Developer #ComputerScience #Science #Tech #Technology

Jan :rust: :ferris:
3 weeks ago

#StarCoder: A State-of-the-Art #LLM for #Code by Hugging Face 🤗

https://huggingface.co/blog/starcoder

More about the Big Code project:
https://www.bigcode-project.org/

Find out, whether your code was used for training and opt-out, if you don't want to be "in the stack":
https://huggingface.co/spaces/bigcode/in-the-stack

#AI #ArtificialIntelligence #LLMs #DevTools #BigCode

rob
3 weeks ago

This resonates. I’ve been coding (on and off) for the last almost-30-years.

https://blog.visionarycto.com/p/my-20-year-career-is-technical-debt (7-min read)

#tech #technology #code #coding #programming #software #career

Michael Argentini
3 weeks ago

There's an easy way to animate the height of an HTML element even if the height is dynamic, determined by its content, with only CSS. This is typically used for navigation menus and the like, and now it's much easier to code and maintain.

#css #html #javascript #code

https://nonsequiturs.com/posts/animate-css-auto-height-without-javascript/

Yay, GitHub's backend is not responding, so I've got one PR hanging in mid merge, and one in the middle of being created. Also, two completed CI jobs that aren't returning.

GOOD TIMING GUYS!

#GitHub #Code

Anders Eknert
3 weeks ago

When you contribute to an #OpenSource project via #GitHub: please allow the reviewer of your PR — who asked a question or suggested a change — to determine when a conversation is "resolved".

Even if you're 100% sure you've fixed something as was asked, don't assume the person on the other end noticed. Better to tell them you've fixed it and have them close the conversation once they've had a chance to confirm that.

#development #code #oss

Cleo Menezes Jr. :verified:
3 weeks ago

You don't need to rewrite the #code again and again in a short amount of time.
I don't know if you do this because of pressure from third parties/users so that the project always seems current in order to maintain relevance, but this is neither healthy for your project nor for your #mentalHealth.

Mike (Multiverse of Badness)
3 weeks ago

..I remember when I wanted to work my way up to #management

..be careful what you wish for...

I got there and I hated it and quit.. #burnout is a mofo..

Now I'm back at the same company on a #contract and pumping out #SQL and #Python 4 hours a day and loving it, and I get to pick up side contracts and work on my own small #business some

I will say I respect what a good manager does a lot more now that I've been one. They run block and let their team crank out #code and I am here for it!

Tech Interceptor
3 weeks ago

The codebase of Bluesky Social app is available on GitHub.

➡️ https://github.com/bluesky-social/social-app

#bluesky #github #code #dev #indiedev #tech #technology

thomas 🌸
3 weeks ago

Let's say you're building a Deno module, and it has some main programmatic functionally under mod.ts.

What should the executable file name of a #Deno module be named?

#code #opensource #cli #terminal #bin #module #programming #package

Iris Luckhaus
3 weeks ago

Ich habe meine Infografiken zu Zeichensprachen für Poster und Produkte auf Deutsch und Englisch überarbeitet!

Hier zeige ich die Blindenschrift bzw. das Blindenalphabet nach Braille, das in einem Raster aus 6 Punkten in Papier oder Metall eingeprägt und vom Leser mit den Fingerspitzen ertastet wird.

DE: https://www.irisluckhaus.de/infografik-blindenalphabet/
EN: https://www.irisluckhaus.de/infographics-braille-alphabet/

@Curator #illustration #infografik #anleitung #instructions #sprache #language #code #zeichensprache #alphabet #braille #blindenschrift

Infografik mit einer Anleitung für die Blindenschrift bzw. das Blindenalphabet nach Braille
isaacs
3 weeks ago

I think this is a pretty nice way to specify types for event emitters in #TypeScript, what do you think? The way I've usually seen it done is so much more verbose, do you think this is too clever? Is it clear how you'd go about extending it?

https://www.typescriptlang.org/play?#code/PTAEBcAsFNQIwIYGdYFEBu0B24CCAnAcwFcBbbcJCATwAdoAaUBLa0aTHG+0ASyuJYA1lgD2AdywAoXjmj4AZggDGaTniJkKVAN5TQB0CFBDobfhBjt1oLAnJN0CADbFYFqLASbyOKs-5wUCReQjtwYnxofUMAbSEALmDwfFlCUAAfYOpSOFFnAF0kwREJLFiCqQBfKSllZ2QqDApUUl5wcHkAHma-dgAPTqwAEyb1AhJfSlAAXlBejUntAD5QPUNQSBZh53kkJPWNuIW+LBMzUQV59SQCgH4kgApHgDo3hASFpFiFgoBKWarFjUP4VGIGKqzNY1DbQNrgHo2aCDbCjc7US7XFaPDhJBZMN4vYYIcAfL4-dT-JJ5fLQFhrcFHZSiLBIIJbEa7fBUOZQfgvDk7PaxDiVI6GXhXR6CrlIAGHcUbBSifCgR7M1lBK6YmV7eWMxVHBQvZQuZyPPlIAlvYmkv4GxUww2GKIRfBnFJuB0Q72gV2RM5KZwoRlOgwsxEUAZDNGmDFXL7LHHoPHqJi6-BPQkfLF+CkUf6A5isP5JS0Mw0atmbbayqGWgW14Wi32StUZuU1zl7F60YhISDSpv4e2G6DB2ANjsi9AFKGxDNixX+92Wfih6q1YwAFVEoGG0AUsknVm8Sy4ITCJMi0CosmYwWIcHqjSYyJjlkndGisk6ihUsAAMopHSpBfNGqJjBQExaH0Cr7iSOaxMoSRsqkWCEEuBiokkYI1FIxjbJ+Zzvqin6gC+SBUOI7SQORZ6wUEl7hDeSB1A0VGgMBUT2BBIxQTgrTtH+XTcaBiYVoYVaeso4Aqmq+qGkgxD0PgjyjoqDZwu0jwAOT9LpTAAExMAAzEwAAsGk+hs4ipJ06qoSkaSKZpkD8tp4B6baCCGRR1mgGG7AjOpknilp8J6aiukBTU+HScEUJYNA4hcSB9jqQRYAIPu0AvlEwzWFGpTiNRWxBOA35UJ4XZCtyoCENA4BSEgLwst5iF+eqAIzKs8HKFlBgAHp3NU9qDUR7SgDRzjOBRoikLQDT3ggeTEEEbRIKQJLKDAhUdi1bVYB1pJdShthkHA8g9X1VTjcY8mbdt4C7dAhWeRRZpsa1nknb5TAAIz3WAggHvlb1FX0jVBCUYiSMwPjaId7W6cqohdQgN1hcwg2gCNY1btlIzTSyulBGaEifqQEB7ld3BvUwIRYKolgkrpVBiExCAKJOe6NFoyPHbpiD4BjTnoYQWM6HdhPwOtn5sKaZx0wAVJ5nTDCr020cW1B8hhjOyCz7Ts6AsNlIdv26cgwwKH5APGWZ9pAA

Nicolas Fränkel
3 weeks ago

In our profession, it’s common to work on an unfamiliar codebase. It happens every time one joins a new project or even needs to work on a previously untouched part in big ones

https://blog.frankel.ch/working-unfamiliar-codebase/

#code #maintenance

bleep
4 weeks ago

I’m learning how to write tests for React development. I have eslint and Prettier helping with code rules and formatting (airbnb styles) and I have noticed that my code is so much better as a result.

Also, writing code that eslint likes really gives you an endorphin hit. I want to make it happy LOL.

#code #reactjs

petersuber
1 month ago

The #UK House of Commons just issued a report on improving the #reproducibility of UK research.
https://publications.parliament.uk/pa/cm5803/cmselect/cmsctech/101/summary.html

"We welcome #UKRI’s policy of requiring #OpenAccess to research that it funds, but we recommend that this should go further in requiring the recipients of research grants to share #data and #code alongside the publications arising from the funded research."

#OpenData #OpenCode #OpenSource #FOSS #FLOSS

Kevin R Jones
1 month ago

@joelanman @joelanman I have never used #VS #Code. I have read that sighted people say it’s somewhat sluggish. I also hate #electron, but I’ve read that VS Code is the best behaved of just about any electron app out there.
I haven’t used #Windows since 2010 so I haven’t had much of a need for VS Code on the #Mac.

Mr Frumble
1 month ago

#Introduction

* NE #Indianapolis suburbs #Fishers & general #Indy area stuff.
* Lefty #politics. Bourgeois #liberal scum though, mileage may vary.
* Tech & #code. I write code that tests code & embed it into CI/CD processes.
* Sports
-- Basketball: #Pacers (NBA), #Purdue (NCAA)
-- Soccer: #Everton (EPL), #IndyEleven (USL)
-- Hockey: #RedWings (NHL)
-- Football: #colts (NFL), Purdue (NCAA)
* Sci-Fi TV & movies.
* Random gifs & live events
* #Tattoo
* #DnD

thomas 🌸
1 month ago

I am a big proponent of a programming paradigm where writing code and building up relationships and connections leads to the emergence of new, unforeseen connections and avenues. Instead of leading you down the wrong paths and requiring rewrites, coding should sculpt and shape connections, offering surprising new connections for free. #software #code #programming #webdev #javascript

Sherri W (SyntaxSeed)
1 month ago

How do you organize your source #code boundaries.

You have Students. The public accesses them. They CRUD themselves & admins CRUD them differently.

Everything in a students folder?

Or...

students/edit.twig
admin/students/edit.twig
public/students/view.twig

?

Other?

You know that thing where you find old #code of your own and marvel at how stupid you used to be?

I just had the opposite. "Wow, this is a good idea. Hey, that was *my* idea!"

What a warm and fuzzy feeling! I've grown as a #programming professional!

Except wait. This means my peak is behind me. I'm on the down slope. These are my declining years!

Soon some young pup will burst into the saloon and challenge the old dog to a duel he can't win.

CodePen.IO :verify:
1 month ago
Media source: https://video.twimg.com/ext_tw_video/1654133589083140097/pu/vid/1408x720/yuSMlqukQK4nQ4L0.mp4?tag=12
Peter Gassner
1 month ago

@robstyles You can do this if you use an interface:

interface Node {
[K: string]: Node
}

https://www.typescriptlang.org/play?#code/PTAEAEBcGcFoFMAeAHeBjSCBOWD2WAoSAT1VADlcATeUAXlACV18qAeaSLASwDsBzADQVq8AHwECfSPCwAzAIZpalGgCZQAbwKhQAbQDWALlCceAgLonV8NQQC+ktLl6dQvUdHpadoOblwTbV1dACMFLCDHXUd7IA

Interfaces behave differently than type aliases and should be preferred in most situations. Dan writes about why in his excellent book somewhere, I believe: https://effectivetypescript.com/

But note that it is indeed infinitely recursing, which can be a problem when inferring types. Which is why MongoDB for example limits recursion depth to 8, as seen here:
https://github.com/mongodb/node-mongodb-native/blob/main/src/mongo_types.ts#L452