Tech Researchers Club,VIT Chennai (@trcvit) header
Tech Researchers Club,VIT Chennai (@trcvit) profile picture

A student community exclusively dedicated to exploring and analyzing the newest in technology. (The first club for researchers in VIT Chennai)

VIT Chennai
Joined September 2023
Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)Photo by Tech Researchers Club,VIT Chennai (@trcvit)
Tech Researchers Club,VIT Chennai retweeted
Guess what👀! 🎓 EmergeX is proud to join forces with Winter of Code by VIT Chennai @trcvit as the ecosystem partner!🤝 With a shared vision for the future of tech, we're your one-stop solution for all emerging tech💻 Let's BUIDL together! 🌟 Link: bit.ly/vitch
1
6
185
Tech Researchers Club,VIT Chennai retweeted
such a comprehensive notebook on parallelism and distributed training by @A_K_Nain . kaggle.com/code/aakashnain/p… still don't understand how @kaggle algorithm can be this bad, promoting linear regression notebooks and supressing rich contents like this. disappointed.
2
12
1
105
11,636
Tech Researchers Club,VIT Chennai retweeted
JavaScript developers should know these: - Event Loop and Asynchronous Programming - Scope and Scope Chain - Closures - Hoisting - Prototypes and Inheritance - this Keyword - Event Handling - Functional Programming - Memory Management - Design Patterns - Security (XSS, CSRF)
13
64
1
563
57,503
Tech Researchers Club,VIT Chennai retweeted
Replying to @shivambhadani_
Also “Type Casting Safely” Read more:- blog.bitsrc.io/javascript-ty…
1
2
20
2,925
Tech Researchers Club,VIT Chennai retweeted
GraphQL API in a nutshell: 1. What is GraphQL? GraphQL was developed by Facebook in 2012 and later open-sourced in 2015. It's a query language for your API and a runtime for executing those queries by using a type system you define for your data. 2. Key aspects of GraphQL include: - Declarative Data Fetching: Clients can request exactly the data they need, and nothing more. This eliminates over-fetching or under-fetching of data, improving efficiency. - Single Endpoint: Unlike REST, which may require multiple endpoints for different resources, GraphQL uses a single endpoint for all queries and mutations. -Strongly Typed: GraphQL APIs have a strong type system that's defined using a schema. This schema serves as a contract between the client and server, ensuring consistency. - Real-time Data: GraphQL can be used for real-time applications by utilizing subscriptions. Subscriptions allow clients to receive updates when the underlying data changes. - GraphQL Schema At the core of a GraphQL API is the schema, which defines the types of data that can be queried and the operations that can be performed. A GraphQL schema consists of: - Types: These represent the data structures in your API, like User, Product, or Post. - Queries: Entry points for fetching data. Clients use queries to request specific data from the server. - Mutations: Entry points for modifying data. Clients use mutations to create, update, or delete data. - Subscriptions: These are used for real-time updates. Clients can subscribe to changes in the data. 3. GraphQL Servers To implement a GraphQL API, you need a server that understands GraphQL queries, resolves them, and returns the requested data. Popular options for building GraphQL servers include: - Apollo Server: A widely-used GraphQL server library for Node.js. - Express-GraphQL: Middleware for adding GraphQL to Express.js applications. - Graphene-Django: A Python library for building GraphQL APIs with Django. - GraphQL Clients Clients use GraphQL to request data from the server. 4. Some popular GraphQL client libraries include: - Apollo Client: A JavaScript library for making GraphQL queries and mutations in web and mobile applications. - Relay: A JavaScript framework for building efficient and scalable GraphQL-powered applications, mainly by Facebook. 5. Use Cases for GraphQL GraphQL is well-suited for a variety of use cases: - Mobile Applications: GraphQL's flexibility allows mobile apps to request only the data they need, saving bandwidth and improving performance. - Real-Time Applications: With subscriptions, GraphQL is suitable for chat apps, live feeds, and other real-time systems. - Aggregating Data: GraphQL can serve as a single point of access to aggregate data from multiple sources. - Complex Queries: For applications requiring complex queries with various filters, GraphQL simplifies the data-fetching process. - Microservices: GraphQL can act as a facade for multiple microservices, providing a unified API to clients. - Prototyping: It's a great choice for rapid prototyping since you can quickly adapt the API to changing requirements. 6. Basic GraphQL Query: query { user(id: 1) { name email } } 7. Basic GraphQL mutation: mutation { createUser(input: {name: "John Doe", email: "[email protected]"}) { id name email } }
4
98
3
458
52,166
Tech Researchers Club,VIT Chennai retweeted
Day 13 of JS30Xplore: 1. What are Closures: Closures are a fundamental concept in JavaScript that allows functions to remember and access their lexical (surrounding) environment even after the outer function has completed its execution. A closure is created when an inner function is defined within an outer function and references variables from the outer function. 2. Components of a Closure: A closure consists of two main components: - Function: This is the inner function that is defined within another function, creating the closure. - Lexical Environment: The lexical environment includes all the variables and parameters in the outer function's scope when the closure is created. This environment is retained by the inner function, allowing it to access those variables even after the outer function has finished executing. 3. How Closures Work: Closures "remember" their outer variables because they retain a reference to the lexical environment in which they were created. 4. Practical Use Cases: - Encapsulation and Data Privacy: Closures are commonly used to encapsulate variables and functions within a limited scope, providing data privacy. This is useful for implementing private properties and methods in JavaScript objects. - Callback Functions: Closures are frequently used in callbacks, particularly in asynchronous operations. They help in maintaining context and preserving data between the setup and execution of asynchronous tasks. 5. Creating Closures: Closures can be created intentionally by returning functions from other functions 6. Data Privacy and Encapsulation: Closures enable data privacy and encapsulation by allowing you to create private variables and methods within objects. This prevents direct access to these members from outside the object. 7. Callbacks and Asynchronous Operations: Closures are essential in callback functions, especially in asynchronous operations like event handling and AJAX requests. They capture the current state and context, allowing data to persist between the setup and execution of asynchronous tasks. 8. Garbage Collection: Closures can impact memory management, as they can prevent variables from being garbage collected when they are no longer needed. To avoid memory leaks, it's essential to be mindful of retaining closures and to clean up references when they are no longer required. 9. Real-World Examples: Real-world examples of closures can be found in various JavaScript libraries and frameworks. For instance, in React, closures are used to maintain component state, and in jQuery, they are employed extensively in event handling. Closures contribute to the modularity, privacy, and flexibility of these projects.
7
54
315
31,848
Tech Researchers Club,VIT Chennai retweeted
5 GitHub repositories will make your life 90% easier:
52
714
11
4,019
665,499
Tech Researchers Club,VIT Chennai retweeted
Registration for Hacktoberfest 2023 is now live! Link your GitHub or GitLab account and get your profile ready to go to track your pull/merge requests on October 1st. hacktoberfest.com/auth/
37
327
54
951
172,698
Tech Researchers Club,VIT Chennai retweeted
Hacktoberfest 2023 is nearly here! Check out the site to learn more about what to expect this year, from the change in rewards to hosting community events and participating in Hacktoberfest: hacktoberfest.com
36
226
72
705
102,163